micro-syntax-mcfunction

Ready-to-use syntax highlighting for the mcfunction format (Minecraft function files) for the Micro text editor.

release date: 2025-12-27

view on GitHub

about

Opis obrazka
Ready-to-use syntax highlighting for the mcfunction format (Minecraft function files) for the Micro text editor. Improves readability and helps developers quickly identify commands, selectors, effects, numbers, boolean values, JSON-like arguments, and dangerous commands.
The project only adds support for mcfunction syntax. It does not add colors. Colors are taken from the selected colorscheme.
I also created a Micro color scheme package available at the following link: click here.

features

  • Highlight main commands (effect, execute, give, tp, scoreboard, etc.)
  • Highlight subcommands / operators (run, if, matches, modify, etc.)
  • Highlight selectors (@s, @e, @a)
  • Highlight namespaces (minecraft:wither, minecraft:stone)
  • Highlight numbers and boolean values (true, false)
  • Highlight dangerous commands (kill @e, tp @e, clear @a) as error (red in most colorschemes)
  • Highlight JSON-like arguments ({"text":"Hello","color":"red"})

compatibility

  • Micro editor on Linux, macOS, Windows, and Termux
  • Works with .mcfunction files in Minecraft datapacks and command scripts
  • Integrates with any Micro colorscheme; dangerous commands can be emphasized by adjusting the error token color
  • Does not modify Micro core functionality or other syntax files