Anduh / rmacro

Roll20 Macros - VS Code Extension
MIT License
4 stars 1 forks source link

Roll20 Macros - rmacro

VSMarket: rmacro installs Last Commit Contributions

Twitter: @anduh_ Patreon Donate

Support & Syntax Highlight for Roll20's macro language.

Features

Bracket pairing

Automatic bracket pairing for roll20 syntax

Syntax highlights

Snippets

Example

Macro nesting bracket highlight

Missing bracket stands out

Rmacro syntax highlight in javascript:

Rmacro syntax highlight in markdown files:

Use

VScode shows/recognizes "rmacro"-syntax highlight when:

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.

Issues

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}}}

Settings

Sets following default setting for .rmacro-files:

Installs an extended version of file-icons Theme, which changes the the fileicon for .rmacro-files & some roll20 Sheet/API development-related filenames.

Contribute

repo: Anduh/rmacro

You can help even without knowing how VS Code extensions work. Here are a few concrete parts to start from:

Related Extensions

Roll20 Sheet Dev helps with Character Sheet Development.