TriliumNext / Notes

Build your personal knowledge base with TriliumNext Notes
https://triliumnext.github.io/Docs/
GNU Affero General Public License v3.0
847 stars 46 forks source link

(Feature request) Syntax highlight for code blocks #20

Open eliandoran opened 8 months ago

eliandoran commented 8 months ago

Describe feature

This goes without saying, it's one of the most requested features from the people I've known using Trilium for taking notes related to software development.

Additional Information

Some notes I've took in the past:

Apparently the syntax highlighting is not supported in the CKEditor, which is the reason that code blocks within text notes do not have syntax highlight.

Some works has already been done to try to integrate some kind of syntax highlight in CKEditor:

liuxiawei commented 2 months ago

Thanks to these efforts, can we realize the display of line numbers?