+C-like mode
+
+
+
+C++ example
+
+
+
+Objective-C example
+
+
+
+Java example
+
+
+
+Scala example
+
+
+
+
+
+ Simple mode that tries to handle C-like languages as well as it
+ can. Takes two configuration parameters: keywords
, an
+ object whose property names are the keywords in the language,
+ and useCPP
, which determines whether C preprocessor
+ directives are recognized.
+
+ MIME types defined: text/x-csrc
+ (C), text/x-c++src
(C++), text/x-java
+ (Java), text/x-csharp
(C#),
+ text/x-objectivec
(Objective-C),
+ text/x-scala
(Scala), text/x-vertex
+ and x-shader/x-fragment
(shader programs).
+
diff --git a/src/main/resources/static/lib/editormd/lib/codemirror/mode/clike/scala.html b/src/main/resources/static/lib/editormd/lib/codemirror/mode/clike/scala.html
new file mode 100644
index 0000000..aa04cf0
--- /dev/null
+++ b/src/main/resources/static/lib/editormd/lib/codemirror/mode/clike/scala.html
@@ -0,0 +1,767 @@
+
+
+
+CSS mode
+
+
+
+ MIME types defined: text/css
, text/x-scss
(demo), text/x-less
(demo).
+
+ Parsing/Highlighting Tests: normal, verbose.
+
+
diff --git a/src/main/resources/static/lib/editormd/lib/codemirror/mode/css/less.html b/src/main/resources/static/lib/editormd/lib/codemirror/mode/css/less.html
new file mode 100644
index 0000000..6ccb721
--- /dev/null
+++ b/src/main/resources/static/lib/editormd/lib/codemirror/mode/css/less.html
@@ -0,0 +1,152 @@
+
+
+
+LESS mode
+
+
+
+ The LESS mode is a sub-mode of the CSS mode (defined in css.js
.
+
+ Parsing/Highlighting Tests: normal, verbose.
+
diff --git a/src/main/resources/static/lib/editormd/lib/codemirror/mode/css/less_test.js b/src/main/resources/static/lib/editormd/lib/codemirror/mode/css/less_test.js
new file mode 100644
index 0000000..2ba6998
--- /dev/null
+++ b/src/main/resources/static/lib/editormd/lib/codemirror/mode/css/less_test.js
@@ -0,0 +1,51 @@
+// CodeMirror, copyright (c) by Marijn Haverbeke and others
+// Distributed under an MIT license: http://codemirror.net/LICENSE
+
+(function() {
+ "use strict";
+
+ var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-less");
+ function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), "less"); }
+
+ MT("variable",
+ "[variable-2 @base]: [atom #f04615];",
+ "[qualifier .class] {",
+ " [property width]: [variable percentage]([number 0.5]); [comment // returns `50%`]",
+ " [property color]: [variable saturate]([variable-2 @base], [number 5%]);",
+ "}");
+
+ MT("amp",
+ "[qualifier .child], [qualifier .sibling] {",
+ " [qualifier .parent] [atom &] {",
+ " [property color]: [keyword black];",
+ " }",
+ " [atom &] + [atom &] {",
+ " [property color]: [keyword red];",
+ " }",
+ "}");
+
+ MT("mixin",
+ "[qualifier .mixin] ([variable dark]; [variable-2 @color]) {",
+ " [property color]: [variable darken]([variable-2 @color], [number 10%]);",
+ "}",
+ "[qualifier .mixin] ([variable light]; [variable-2 @color]) {",
+ " [property color]: [variable lighten]([variable-2 @color], [number 10%]);",
+ "}",
+ "[qualifier .mixin] ([variable-2 @_]; [variable-2 @color]) {",
+ " [property display]: [atom block];",
+ "}",
+ "[variable-2 @switch]: [variable light];",
+ "[qualifier .class] {",
+ " [qualifier .mixin]([variable-2 @switch]; [atom #888]);",
+ "}");
+
+ MT("nest",
+ "[qualifier .one] {",
+ " [def @media] ([property width]: [number 400px]) {",
+ " [property font-size]: [number 1.2em];",
+ " [def @media] [attribute print] [keyword and] [property color] {",
+ " [property color]: [keyword blue];",
+ " }",
+ " }",
+ "}");
+})();
diff --git a/src/main/resources/static/lib/editormd/lib/codemirror/mode/css/scss.html b/src/main/resources/static/lib/editormd/lib/codemirror/mode/css/scss.html
new file mode 100644
index 0000000..21f20e0
--- /dev/null
+++ b/src/main/resources/static/lib/editormd/lib/codemirror/mode/css/scss.html
@@ -0,0 +1,157 @@
+
+
+