Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.1 KB

File metadata and controls

33 lines (21 loc) · 1.1 KB

Lit HTML Syntax Highlighting for Sublime Text 4

This package enables syntax highlighting when using the lit-html or cami.js library in Sublime Text 4.

Features

  • Syntax highlighting for lit-html template literals
  • Enhanced JavaScript and HTML highlighting within lit-html templates

Installation

  1. Open Sublime Text 4
  2. Go to Preferences > Browse Packages
  3. Navigate to the User folder
  4. Copy the lit-html.sublime-syntax file from this repository and paste it into the User folder
  5. Restart Sublime Text

After installation, you can activate the syntax highlighting by:

  1. Opening a JavaScript file
  2. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS)
  3. Type "Set Syntax: Lit HTML / Cami.js" and select it

Usage

Once installed, the syntax highlighting will automatically activate for files with .js, .ts, .jsx, and .tsx extensions when using lit-html template literals.

Credits

This project builds upon the work of Jeremy Bernier's LitElement-Syntax-Highlighting.

License

MIT License