A language mode for CodeMirror, support highlighting HTML/CSS in javascript codes.
- Detects and highlights HTML in strings / template strings. (for strings begin with a tag)
- HTML, highlights inner CSS / Javascript as well, e.g., highlights CSS for the text in
<style>
tags.
- HTML, highlights inner CSS / Javascript as well, e.g., highlights CSS for the text in
- Highlights CSS for userscript's
GM_addStyle()
- Highlights arbitrary template strings as HTML / CSS by prepending an inline
/*html*/
and/*css*/
hint respectively.
To add it to your project, assuming codemirror
has been installed:
npm install codemirror-js-mixed