Skip to content

kennyfrc/LitHTML-Cami-Syntax-Highlighting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Syntax Highlighting for Lit HTML & Cami.js for Sublime Text 4

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published