From 41acfacb91970c8fa4e8b34f35c718eb329a3733 Mon Sep 17 00:00:00 2001 From: murphy Date: Thu, 18 Sep 2008 01:12:44 +0000 Subject: New: *CSS Scanner* (closes #29). * Based on Stefan Walk's implementation, with fixes, enhancements and speedups. * It seems to be fairly fast and highlights nicely. * I added the styles for Ignis Draconis, S5, and YUI as example code for testing. More changes: * Added three new token classes, :important, :pseudo_class, and :value, along with CSS styles. --- lib/coderay/styles/cycnus.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/coderay/styles') diff --git a/lib/coderay/styles/cycnus.rb b/lib/coderay/styles/cycnus.rb index 7b68a66..d552d50 100644 --- a/lib/coderay/styles/cycnus.rb +++ b/lib/coderay/styles/cycnus.rb @@ -80,6 +80,7 @@ ol.CodeRay li { white-space: pre } .il .il .il { background: #ccc } .il .idl { font-weight: bold; color: #888 } +.im { color:#f00; } .in { color:#B2B; font-weight:bold } .iv { color:#33B } .la { color:#970; font-weight:bold } @@ -89,11 +90,13 @@ ol.CodeRay li { white-space: pre } .op { } .pc { color:#038; font-weight:bold } .pd { color:#369; font-weight:bold } -.pp { color:#579 } +.pp { color:#579; } +.ps { color:#00C; font-weight: bold; } .pt { color:#339; font-weight:bold } .r, .kw { color:#080; font-weight:bold } .ke { color: #808; } +.vl { color: #088; } .rx { background-color:#fff0ff } .rx .k { color:#808 } -- cgit v1.2.1