codemirror-js-mixed

0.9.2 • Public • Published

Javascript-mixed mode for CodeMirror

A language mode for CodeMirror, support highlighting HTML/CSS in javascript codes.

Features

  • 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.
  • Highlights CSS for userscript's GM_addStyle()
  • Highlights arbitrary template strings as HTML / CSS by prepending an inline /*html*/ and /*css*/ hint respectively.

Installation

Package Sidebar

Install

npm i codemirror-js-mixed

Weekly Downloads

9

Version

0.9.2

License

MIT

Unpacked Size

36.6 kB

Total Files

5

Last publish

Collaborators

  • orionlee