Commits

David Storey committed 8d80112

Added monokai styles. Many are not possible with current tokeniser

Comments (0)

Files changed (6)

tests/syntax-highlight-css/index.html

 <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="monokai" href="monokai.css">
 <link rel="alternate stylesheet" title="david" href="david.css">
 
 <script src="../syntax-highlight-markup/alternatestylesheet.js"></script>

tests/syntax-highlight-css/monokai.css

+
+/* ecma script source */
+.source {
+  font-family: "Bitstream Vera Sans Mono", "Monaco", "Consolas", "Courier New", monospace;
+  font-size: 9pt;
+  line-height: 1.3em;
+  background-color: #272822;
+  color: #f8f8f2;
+}
+.css-selector {
+  color: #f92672;
+}
+
+.css-property {
+  color:#66d9ef;
+  font-style: italic;
+}
+
+.css-property-value {
+  color: #66d9ef; /*color for keyword values*/
+}
+
+

tests/syntax-highlight-javascript/index.html

 <link rel="alternate stylesheet" title="p" href="p.css">
 <link rel="alternate stylesheet" title="codemirror" href="code-mirror.css">
 <link rel="alternate stylesheet" title="textwrangler" href="text-wrangler.css">
+<link rel="alternate stylesheet" title="monokai" href="monokai.css">
 <script src="../syntax-highlight-markup/alternatestylesheet.js"></script>
 <style>
 

tests/syntax-highlight-javascript/monokai.css

+
+/* ecma script source */
+.source {
+  background-color: #272822;
+  color: #f8f8f2;
+}
+
+.comment {
+  color: #75715e;
+}
+
+.js_builtins {
+  color: #66d9ef;
+  font-style: italic;
+}
+
+.js_keywords {
+  color: #f92672;
+}
+
+.number {
+  color: #ae81ff;
+}
+
+.punctuator {
+  color: #f92672;
+}
+
+.reg_exp {
+  color: #e6db74;
+}
+
+.string {
+  color: #e6db74;
+}

tests/syntax-highlight-markup/index.html

 <link rel="alternate stylesheet" title="br" href="br.css">
 <link rel="alternate stylesheet" title="codemirror" href="code-mirror.css">
 <link rel="alternate stylesheet" title="textwrangler" href="text-wrangler.css">
+<link rel="alternate stylesheet" title="monokai" href="monokai.css">
 <link rel="alternate stylesheet" title="david" href="david.css">
 <link rel="alternate stylesheet" title="david alt" href="david-alt.css">
 

tests/syntax-highlight-markup/monokai.css

+.source {
+  background-color: #272822;
+  color: #f8f8f2;
+}
+
+.markup-tag {
+  color: #f92672; 
+}
+
+.markup-attribute {
+  color: #a6e22e; 
+}
+
+.markup-attribute-value {
+  color: #e6db74; 
+}
+
+.markup-comment {
+     color: #75715e;
+}
+.markup-bogus-comment {
+     color: #358134;
+}