VSCode extension providing extensive support for the Ruby ORB template language.
This extension extends the HTML language mode with the following features:
- Highlighting of all
ORBlanguage tokens:
componenttagsslottagsexpressionattributesnamed blocks- printing and control
expressions - private
comments
- Snippets for common
ORBlanguage constructs:
ifgenerates a{#if ...} ... {/if}blockforgenerates a{#for item in items} ... {/for}blockcgenerates a public comment<!-- ... -->blockpcgenerates a private comment{!-- ... --}blockpegenerates a printing expression{{ ... }}npegenerates a control expression{% ... %}blockslotgenerates a<Parent:slot>...</Parent:slot>block
-
Registers itself as an
htmlLanguageParticipantso all HTML LSP features are also available inORBmode. -
Registers itself as the default highlighter for
*.orbfiles -
Provides a new
orb.cycleTagscommand to cycle through the differentORBtags
- Cycles through
{{ ... }},{% ... %},{!-- ... --}tags - Can be bound to a keybinding in the
keybindings.jsonfile - Supports multi-line and selection
- Replaces
ERBtags withORBtags if there are any ERB tags surrounding the selection
- Install the
vscetool:npm install -g @vscode/vsce - Clone this repository
- Change to the extension directory and run
vsce package - Install the resulting
vscode-orb-VERSION.vsixfile from VSCode throughCommand Palette->Extensions: Install from VSIX - Reload your VSCode
