Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
client: Add credits
Elian Doran9c55203ea017
diff --git a/src/public/app/widgets/type_widgets/ckeditor/syntax_highlight.js b/src/public/app/widgets/type_widgets/ckeditor/syntax_highlight.jsindex 8ccff895c9..c57139c523 100644--- a/src/public/app/widgets/type_widgets/ckeditor/syntax_highlight.js+++ b/src/public/app/widgets/type_widgets/ckeditor/syntax_highlight.js@@ -1,3 +1,13 @@+/*+ * This code is an adaptation of https://github.com/antoniotejada/Trilium-SyntaxHighlightWidget with additional improvements, such as:+ *+ * - support for selecting the language manually;+ * - support for determining the language automatically, if a special language is selected ("Auto-detected");+ * - limit for highlighting.+ *+ * TODO: Generally this class can be done directly in the CKEditor repository.+ */+import mime_types from "../../../services/mime_types.js";export function initSyntaxHighlighting(editor) {