Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adamraichu/highlightjs-lang-colorized
A highlight.js grammar and css ruleset which colorizes Minecraft's lang code such that the values match what it would look like in-game. Supports Java and Bedrock edition's different rendering rules.
https://github.com/adamraichu/highlightjs-lang-colorized
highlightjs
Last synced: 19 days ago
JSON representation
A highlight.js grammar and css ruleset which colorizes Minecraft's lang code such that the values match what it would look like in-game. Supports Java and Bedrock edition's different rendering rules.
- Host: GitHub
- URL: https://github.com/adamraichu/highlightjs-lang-colorized
- Owner: AdamRaichu
- License: mit
- Created: 2023-01-19T15:00:45.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-22T01:02:42.000Z (almost 2 years ago)
- Last Synced: 2023-03-04T04:35:21.504Z (almost 2 years ago)
- Topics: highlightjs
- Language: JavaScript
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# highlightjs-lang-colorized
A highlight.js grammar and css ruleset which colorizes Minecraft's lang code such that the values match what it would look like in-game. Supports Java and Bedrock edition's different rendering rules.
## Usage
### Browser
To use on your webpage, link both the compiled script and the style.
You will also need the base highlight.js library.```html
```
To highlight a code block, give it the class `language-lang-colorized-`.
Then call `hljs.highlightAll()`.
*The version you choose will affect how certain `§` formatters and highlighters take effect.*