{"id":21888982,"url":"https://github.com/commandserver/javascript-syntax-highlighter-for-minecraft-functions","last_synced_at":"2025-08-27T03:04:11.600Z","repository":{"id":104036814,"uuid":"278952783","full_name":"Commandserver/javascript-Syntax-Highlighter-for-Minecraft-functions","owner":"Commandserver","description":"A Javascript function to highlight Minecraft functions code","archived":false,"fork":false,"pushed_at":"2023-03-12T21:01:01.000Z","size":67,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T02:27:30.577Z","etag":null,"topics":["highlighter","mcfunction","minecraft","syntax-highlighting"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Commandserver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-11T22:39:25.000Z","updated_at":"2023-03-12T21:00:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"0a27f772-a5fb-4089-a747-703ee5326f4e","html_url":"https://github.com/Commandserver/javascript-Syntax-Highlighter-for-Minecraft-functions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Commandserver/javascript-Syntax-Highlighter-for-Minecraft-functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commandserver%2Fjavascript-Syntax-Highlighter-for-Minecraft-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commandserver%2Fjavascript-Syntax-Highlighter-for-Minecraft-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commandserver%2Fjavascript-Syntax-Highlighter-for-Minecraft-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commandserver%2Fjavascript-Syntax-Highlighter-for-Minecraft-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Commandserver","download_url":"https://codeload.github.com/Commandserver/javascript-Syntax-Highlighter-for-Minecraft-functions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commandserver%2Fjavascript-Syntax-Highlighter-for-Minecraft-functions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272283179,"owners_count":24906629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-27T02:00:09.397Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["highlighter","mcfunction","minecraft","syntax-highlighting"],"created_at":"2024-11-28T11:18:22.358Z","updated_at":"2025-08-27T03:04:11.544Z","avatar_url":"https://github.com/Commandserver.png","language":"JavaScript","readme":"# Javascript syntax highlighter for Minecraft functions\nA Javascript function to highlight Minecraft functions code.\n\nThis Javascript highlighter can be used to highlight Minecraft code on your websides.\n* tested on Minecraft version 1.13 to 1.16\n\n## Preview:\n\n![image](https://user-images.githubusercontent.com/44061123/180615083-f2232a4d-25b8-4965-89c8-80446eb299e9.png)\n\n## How to use it\n\nJust execute the `mclangHighlight` function and pass the minecraft command into it.\n\n#### Example:\n\n```javascript\ndocument.getElementById('myElement').innerHTML = mclangHighlight(\"particle minecraft:barrier ~ ~42 ~ 0.4 0.5 0.4 1 6 force @a[gamemode=spectator]\");\n```\n\n## Installation\n\nto use it on your webpage you have to declare the css variables to color the code.\nYou can use this css code:\n\n```css\nspan.selector {\n    color: #05cc94;\n}\nspan.selectorProperties {\n    color: #4196b7;\n}\nspan.not {\n    color: #ff5151;\n}\nspan.minecraft {\n    color: #3c47e6;\n}\nspan.number {\n    color: #db480f;\n    font-weight: bold;\n}\nspan.bracket {\n    color: #05cc94;\n    font-weight: bold;\n}\nspan.error {\n    background-color: #d0320d;\n    border-radius: 2px;\n}\nspan.light-error {\n    background-color: #52503a;\n    border-radius: 2px;\n    text-decoration: underline;\n    text-decoration-style: dotted;\n}\nspan.function {\n    color: #53a600;\n}\nspan.comment {\n    color: #646363;\n}\nspan.keyword {\n    color: #e951ff;\n}\nspan.var {\n    color: #caa536;\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommandserver%2Fjavascript-syntax-highlighter-for-minecraft-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommandserver%2Fjavascript-syntax-highlighter-for-minecraft-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommandserver%2Fjavascript-syntax-highlighter-for-minecraft-functions/lists"}