This package enables syntax highlighting when using the lit-html or cami.js library in Sublime Text 4.
- Syntax highlighting for lit-html template literals
- Enhanced JavaScript and HTML highlighting within lit-html templates
- Open Sublime Text 4
- Go to
Preferences > Browse Packages - Navigate to the
Userfolder - Copy the
lit-html.sublime-syntaxfile from this repository and paste it into theUserfolder - Restart Sublime Text
After installation, you can activate the syntax highlighting by:
- Opening a JavaScript file
- Press
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(macOS) - Type "Set Syntax: Lit HTML / Cami.js" and select it
Once installed, the syntax highlighting will automatically activate for files with .js, .ts, .jsx, and .tsx extensions when using lit-html template literals.
This project builds upon the work of Jeremy Bernier's LitElement-Syntax-Highlighting.