annotate vendor/gems/coderay-0.9.7/lib/coderay/styles/murphy.rb @ 855:7294e8db2515 bug_162

Close obsolete branch bug_162
author Chris Cannam
date Thu, 14 Jul 2011 11:59:19 +0100
parents 0579821a129a
children
rev   line source
Chris@210 1 module CodeRay
Chris@210 2 module Styles
Chris@210 3
Chris@210 4 class Murphy < Style
Chris@210 5
Chris@210 6 register_for :murphy
Chris@210 7
Chris@210 8 code_background = '#001129'
Chris@210 9 numbers_background = code_background
Chris@210 10 border_color = 'silver'
Chris@210 11 normal_color = '#C0C0C0'
Chris@210 12
Chris@210 13 CSS_MAIN_STYLES = <<-MAIN
Chris@210 14 .CodeRay {
Chris@210 15 background-color: #{code_background};
Chris@210 16 border: 1px solid #{border_color};
Chris@210 17 font-family: 'Courier New', 'Terminal', monospace;
Chris@210 18 color: #{normal_color};
Chris@210 19 }
Chris@210 20 .CodeRay pre { margin: 0px; }
Chris@210 21
Chris@210 22 div.CodeRay { }
Chris@210 23
Chris@210 24 span.CodeRay { white-space: pre; border: 0px; padding: 2px; }
Chris@210 25
Chris@210 26 table.CodeRay { border-collapse: collapse; width: 100%; padding: 2px; }
Chris@210 27 table.CodeRay td { padding: 2px 4px; vertical-align: top; }
Chris@210 28
Chris@210 29 .CodeRay .line_numbers, .CodeRay .no {
Chris@210 30 background-color: #{numbers_background};
Chris@210 31 color: gray;
Chris@210 32 text-align: right;
Chris@210 33 }
Chris@210 34 .CodeRay .line_numbers tt { font-weight: bold; }
Chris@210 35 .CodeRay .line_numbers .highlighted { color: red }
Chris@210 36 .CodeRay .line { display: block; float: left; width: 100%; }
Chris@210 37 .CodeRay .no { padding: 0px 4px; }
Chris@210 38 .CodeRay .code { width: 100%; }
Chris@210 39
Chris@210 40 ol.CodeRay { font-size: 10pt; }
Chris@210 41 ol.CodeRay li { white-space: pre; }
Chris@210 42
Chris@210 43 .CodeRay .code pre { overflow: auto; }
Chris@210 44 MAIN
Chris@210 45
Chris@210 46 TOKEN_COLORS = <<-'TOKENS'
Chris@210 47 .af { color:#00C; }
Chris@210 48 .an { color:#007; }
Chris@210 49 .av { color:#700; }
Chris@210 50 .aw { color:#C00; }
Chris@210 51 .bi { color:#509; font-weight:bold; }
Chris@210 52 .c { color:#555; background-color: black; }
Chris@210 53
Chris@210 54 .ch { color:#88F; }
Chris@210 55 .ch .k { color:#04D; }
Chris@210 56 .ch .dl { color:#039; }
Chris@210 57
Chris@210 58 .cl { color:#e9e; font-weight:bold; }
Chris@210 59 .co { color:#5ED; font-weight:bold; }
Chris@210 60 .cr { color:#0A0; }
Chris@210 61 .cv { color:#ccf; }
Chris@210 62 .df { color:#099; font-weight:bold; }
Chris@210 63 .di { color:#088; font-weight:bold; }
Chris@210 64 .dl { color:black; }
Chris@210 65 .do { color:#970; }
Chris@210 66 .ds { color:#D42; font-weight:bold; }
Chris@210 67 .e { color:#666; font-weight:bold; }
Chris@210 68 .er { color:#F00; background-color:#FAA; }
Chris@210 69 .ex { color:#F00; font-weight:bold; }
Chris@210 70 .fl { color:#60E; font-weight:bold; }
Chris@210 71 .fu { color:#5ed; font-weight:bold; }
Chris@210 72 .gv { color:#f84; }
Chris@210 73 .hx { color:#058; font-weight:bold; }
Chris@210 74 .i { color:#66f; font-weight:bold; }
Chris@210 75 .ic { color:#B44; font-weight:bold; }
Chris@210 76 .il { }
Chris@210 77 .in { color:#B2B; font-weight:bold; }
Chris@210 78 .iv { color:#aaf; }
Chris@210 79 .la { color:#970; font-weight:bold; }
Chris@210 80 .lv { color:#963; }
Chris@210 81 .oc { color:#40E; font-weight:bold; }
Chris@210 82 .of { color:#000; font-weight:bold; }
Chris@210 83 .op { }
Chris@210 84 .pc { color:#08f; font-weight:bold; }
Chris@210 85 .pd { color:#369; font-weight:bold; }
Chris@210 86 .pp { color:#579; }
Chris@210 87 .pt { color:#66f; font-weight:bold; }
Chris@210 88 .r { color:#5de; font-weight:bold; }
Chris@210 89 .r, .kw { color:#5de; font-weight:bold }
Chris@210 90
Chris@210 91 .ke { color: #808; }
Chris@210 92
Chris@210 93 .rx { background-color:#221133; }
Chris@210 94 .rx .k { color:#f8f; }
Chris@210 95 .rx .dl { color:#f0f; }
Chris@210 96 .rx .mod { color:#f0b; }
Chris@210 97 .rx .fu { color:#404; font-weight: bold; }
Chris@210 98
Chris@210 99 .s { background-color:#331122; }
Chris@210 100 .s .s { background-color:#ffe0e0; }
Chris@210 101 .s .s .s { background-color:#ffd0d0; }
Chris@210 102 .s .k { color:#F88; }
Chris@210 103 .s .dl { color:#f55; }
Chris@210 104
Chris@210 105 .sh { background-color:#f0fff0; }
Chris@210 106 .sh .k { color:#2B2; }
Chris@210 107 .sh .dl { color:#161; }
Chris@210 108
Chris@210 109 .sy { color:#Fc8; }
Chris@210 110 .sy .k { color:#Fc8; }
Chris@210 111 .sy .dl { color:#F84; }
Chris@210 112
Chris@210 113 .ta { color:#070; }
Chris@210 114 .tf { color:#070; font-weight:bold; }
Chris@210 115 .ts { color:#D70; font-weight:bold; }
Chris@210 116 .ty { color:#339; font-weight:bold; }
Chris@210 117 .v { color:#036; }
Chris@210 118 .xt { color:#444; }
Chris@210 119
Chris@210 120 .ins { background: #afa; }
Chris@210 121 .del { background: #faa; }
Chris@210 122 .chg { color: #aaf; background: #007; }
Chris@210 123 .head { color: #f8f; background: #505 }
Chris@210 124
Chris@210 125 .ins .ins { color: #080; font-weight:bold }
Chris@210 126 .del .del { color: #800; font-weight:bold }
Chris@210 127 .chg .chg { color: #66f; }
Chris@210 128 .head .head { color: #f4f; }
Chris@210 129 TOKENS
Chris@210 130
Chris@210 131 end
Chris@210 132
Chris@210 133 end
Chris@210 134 end