antoniotejada / Trilium-SyntaxHighlightWidget

Syntax highlight Trilium widget for editable note codeblocks using highlight.js
GNU General Public License v3.0
76 stars 6 forks source link

I'm interested in code highlighting, but I can't display it correctly. I don't know what went wrong #1

Closed SiriusXT closed 2 years ago

SiriusXT commented 2 years ago

I'm interested in code highlighting, but I can't display it correctly. I don't know what went wrong 图片 图片 图片 图片

antoniotejada commented 2 years ago

Looking at your screenshots (thanks!) I assume you pasted the text from highlight.min.js in a child script note, instead of attaching it to the script note as a file as per the installation instructions.

I'll clarify that on the readme.md anyway.

antoniotejada commented 2 years ago

Actually looks like both attaching as a file (three dot note menu -> import files -> uncheck all checkboxes -> choose files -> import) and pasting as a child code note work.

SiriusXT commented 2 years ago

Thank you very much. This script is great.