rmacro
Support & Syntax Highlight for Roll20's macro language.
Automatic bracket pairing for roll20 syntax
@{ }
, ?{ }
, %{ }
, &{ }
, $[[ ]]
)[[ ]]
/{{ }}
from [ [ ] ]
/{ { } }
/r
, !example
#dex
)dF
) dieselected
, target
, %%NEWLINE%%
, max
, cf
, ceil
, tracker
)~,|#=+
, and [HTML Entities](HTML replacement characters) roll` `
will highlight)rmacro
set as language)Macro nesting bracket highlight
Missing bracket stands out
Rmacro syntax highlight in javascript:
Rmacro syntax highlight in markdown files:
VScode shows/recognizes "rmacro"-syntax highlight when:
.roll
(.rmacro
/.roll20
/.r20macro
also works)rmacro
set as the language..js
and .pug
-files, when the macro is inside a tagged template literal with rmacro
as the tag The autocompletions work only in .roll
/.rmacro
/.roll20
/.r20macro
-files
This extension also works on vscode.dev
You can download example.roll and the rest of the sample files) to get started.
Sometimes extra spaces are needed to keep the bracket highlight working correctly.
When nesting double- & single-bracket syntax, leave a space
after the last inner character.
Good:
{{name=@{character_name} }}
Bad:
{{name=@{character_name}}}
Sets following default setting for .rmacro
-files:
"editor.bracketPairColorization.enabled": true
- If this is overruled by user settings, all bracket highlights will disappear, not just the extra coloring."editor.wordWrap": "on"
- wraps lines by default. roll20 macros are often on a single line, and this improves readability.Installs an extended version of file-icons Theme, which changes the the fileicon for .rmacro
-files & some roll20 Sheet/API development-related filenames.
repo: Anduh/rmacro
You can help even without knowing how VS Code extensions work. Here are a few concrete parts to start from:
rmacro
, you can follow the same patterns and expand the collection of snippets easily.
Roll20 Sheet Dev helps with Character Sheet Development.