zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.2k stars 1.9k forks source link

Question about a code note. #2122

Closed WantToLearnJapanese closed 3 years ago

WantToLearnJapanese commented 3 years ago

Question about a syntax highlight feature on code notes.

zadam commented 3 years ago

Code notes are using CodeMirror v5. Bash is supported as "shell".

WantToLearnJapanese commented 3 years ago

Code notes are using CodeMirror v5. Bash is supported as a "shell."

I can't find "shell" on the drop-down menu.

Am I missing something?

--

Oh, I get it.

https://github.com/zadam/trilium/blob/c508217604d07f85f5b3121a1f21cf54893310c1/src/services/options_init.js#L75 https://github.com/zadam/trilium/blob/0ee093f038921658a080e59af2599dee6bb4a4c9/src/public/app/services/mime_types.js#L3

Could I enable the languages I want without editing the codes of Trilium? By adding a javascript note, I guess?

--

Sorry for the duplicated question.

https://github.com/zadam/trilium/issues/1469