Freak613 / stage0

Collection of low-level DOM tools for building high performant web interfaces
MIT License
262 stars 16 forks source link

About syntax highlighting. #1

Closed ismail-codar closed 6 years ago

ismail-codar commented 6 years ago

If we rename h function with html we can use directly https://github.com/mjbvz/vscode-lit-html in VSCode for syntax highlighting.

ismail-codar commented 6 years ago

I found another option.. Like this:

const myView = h([require("./my.html")]);

This time, html syntax highlighting and autocomplete works on my editor.

Freak613 commented 6 years ago

If the plugin can't configure name of the function, you can use named import:

import html from 'stage0'

html`<div></div>`

There are no restrictions for that from library.