Skip to content

Build your personal knowledge base with Trilium Notes

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.js
index 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) {