Open X-Cooper opened 7 months ago
I encountered the same issue. hcl dose not show syntax highlight in edit and live preview mode. It only shows in the read mode.
clone the repo code on the your own laptop and development ref:
hcl.json
: https://github.com/codemirror/codemirror5/pull/7080npm i
or yarn
to install dependencies
npm run build
to compile.manifest.json
, main.js
and styles.css
to a subfolder of your plugins folder (e.g, <vault>/.obsidian/plugins/cm-editor-syntax-highlight-obsidian/
The terraform HashiCorp code (hcl) does not show syntax highlight in the
edit
mode. it only shows in theread
more