0.9.2 • Published 4 years ago

codemirror-js-mixed v0.9.2

Weekly downloads
51
License
MIT
Repository
github
Last release
4 years ago

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