Commits

David Storey committed 728f8c3

Added default CodeMirror styles

Comments (0)

Files changed (6)

tests/syntax-highlight-css/code-mirror.css

+
+/* ecma script source */
+.source {
+  font-family: "Bitstream Vera Sans Mono", "Monaco", "Consolas", "Courier New", monospace;
+  font-size: 11px;
+}
+.css-selector {
+  color: #1111bb;
+}
+
+.css-property {
+  color: #000;
+}
+
+.css-property-value {
+  color: #770088; /* color for keywords */
+}
+
+

tests/syntax-highlight-css/index.html

 <link rel="alternate stylesheet" title="mac classic" href="mac-classic.css">
 <link rel="alternate stylesheet" title="pastels on dark" href="pastels.css">
 <link rel="alternate stylesheet" title="slate" href="slate.css">
+<link rel="alternate stylesheet" title="codemirror" href="code-mirror.css">
 <link rel="alternate stylesheet" title="david" href="david.css">
 
 <script src="../syntax-highlight-markup/alternatestylesheet.js"></script>

tests/syntax-highlight-javascript/code-mirror.css

+
+/* ecma script source */
+
+
+.comment {
+  color: #aa7700;
+}
+
+.js_builtins {
+  color: #000;
+}
+
+.js_keywords {
+  color: #770088;
+}
+
+.number {
+  color: #228811;
+}
+
+.punctuator {
+  color: #666666;
+}
+
+.reg_exp {
+  color: #aa2222;
+}
+
+.string {
+  color: #aa2222;
+}

tests/syntax-highlight-javascript/index.html

 <link rel="alternate stylesheet" title="old df" href="old-df.css">
 <link rel="alternate stylesheet" title="1" href="1.css">
 <link rel="alternate stylesheet" title="p" href="p.css">
+<link rel="alternate stylesheet" title="codemirror" href="code-mirror.css">
 <script src="../syntax-highlight-markup/alternatestylesheet.js"></script>
 <style>
 

tests/syntax-highlight-markup/code-mirror.css

+.markup-tag {
+  color: #aa00bb; 
+}
+
+.markup-attribute {
+  color: #0000ff; 
+}
+
+.markup-attribute-value {
+  color: #228811; 
+}
+
+.markup-comment {
+     color: #aa7700;
+}
+.markup-bogus-comment {
+     color: #358134;
+}

tests/syntax-highlight-markup/index.html

 <link rel="alternate stylesheet" title="bbp" href="bbp.css">
 <link rel="alternate stylesheet" title="bbb" href="bbb.css">
 <link rel="alternate stylesheet" title="br" href="br.css">
+<link rel="alternate stylesheet" title="codemirror" href="code-mirror.css">
 <link rel="alternate stylesheet" title="david" href="david.css">
 <link rel="alternate stylesheet" title="david alt" href="david-alt.css">