From 5226f0019bb5bd787c55a4efa03e161c9888d75a Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Date: Tue, 22 Sep 2020 09:11:12 -0300 Subject: [PATCH] Desktop: Add frequently used languages to markdown editor (#3786) --- .../gui/NoteEditor/NoteBody/CodeMirror/Editor.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/Editor.tsx b/ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/Editor.tsx index 8648796d8..de1e188f6 100644 --- a/ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/Editor.tsx +++ b/ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/Editor.tsx @@ -28,7 +28,6 @@ const { shim } = require('lib/shim.js'); const { reg } = require('lib/registry.js'); // Based on http://pypl.github.io/PYPL.html -// +XML (HTML) +CSS and Markdown added const topLanguages = [ 'python', 'clike', @@ -51,8 +50,16 @@ const topLanguages = [ 'haskell', 'pascal', 'css', - 'xml', + + // Additional languages, not in the PYPL list + 'xml', // For HTML too 'markdown', + 'yaml', + 'shell', + 'dockerfile', + 'diff', + 'erlang', + 'sql', ]; // Load Top Modes for (let i = 0; i < topLanguages.length; i++) {