Skip to content

Markdown Extensions

Syntax Highlighting

Additional supported languages

ScopeSource
snbtsnbt.tmLanguage.json
mcfunctionmcfunction.tmLanguage.json
langlang.tmLanguage.json
molangmolang.tmLanguage.json
mcscriptmcscript.tmLanguage.json
snbt
{
  string: "hello world",
  integer: 1,
  array: ["item1", "item2"],
  object: {
    string: "Something"
  },
  rawjson: '{"text": "Hello World"}'
}
mcfunction
# Inline Comment
give @s minecraft:stone{CustomModelData:1}
lang
## Inline Comment
item.namespace.thing=§lThing %s
tile.namespace.thing_block.name=Thing Block
molang
v.x = 0;
for_each(v.pig, query.get_nearby_entities(4, 'minecraft:pig'), {
    v.x = v.x + v.pig->query.get_relative_block_state(0, 1, 0, 'flammable');
});
mcscript
## Inline comment
if(@s){
  /say entity found
} else {
  /say else command
}

Not associated with or approved by Mojang Studios or Microsoft