Skip to content
On this page

Syntax Highlighting

Once your HTML and CSS templates grow in size you might want to add some syntax highlighting.

VS Code

Comment tagged templates

With the following extension you can add syntax highlighting to tagged template strings using language identifier comments:

Example

js
import { Minze, MinzeElement } from 'minze'

class MyElement extends MinzeElement {
  html () => /* html */ `
    <div>Hello Minze!</div>
  `

  css () => /* css */ `
    :host {
      display: flex;
    }
  `
}

Minze.defineAll([MyElement])

Released under the MIT License.