diff options
Diffstat (limited to 'lib/coderay/styles')
-rw-r--r-- | lib/coderay/styles/cycnus.rb | 10 | ||||
-rw-r--r-- | lib/coderay/styles/murphy.rb | 7 |
2 files changed, 6 insertions, 11 deletions
diff --git a/lib/coderay/styles/cycnus.rb b/lib/coderay/styles/cycnus.rb index d2a4353..8196c9f 100644 --- a/lib/coderay/styles/cycnus.rb +++ b/lib/coderay/styles/cycnus.rb @@ -1,6 +1,7 @@ module CodeRay module Styles - + + # A colorful theme that is also the default for CodeRay output. class Cycnus < Style register_for :cycnus @@ -10,7 +11,7 @@ module Styles border_color = 'silver' normal_color = '#000' - CSS_MAIN_STYLES = <<-MAIN + CSS_MAIN_STYLES = <<-MAIN # :nodoc: .CodeRay { background-color: #{code_background}; border: 1px solid #{border_color}; @@ -45,11 +46,9 @@ ol.CodeRay li { white-space: pre } TOKEN_COLORS = <<-'TOKENS' .debug { color:white ! important; background:blue ! important; } -.af { color:#00C } .an { color:#007 } .at { color:#f08 } .av { color:#700 } -.aw { color:#C00 } .bi { color:#509; font-weight:bold } .c { color:#888; } @@ -92,7 +91,6 @@ ol.CodeRay li { white-space: pre } .la { color:#970; font-weight:bold } .lv { color:#963 } .oc { color:#40E; font-weight:bold } -.of { color:#000; font-weight:bold } .op { } .pc { color:#038; font-weight:bold } .pd { color:#369; font-weight:bold } @@ -128,7 +126,6 @@ ol.CodeRay li { white-space: pre } .sy .dl { color:#630 } .ta { color:#070 } -.tf { color:#070; font-weight:bold } .ts { color:#D70; font-weight:bold } .ty { color:#339; font-weight:bold } .v { color:#036 } @@ -138,6 +135,7 @@ ol.CodeRay li { white-space: pre } .del { background: #faa; } .chg { color: #aaf; background: #007; } .head { color: #f8f; background: #505 } +.head .filename { color: white; } .ins .ins { color: #080; font-weight:bold } .del .del { color: #800; font-weight:bold } diff --git a/lib/coderay/styles/murphy.rb b/lib/coderay/styles/murphy.rb index 211ab6b..033d949 100644 --- a/lib/coderay/styles/murphy.rb +++ b/lib/coderay/styles/murphy.rb @@ -1,6 +1,7 @@ module CodeRay module Styles + # A alternative color theme. class Murphy < Style register_for :murphy @@ -10,7 +11,7 @@ module Styles border_color = 'silver' normal_color = '#C0C0C0' - CSS_MAIN_STYLES = <<-MAIN + CSS_MAIN_STYLES = <<-MAIN # :nodoc: .CodeRay { background-color: #{code_background}; border: 1px solid #{border_color}; @@ -42,10 +43,8 @@ ol.CodeRay li { white-space: pre; } MAIN TOKEN_COLORS = <<-'TOKENS' -.af { color:#00C; } .an { color:#007; } .av { color:#700; } -.aw { color:#C00; } .bi { color:#509; font-weight:bold; } .c { color:#555; background-color: black; } @@ -77,7 +76,6 @@ ol.CodeRay li { white-space: pre; } .la { color:#970; font-weight:bold; } .lv { color:#963; } .oc { color:#40E; font-weight:bold; } -.of { color:#000; font-weight:bold; } .op { } .pc { color:#08f; font-weight:bold; } .pd { color:#369; font-weight:bold; } @@ -109,7 +107,6 @@ ol.CodeRay li { white-space: pre; } .sy .dl { color:#F84; } .ta { color:#070; } -.tf { color:#070; font-weight:bold; } .ts { color:#D70; font-weight:bold; } .ty { color:#339; font-weight:bold; } .v { color:#036; } |