Permalink
Browse files

Add 'negative' and 'positive' token styles

  • Loading branch information...
1 parent fbf122f commit 4f7df9b5eb071546563263510dedc8659ed071a7 @marijnh marijnh committed Nov 28, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −0 lib/codemirror.css
  2. +2 −2 mode/diff/diff.js
View
2 lib/codemirror.css
@@ -86,6 +86,8 @@
.cm-s-default .cm-hr {color: #999;}
.cm-s-default .cm-link {color: #00c;}
+.cm-negative {color: #d44;}
+.cm-positive {color: #292;}
.cm-header, .cm-strong {font-weight: bold;}
.cm-em {font-style: italic;}
.cm-emstrong {font-style: italic; font-weight: bold;}
View
4 mode/diff/diff.js
@@ -1,8 +1,8 @@
CodeMirror.defineMode("diff", function() {
var TOKEN_NAMES = {
- '+': 'tag',
- '-': 'string',
+ '+': 'positive',
+ '-': 'negative',
'@': 'meta'
};

0 comments on commit 4f7df9b

Please sign in to comment.