From 23e5605488f613bd864671a322562ecfcb2d945d Mon Sep 17 00:00:00 2001 From: murphy Date: Wed, 8 Oct 2008 20:18:31 +0000 Subject: New: *JSON* (closes #53). Version 0.8 is near! * Simple and really nice scanner (I think), produces colorful output. * Checked against strange examples from Ruby's JSON lib. More changes: * Changed version number. Finally! * Added some token styles for :key token group. * cYcnus style: chars inside of strings are highlighted purple instead of blue. * murphy style needs work. --- lib/coderay/styles/cycnus.rb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'lib/coderay/styles') diff --git a/lib/coderay/styles/cycnus.rb b/lib/coderay/styles/cycnus.rb index 521c3c9..c0dab99 100644 --- a/lib/coderay/styles/cycnus.rb +++ b/lib/coderay/styles/cycnus.rb @@ -97,6 +97,8 @@ ol.CodeRay li { white-space: pre } .r, .kw { color:#080; font-weight:bold } .ke { color: #808; } +.ke .dl { color: #606; } +.ke .ch { color: #80f; } .vl { color: #088; } .rx { background-color:#fff0ff } @@ -105,11 +107,12 @@ ol.CodeRay li { white-space: pre } .rx .mod { color:#C2C } .rx .fu { color:#404; font-weight: bold } -.s { background-color:#fff0f0 } -.s .s { background-color:#ffe0e0 } -.s .s .s { background-color:#ffd0d0 } -.s .k { color:#D20 } -.s .dl { color:#710 } +.s { background-color:#fff0f0 } +.s .s { background-color:#ffe0e0 } +.s .s .s { background-color:#ffd0d0 } +.s .k { color: #D20; } +.s .ch { color: #b0b; } +.s .dl { color: #710; } .sh { background-color:#f0fff0 } .sh .k { color:#2B2 } -- cgit v1.2.1