CodeMirror Editor
tag: <hpcc-codemirror>
TIP
See Getting Started for details on how to include @hpcc-js/codemirror in your application
Attributes
mode
Text to be displayed in the editor
Type: "html" | "json" | "javascript"
html
: HTML documentJSON
: JSON document
Default Value: html
theme
Text to be displayed in the editor
Type: "light" | "dark"
light
: Light themedark
: Dark theme
Default Value: light
Properties
text
Text to be displayed in the editor
Type: string
Default Value:
Events
Credits
CodeMirror
CodeMirror 6 is a rewrite of the CodeMirror code editor. It greatly improves the library's accessibility and touchscreen support, provides better content analysis and a modern programming interface. The new system matches the existing code in features and performance. It is not API-compatible with the old code.