annotate vendor/plugins/coderay-0.9.2/lib/coderay/styles/.svn/text-base/cycnus.rb.svn-base @ 36:de76cd3e8c8e cc-branches

* Probably abortive experiments in extracting the branch from Hg
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 20 Oct 2010 10:07:29 +0100
parents 513646585e45
children
rev   line source
Chris@0 1 module CodeRay
Chris@0 2 module Styles
Chris@0 3
Chris@0 4 class Cycnus < Style
Chris@0 5
Chris@0 6 register_for :cycnus
Chris@0 7
Chris@0 8 code_background = '#f8f8f8'
Chris@0 9 numbers_background = '#def'
Chris@0 10 border_color = 'silver'
Chris@0 11 normal_color = '#000'
Chris@0 12
Chris@0 13 CSS_MAIN_STYLES = <<-MAIN
Chris@0 14 .CodeRay {
Chris@0 15 background-color: #{code_background};
Chris@0 16 border: 1px solid #{border_color};
Chris@0 17 font-family: 'Courier New', 'Terminal', monospace;
Chris@0 18 color: #{normal_color};
Chris@0 19 }
Chris@0 20 .CodeRay pre { margin: 0px }
Chris@0 21
Chris@0 22 div.CodeRay { }
Chris@0 23
Chris@0 24 span.CodeRay { white-space: pre; border: 0px; padding: 2px }
Chris@0 25
Chris@0 26 table.CodeRay { border-collapse: collapse; width: 100%; padding: 2px }
Chris@0 27 table.CodeRay td { padding: 2px 4px; vertical-align: top }
Chris@0 28
Chris@0 29 .CodeRay .line_numbers, .CodeRay .no {
Chris@0 30 background-color: #{numbers_background};
Chris@0 31 color: gray;
Chris@0 32 text-align: right;
Chris@0 33 }
Chris@0 34 .CodeRay .line_numbers tt { font-weight: bold }
Chris@0 35 .CodeRay .line_numbers .highlighted { color: red }
Chris@0 36 .CodeRay .no { padding: 0px 4px }
Chris@0 37 .CodeRay .code { width: 100% }
Chris@0 38
Chris@0 39 ol.CodeRay { font-size: 10pt }
Chris@0 40 ol.CodeRay li { white-space: pre }
Chris@0 41
Chris@0 42 .CodeRay .code pre { overflow: auto }
Chris@0 43 MAIN
Chris@0 44
Chris@0 45 TOKEN_COLORS = <<-'TOKENS'
Chris@0 46 .debug { color:white ! important; background:blue ! important; }
Chris@0 47
Chris@0 48 .af { color:#00C }
Chris@0 49 .an { color:#007 }
Chris@0 50 .at { color:#f08 }
Chris@0 51 .av { color:#700 }
Chris@0 52 .aw { color:#C00 }
Chris@0 53 .bi { color:#509; font-weight:bold }
Chris@0 54 .c { color:#888; }
Chris@0 55
Chris@0 56 .ch { color:#04D }
Chris@0 57 .ch .k { color:#04D }
Chris@0 58 .ch .dl { color:#039 }
Chris@0 59
Chris@0 60 .cl { color:#B06; font-weight:bold }
Chris@0 61 .cm { color:#A08; font-weight:bold }
Chris@0 62 .co { color:#036; font-weight:bold }
Chris@0 63 .cr { color:#0A0 }
Chris@0 64 .cv { color:#369 }
Chris@0 65 .de { color:#B0B; }
Chris@0 66 .df { color:#099; font-weight:bold }
Chris@0 67 .di { color:#088; font-weight:bold }
Chris@0 68 .dl { color:black }
Chris@0 69 .do { color:#970 }
Chris@0 70 .dt { color:#34b }
Chris@0 71 .ds { color:#D42; font-weight:bold }
Chris@0 72 .e { color:#666; font-weight:bold }
Chris@0 73 .en { color:#800; font-weight:bold }
Chris@0 74 .er { color:#F00; background-color:#FAA }
Chris@0 75 .ex { color:#C00; font-weight:bold }
Chris@0 76 .fl { color:#60E; font-weight:bold }
Chris@0 77 .fu { color:#06B; font-weight:bold }
Chris@0 78 .gv { color:#d70; font-weight:bold }
Chris@0 79 .hx { color:#058; font-weight:bold }
Chris@0 80 .i { color:#00D; font-weight:bold }
Chris@0 81 .ic { color:#B44; font-weight:bold }
Chris@0 82
Chris@0 83 .il { background: #ddd; color: black }
Chris@0 84 .il .il { background: #ccc }
Chris@0 85 .il .il .il { background: #bbb }
Chris@0 86 .il .idl { background: #ddd; font-weight: bold; color: #666 }
Chris@0 87 .idl { background-color: #bbb; font-weight: bold; color: #666; }
Chris@0 88
Chris@0 89 .im { color:#f00; }
Chris@0 90 .in { color:#B2B; font-weight:bold }
Chris@0 91 .iv { color:#33B }
Chris@0 92 .la { color:#970; font-weight:bold }
Chris@0 93 .lv { color:#963 }
Chris@0 94 .oc { color:#40E; font-weight:bold }
Chris@0 95 .of { color:#000; font-weight:bold }
Chris@0 96 .op { }
Chris@0 97 .pc { color:#038; font-weight:bold }
Chris@0 98 .pd { color:#369; font-weight:bold }
Chris@0 99 .pp { color:#579; }
Chris@0 100 .ps { color:#00C; font-weight:bold }
Chris@0 101 .pt { color:#074; font-weight:bold }
Chris@0 102 .r, .kw { color:#080; font-weight:bold }
Chris@0 103
Chris@0 104 .ke { color: #808; }
Chris@0 105 .ke .dl { color: #606; }
Chris@0 106 .ke .ch { color: #80f; }
Chris@0 107 .vl { color: #088; }
Chris@0 108
Chris@0 109 .rx { background-color:#fff0ff }
Chris@0 110 .rx .k { color:#808 }
Chris@0 111 .rx .dl { color:#404 }
Chris@0 112 .rx .mod { color:#C2C }
Chris@0 113 .rx .fu { color:#404; font-weight: bold }
Chris@0 114
Chris@0 115 .s { background-color:#fff0f0; color: #D20; }
Chris@0 116 .s .s { background-color:#ffe0e0 }
Chris@0 117 .s .s .s { background-color:#ffd0d0 }
Chris@0 118 .s .k { }
Chris@0 119 .s .ch { color: #b0b; }
Chris@0 120 .s .dl { color: #710; }
Chris@0 121
Chris@0 122 .sh { background-color:#f0fff0; color:#2B2 }
Chris@0 123 .sh .k { }
Chris@0 124 .sh .dl { color:#161 }
Chris@0 125
Chris@0 126 .sy { color:#A60 }
Chris@0 127 .sy .k { color:#A60 }
Chris@0 128 .sy .dl { color:#630 }
Chris@0 129
Chris@0 130 .ta { color:#070 }
Chris@0 131 .tf { color:#070; font-weight:bold }
Chris@0 132 .ts { color:#D70; font-weight:bold }
Chris@0 133 .ty { color:#339; font-weight:bold }
Chris@0 134 .v { color:#036 }
Chris@0 135 .xt { color:#444 }
Chris@0 136
Chris@0 137 .ins { background: #afa; }
Chris@0 138 .del { background: #faa; }
Chris@0 139 .chg { color: #aaf; background: #007; }
Chris@0 140 .head { color: #f8f; background: #505 }
Chris@0 141
Chris@0 142 .ins .ins { color: #080; font-weight:bold }
Chris@0 143 .del .del { color: #800; font-weight:bold }
Chris@0 144 .chg .chg { color: #66f; }
Chris@0 145 .head .head { color: #f4f; }
Chris@0 146 TOKENS
Chris@0 147
Chris@0 148 end
Chris@0 149
Chris@0 150 end
Chris@0 151 end