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 8ccff895c..c57139c52 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) {