Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.*