syntax_highlight.diff

SyntaxHighlighter (http://alexgorbatchev.com/wiki/SyntaxHighlighter) Patch - Youssef Abou-Kewik, 2009-05-14 11:24

Download (133 KB)

View differences:

app/helpers/application_helper.rb (working copy)
189 189
  end
190 190

  
191 191
  def syntax_highlight(name, content)
192
    #type = CodeRay::FileType[name]
193
    #type ? CodeRay.scan(content, type).html : 
194
    h(content)
195
  end
196

  
197
  def syntax_highlight_type(name)
192 198
    type = CodeRay::FileType[name]
193
    type ? CodeRay.scan(content, type).html : h(content)
199
    type ? h(type) : "plain"
194 200
  end
195 201

  
202

  
203

  
196 204
  def to_path_param(path)
197 205
    path.to_s.split(%r{[/\\]}).select {|p| !p.blank?}
198 206
  end
app/views/common/_file.rhtml (working copy)
1
<div class="autoscroll">
2
<table class="filecontent CodeRay">
3
<tbody>
4
<% line_num = 1 %>
5
<% syntax_highlight(filename, to_utf8(content)).each_line do |line| %>
6
<tr><th class="line-num" id="L<%= line_num %>"><a href="#L<%= line_num %>"><%= line_num %></a></th><td class="line-code"><pre><%= line %></pre></td></tr>
7
<% line_num += 1 %>
8
<% end %>
9
</tbody>
10
</table>
11
</div>
1
<!--<div class="autoscroll">-->
2
<link type="text/css" rel="stylesheet" href="/styles/shCore.css" /> 
3
<link type="text/css" rel="stylesheet" href="/styles/shThemeDefault.css" /> 
4
<script type="text/javascript" src="/scripts/shCore.js"></script> 
5

  
6
<script type="text/javascript" src="/scripts/shBrushJScript.js"></script> 
7
<script type="text/javascript" src="/scripts/shBrushPhp.js"></script> 
8
<script type="text/javascript" src="/scripts/shBrushPowerShell.js"></script> 
9
<script type="text/javascript" src="/scripts/shBrushDelphi.js"></script> 
10
<script type="text/javascript" src="/scripts/shBrushGroovy.js"></script> 
11
<script type="text/javascript" src="/scripts/shBrushPlain.js"></script> 
12
<script type="text/javascript" src="/scripts/shLegacy.js"></script> 
13
<script type="text/javascript" src="/scripts/shBrushXml.js"></script> 
14
<script type="text/javascript" src="/scripts/shBrushAS3.js"></script> 
15
<script type="text/javascript" src="/scripts/shBrushPython.js"></script> 
16
<script type="text/javascript" src="/scripts/shBrushJava.js"></script> 
17
<script type="text/javascript" src="/scripts/shBrushJavaFX.js"></script> 
18
<script type="text/javascript" src="/scripts/shBrushDiff.js"></script> 
19
<script type="text/javascript" src="/scripts/shBrushBash.js"></script> 
20
<script type="text/javascript" src="/scripts/shBrushScala.js"></script> 
21
<script type="text/javascript" src="/scripts/shBrushCpp.js"></script> 
22
<script type="text/javascript" src="/scripts/shBrushRuby.js"></script> 
23
<script type="text/javascript" src="/scripts/shBrushVb.js"></script> 
24
<script type="text/javascript" src="/scripts/shBrushCss.js"></script> 
25
<script type="text/javascript" src="/scripts/shBrushPerl.js"></script> 
26
<script type="text/javascript" src="/scripts/shBrushSql.js"></script> 
27
<script type="text/javascript" src="/scripts/shBrushCSharp.js"></script> 
28

  
29
<script type="text/javascript">
30
        SyntaxHighlighter.config.clipboardSwf = '/scripts/clipboard.swf';	
31
	SyntaxHighlighter.all();
32
</script> 
33

  
34

  
35
<pre class="brush:<%= syntax_highlight_type(filename) %>">
36
<% syntax_highlight(filename, to_utf8(content)).each_line do |line| %><%= line %><% end %>
37
</pre>
38
<!--</div>-->
public/styles/shThemeDjango.css (revision 0)
1
/**
2
 * SyntaxHighlighter
3
 * http://alexgorbatchev.com/
4
 *
5
 * SyntaxHighlighter is donationware. If you are using it, please donate.
6
 * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
 *
8
 * @version
9
 * 2.0.320 (May 03 2009)
10
 * 
11
 * @copyright
12
 * Copyright (C) 2004-2009 Alex Gorbatchev.
13
 *
14
 * @license
15
 * This file is part of SyntaxHighlighter.
16
 * 
17
 * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
 * it under the terms of the GNU Lesser General Public License as published by
19
 * the Free Software Foundation, either version 3 of the License, or
20
 * (at your option) any later version.
21
 * 
22
 * SyntaxHighlighter is distributed in the hope that it will be useful,
23
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25
 * GNU General Public License for more details.
26
 * 
27
 * You should have received a copy of the GNU General Public License
28
 * along with SyntaxHighlighter.  If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
 */
30
/**
31
 * Django SyntaxHighlighter theme
32
 */
33

  
34
/************************************
35
 * Interface elements.
36
 ************************************/
37

  
38
.syntaxhighlighter
39
{
40
	background-color: #0B2F20 !important;
41
}
42

  
43
/* Gutter line numbers */
44
.syntaxhighlighter .line .number
45
{
46
	color: #497958 !important;
47
}
48

  
49
/* Add border to the lines */
50
.syntaxhighlighter .line .content
51
{
52
	border-left: 3px solid #41A83E !important;
53
	color: #B9BDB6 !important;
54
}
55

  
56
.syntaxhighlighter.printing .line .content 
57
{
58
	border: 0 !important;
59
}
60

  
61
/* First line */
62
.syntaxhighlighter .line.alt1 .content
63
{
64
}
65

  
66
/* Second line */
67
.syntaxhighlighter .line.alt2 .content
68
{
69
	background-color: #0a2b1d !important;
70
}
71

  
72
.syntaxhighlighter .line .content .block
73
{
74
	background: url(wrapping.png) 0 1.1em no-repeat !important;
75
}
76

  
77
/* Highlighed line number */
78
.syntaxhighlighter .line.highlighted .number
79
{
80
	background-color: #336442 !important;
81
	color: #fff !important;
82
}
83

  
84
/* Highlighed line */
85
.syntaxhighlighter .line.highlighted.alt1 .content,
86
.syntaxhighlighter .line.highlighted.alt2 .content
87
{
88
	background-color: #336442 !important;
89
}
90

  
91
.syntaxhighlighter .ruler
92
{
93
	color: #C4B14A !important;
94
	background-color: #245032 !important;
95
	border-left: 3px solid #41A83E !important;
96
}
97

  
98
.syntaxhighlighter.nogutter .ruler
99
{
100
	border: 0 !important;
101
}
102

  
103
.syntaxhighlighter .toolbar
104
{
105
	background-color: #245032 !important;
106
	border: #0B2F20 solid 1px !important;
107
}
108

  
109
.syntaxhighlighter .toolbar a
110
{
111
	color: #C4B14A !important;
112
}
113

  
114
.syntaxhighlighter .toolbar a:hover
115
{
116
	color: #FFE862 !important;
117
}
118

  
119
/************************************
120
 * Actual syntax highlighter colors.
121
 ************************************/
122
.syntaxhighlighter .plain,
123
.syntaxhighlighter .plain a
124
{
125
	color: #F8F8F8 !important;
126
}
127

  
128
.syntaxhighlighter .comments,
129
.syntaxhighlighter .comments a
130
{ 
131
	color: #336442 !important;
132
	font-style: italic !important;
133
}
134

  
135
.syntaxhighlighter .string,
136
.syntaxhighlighter .string a
137
{
138
	color: #9DF39F !important; 
139
}
140

  
141
.syntaxhighlighter .keyword
142
{ 
143
	color: #96DD3B !important; 
144
	font-weight: bold !important;
145
}
146

  
147
.syntaxhighlighter .preprocessor 
148
{ 
149
	color: #91BB9E !important; 
150
}
151

  
152
.syntaxhighlighter .variable 
153
{ 
154
	color: #FFAA3E !important; 
155
}
156

  
157
.syntaxhighlighter .value
158
{ 
159
	color: #F7E741 !important; 
160
}
161

  
162
.syntaxhighlighter .functions
163
{ 
164
	color: #FFAA3E !important; 
165
}
166

  
167
.syntaxhighlighter .constants
168
{ 
169
	color: #E0E8FF !important; 
170
}
171

  
172
.syntaxhighlighter .script
173
{ 
174
	background-color: #497958 !important;
175
}
176

  
177
.syntaxhighlighter .color1,
178
.syntaxhighlighter .color1 a
179
{ 
180
	color: #EB939A !important; 
181
}
182

  
183
.syntaxhighlighter .color2,
184
.syntaxhighlighter .color2 a
185
{ 
186
	color: #91BB9E !important; 
187
}
188

  
189
.syntaxhighlighter .color3,
190
.syntaxhighlighter .color3 a
191
{ 
192
	color: #EDEF7D !important; 
193
}
public/styles/shThemeMidnight.css (revision 0)
1
/**
2
 * SyntaxHighlighter
3
 * http://alexgorbatchev.com/
4
 *
5
 * SyntaxHighlighter is donationware. If you are using it, please donate.
6
 * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
 *
8
 * @version
9
 * 2.0.320 (May 03 2009)
10
 * 
11
 * @copyright
12
 * Copyright (C) 2004-2009 Alex Gorbatchev.
13
 *
14
 * @license
15
 * This file is part of SyntaxHighlighter.
16
 * 
17
 * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
 * it under the terms of the GNU Lesser General Public License as published by
19
 * the Free Software Foundation, either version 3 of the License, or
20
 * (at your option) any later version.
21
 * 
22
 * SyntaxHighlighter is distributed in the hope that it will be useful,
23
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25
 * GNU General Public License for more details.
26
 * 
27
 * You should have received a copy of the GNU General Public License
28
 * along with SyntaxHighlighter.  If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
 */
30
/**
31
 * Midnight SyntaxHighlighter theme based on theme by J.D. Myers
32
 * http://webdesign.lsnjd.com/
33
 */
34

  
35
/************************************
36
 * Interface elements.
37
 ************************************/
38

  
39
.syntaxhighlighter
40
{
41
	background-color: #0F192A !important;
42
}
43

  
44
/* Gutter line numbers */
45
.syntaxhighlighter .line .number
46
{
47
	color: #38566F !important;
48
}
49

  
50
/* Add border to the lines */
51
.syntaxhighlighter .line .content
52
{
53
	border-left: 3px solid #435A5F !important;
54
	color: #B9BDB6 !important;
55
}
56

  
57
.syntaxhighlighter.printing .line .content 
58
{
59
	border: 0 !important;
60
}
61

  
62
/* First line */
63
.syntaxhighlighter .line.alt1 .content
64
{
65
	background-color: #0F192A !important;
66
}
67

  
68
/* Second line */
69
.syntaxhighlighter .line.alt2 .content
70
{
71
	background-color: #0F192A !important;
72
}
73

  
74
.syntaxhighlighter .line .content .block
75
{
76
	background: url(wrapping.png) 0 1.1em no-repeat !important;
77
}
78

  
79
/* Highlighed line number */
80
.syntaxhighlighter .line.highlighted .number
81
{
82
	background-color: #253E5A !important;
83
	color: #fff !important;
84
}
85

  
86
/* Highlighed line */
87
.syntaxhighlighter .line.highlighted.alt1 .content,
88
.syntaxhighlighter .line.highlighted.alt2 .content
89
{
90
	background-color: #253E5A !important;
91
}
92

  
93
.syntaxhighlighter .ruler
94
{
95
	color: #38566F !important;
96
	background-color: #0F192A !important;
97
	border-left: 3px solid #435A5F !important;
98
}
99

  
100
.syntaxhighlighter.nogutter .ruler
101
{
102
	border: 0 !important;
103
}
104

  
105
.syntaxhighlighter .toolbar
106
{
107
	background-color: #0F192A !important;
108
}
109

  
110
.syntaxhighlighter .toolbar a
111
{
112
	color: #38566F !important;
113
}
114

  
115
.syntaxhighlighter .toolbar a:hover
116
{
117
	color: #8AA6C1 !important;
118
}
119

  
120
/************************************
121
 * Actual syntax highlighter colors.
122
 ************************************/
123
.syntaxhighlighter .plain,
124
.syntaxhighlighter .plain a
125
{ 
126
	color: #D1EDFF !important;
127
}
128

  
129
.syntaxhighlighter .comments,
130
.syntaxhighlighter .comments a
131
{ 
132
	color: #428BDD !important;
133
}
134

  
135
.syntaxhighlighter .string,
136
.syntaxhighlighter .string a
137
{
138
	color: #1DC116 !important; 
139
}
140

  
141
.syntaxhighlighter .keyword
142
{ 
143
	color: #B43D3D !important; 
144
}
145

  
146
.syntaxhighlighter .preprocessor 
147
{ 
148
	color: #8AA6C1 !important; 
149
}
150

  
151
.syntaxhighlighter .variable 
152
{ 
153
	color: #FFAA3E !important; 
154
}
155

  
156
.syntaxhighlighter .value
157
{ 
158
	color: #F7E741 !important; 
159
}
160

  
161
.syntaxhighlighter .functions
162
{ 
163
	color: #FFAA3E !important; 
164
}
165

  
166
.syntaxhighlighter .constants
167
{ 
168
	color: #E0E8FF !important; 
169
}
170

  
171
.syntaxhighlighter .script
172
{ 
173
	background-color: #404040 !important;
174
}
175

  
176
.syntaxhighlighter .color1,
177
.syntaxhighlighter .color1 a
178
{ 
179
	color: #F8BB00 !important; 
180
}
181

  
182
.syntaxhighlighter .color2,
183
.syntaxhighlighter .color2 a
184
{ 
185
	color: #FFFFFF !important; 
186
}
187

  
188
.syntaxhighlighter .color3,
189
.syntaxhighlighter .color3 a
190
{ 
191
	color: #FFAA3E !important; 
192
}
public/styles/shThemeRDark.css (revision 0)
1
/**
2
 * SyntaxHighlighter
3
 * http://alexgorbatchev.com/
4
 *
5
 * SyntaxHighlighter is donationware. If you are using it, please donate.
6
 * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
 *
8
 * @version
9
 * 2.0.320 (May 03 2009)
10
 * 
11
 * @copyright
12
 * Copyright (C) 2004-2009 Alex Gorbatchev.
13
 *
14
 * @license
15
 * This file is part of SyntaxHighlighter.
16
 * 
17
 * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
 * it under the terms of the GNU Lesser General Public License as published by
19
 * the Free Software Foundation, either version 3 of the License, or
20
 * (at your option) any later version.
21
 * 
22
 * SyntaxHighlighter is distributed in the hope that it will be useful,
23
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25
 * GNU General Public License for more details.
26
 * 
27
 * You should have received a copy of the GNU General Public License
28
 * along with SyntaxHighlighter.  If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
 */
30
/**
31
 * RDark SyntaxHighlighter theme based on theme by Radu Dineiu
32
 * http://www.vim.org/scripts/script.php?script_id=1732
33
 */
34

  
35
/************************************
36
 * Interface elements.
37
 ************************************/
38

  
39
.syntaxhighlighter
40
{
41
	background-color: #1B2426 !important;
42
}
43

  
44
/* Gutter line numbers */
45
.syntaxhighlighter .line .number
46
{
47
	color: #B9BDB6 !important;
48
}
49

  
50
/* Add border to the lines */
51
.syntaxhighlighter .line .content
52
{
53
	border-left: 3px solid #435A5F !important;
54
	color: #B9BDB6 !important;
55
}
56

  
57
.syntaxhighlighter.printing .line .content 
58
{
59
	border: 0 !important;
60
}
61

  
62
/* First line */
63
.syntaxhighlighter .line.alt1 .content
64
{
65
	background-color: #1B2426 !important;
66
}
67

  
68
/* Second line */
69
.syntaxhighlighter .line.alt2 .content
70
{
71
	background-color: #1B2426 !important;
72
}
73

  
74
.syntaxhighlighter .line .content .block
75
{
76
	background: url(wrapping.png) 0 1.1em no-repeat !important;
77
}
78

  
79
/* Highlighed line number */
80
.syntaxhighlighter .line.highlighted .number
81
{
82
	background-color: #435A5F !important;
83
	color: #fff !important;
84
}
85

  
86
/* Highlighed line */
87
.syntaxhighlighter .line.highlighted.alt1 .content,
88
.syntaxhighlighter .line.highlighted.alt2 .content
89
{
90
	background-color: #435A5F !important;
91
}
92

  
93
.syntaxhighlighter .ruler
94
{
95
	color: silver !important;
96
	background-color: #1B2426 !important;
97
	border-left: 3px solid #435A5F !important;
98
}
99

  
100
.syntaxhighlighter.nogutter .ruler
101
{
102
	border: 0 !important;
103
}
104

  
105
.syntaxhighlighter .toolbar
106
{
107
	background-color: #1B2426 !important;
108
}
109

  
110
.syntaxhighlighter .toolbar a
111
{
112
	color: #646763 !important;
113
}
114

  
115
.syntaxhighlighter .toolbar a:hover
116
{
117
	color: #E0E8FF !important;
118
}
119

  
120
/************************************
121
 * Actual syntax highlighter colors.
122
 ************************************/
123
.syntaxhighlighter .plain,
124
.syntaxhighlighter .plain a
125
{ 
126
	color: #B9BDB6 !important;
127
}
128

  
129
.syntaxhighlighter .comments,
130
.syntaxhighlighter .comments a
131
{ 
132
	color: #878A85 !important;
133
}
134

  
135
.syntaxhighlighter .string,
136
.syntaxhighlighter .string a
137
{
138
	color: #5CE638 !important; 
139
}
140

  
141
.syntaxhighlighter .keyword
142
{ 
143
	color: #5BA1CF !important; 
144
}
145

  
146
.syntaxhighlighter .preprocessor 
147
{ 
148
	color: #435A5F !important; 
149
}
150

  
151
.syntaxhighlighter .variable 
152
{ 
153
	color: #FFAA3E !important; 
154
}
155

  
156
.syntaxhighlighter .value
157
{ 
158
	color: #090 !important; 
159
}
160

  
161
.syntaxhighlighter .functions
162
{ 
163
	color: #FFAA3E !important; 
164
}
165

  
166
.syntaxhighlighter .constants
167
{ 
168
	color: #E0E8FF !important; 
169
}
170

  
171
.syntaxhighlighter .script
172
{ 
173
	background-color: #435A5F !important;
174
}
175

  
176
.syntaxhighlighter .color1,
177
.syntaxhighlighter .color1 a
178
{ 
179
	color: #E0E8FF !important; 
180
}
181

  
182
.syntaxhighlighter .color2,
183
.syntaxhighlighter .color2 a
184
{ 
185
	color: #FFFFFF !important; 
186
}
187

  
188
.syntaxhighlighter .color3,
189
.syntaxhighlighter .color3 a
190
{ 
191
	color: #FFAA3E !important; 
192
}
public/styles/shThemeDefault.css (revision 0)
1
/**
2
 * SyntaxHighlighter
3
 * http://alexgorbatchev.com/
4
 *
5
 * SyntaxHighlighter is donationware. If you are using it, please donate.
6
 * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
 *
8
 * @version
9
 * 2.0.320 (May 03 2009)
10
 * 
11
 * @copyright
12
 * Copyright (C) 2004-2009 Alex Gorbatchev.
13
 *
14
 * @license
15
 * This file is part of SyntaxHighlighter.
16
 * 
17
 * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
 * it under the terms of the GNU Lesser General Public License as published by
19
 * the Free Software Foundation, either version 3 of the License, or
20
 * (at your option) any later version.
21
 * 
22
 * SyntaxHighlighter is distributed in the hope that it will be useful,
23
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25
 * GNU General Public License for more details.
26
 * 
27
 * You should have received a copy of the GNU General Public License
28
 * along with SyntaxHighlighter.  If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
 */
30
/************************************
31
 * Default Syntax Highlighter theme.
32
 * 
33
 * Interface elements.
34
 ************************************/
35

  
36
.syntaxhighlighter
37
{
38
	background-color: #E7E5DC !important;
39
}
40

  
41
/* Highlighed line number */
42
.syntaxhighlighter .line.highlighted .number
43
{
44
	background-color: #6CE26C !important;
45
	color: black !important;
46
}
47

  
48
/* Highlighed line */
49
.syntaxhighlighter .line.highlighted.alt1 .content,
50
.syntaxhighlighter .line.highlighted.alt2 .content
51
{
52
	background-color: #6CE26C !important;
53
}
54

  
55
/* Gutter line numbers */
56
.syntaxhighlighter .line .number
57
{
58
	color: #5C5C5C !important;
59
}
60

  
61
/* Add border to the lines */
62
.syntaxhighlighter .line .content
63
{
64
	border-left: 3px solid #6CE26C !important;
65
	color: #000 !important;
66
}
67

  
68
.syntaxhighlighter.printing .line .content 
69
{
70
	border: 0 !important;
71
}
72

  
73
/* First line */
74
.syntaxhighlighter .line.alt1 .content
75
{
76
	background-color: #fff !important;
77
}
78

  
79
/* Second line */
80
.syntaxhighlighter .line.alt2 .content
81
{
82
	background-color: #F8F8F8 !important;
83
}
84

  
85
.syntaxhighlighter .line .content .block
86
{
87
	background: url(wrapping.png) 0 1.1em no-repeat !important;
88
}
89

  
90
.syntaxhighlighter .ruler
91
{
92
	color: silver !important;
93
	background-color: #F8F8F8 !important;
94
	border-left: 3px solid #6CE26C !important;
95
}
96

  
97
.syntaxhighlighter.nogutter .ruler
98
{
99
	border: 0 !important;
100
}
101

  
102
.syntaxhighlighter .toolbar
103
{
104
	background-color: #F8F8F8 !important;
105
	border: #E7E5DC solid 1px !important;
106
}
107

  
108
.syntaxhighlighter .toolbar a
109
{
110
	color: #a0a0a0 !important;
111
}
112

  
113
.syntaxhighlighter .toolbar a:hover
114
{
115
	color: red !important;
116
}
117

  
118
/************************************
119
 * Actual syntax highlighter colors.
120
 ************************************/
121
.syntaxhighlighter .plain,
122
.syntaxhighlighter .plain a
123
{ 
124
	color: #000 !important;
125
}
126

  
127
.syntaxhighlighter .comments,
128
.syntaxhighlighter .comments a
129
{ 
130
	color: #008200 !important;
131
}
132

  
133
.syntaxhighlighter .string,
134
.syntaxhighlighter .string a
135
{
136
	color: blue !important; 
137
}
138

  
139
.syntaxhighlighter .keyword
140
{ 
141
	color: #069 !important; 
142
	font-weight: bold !important; 
143
}
144

  
145
.syntaxhighlighter .preprocessor 
146
{ 
147
	color: gray !important; 
148
}
149

  
150
.syntaxhighlighter .variable 
151
{ 
152
	color: #a70 !important; 
153
}
154

  
155
.syntaxhighlighter .value
156
{ 
157
	color: #090 !important; 
158
}
159

  
160
.syntaxhighlighter .functions
161
{ 
162
	color: #ff1493 !important; 
163
}
164

  
165
.syntaxhighlighter .constants
166
{ 
167
	color: #0066CC !important; 
168
}
169

  
170
.syntaxhighlighter .script
171
{ 
172
	background-color: yellow !important;
173
}
174

  
175
.syntaxhighlighter .color1,
176
.syntaxhighlighter .color1 a
177
{ 
178
	color: #808080 !important; 
179
}
180

  
181
.syntaxhighlighter .color2,
182
.syntaxhighlighter .color2 a
183
{ 
184
	color: #ff1493 !important; 
185
}
186

  
187
.syntaxhighlighter .color3,
188
.syntaxhighlighter .color3 a
189
{ 
190
	color: red !important; 
191
}
public/styles/shCore.css (revision 0)
1
/**
2
 * SyntaxHighlighter
3
 * http://alexgorbatchev.com/
4
 *
5
 * SyntaxHighlighter is donationware. If you are using it, please donate.
6
 * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
 *
8
 * @version
9
 * 2.0.320 (May 03 2009)
10
 * 
11
 * @copyright
12
 * Copyright (C) 2004-2009 Alex Gorbatchev.
13
 *
14
 * @license
15
 * This file is part of SyntaxHighlighter.
16
 * 
17
 * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
 * it under the terms of the GNU Lesser General Public License as published by
19
 * the Free Software Foundation, either version 3 of the License, or
20
 * (at your option) any later version.
21
 * 
22
 * SyntaxHighlighter is distributed in the hope that it will be useful,
23
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25
 * GNU General Public License for more details.
26
 * 
27
 * You should have received a copy of the GNU General Public License
28
 * along with SyntaxHighlighter.  If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
 */
30
.syntaxhighlighter,
31
.syntaxhighlighter div,
32
.syntaxhighlighter code,
33
.syntaxhighlighter span
34
{
35
	margin: 0 !important;
36
	padding: 0 !important;
37
	border: 0 !important;
38
	outline: 0 !important;
39
	background: none !important;
40
	text-align: left !important;
41
	float: none !important;
42
	vertical-align: baseline !important;
43
	position: static !important;
44
	left: auto !important;
45
	top: auto !important;
46
	right: auto !important;
47
	bottom: auto !important;
48
	height: auto !important;
49
	width: auto !important;
50
	line-height: 1.1em !important;
51
	font-family: "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
52
	font-weight: normal !important;
53
	font-style: normal !important;
54
	font-size: 1em !important;
55
}
56

  
57
.syntaxhighlighter
58
{
59
	width: 100% !important;
60
	margin: 1em 0 1em 0 !important;
61
	padding: 1px !important; /* adds a little border on top and bottom */
62
	position: relative !important;
63
}
64

  
65
.syntaxhighlighter code {
66
	display: inline !important;
67
}
68

  
69
.syntaxhighlighter .bold {
70
	font-weight: bold !important;
71
}
72

  
73
.syntaxhighlighter .italic {
74
	font-style: italic !important;
75
}
76

  
77
.syntaxhighlighter .line .number
78
{
79
	float: left !important; 
80
	width: 3em !important; 
81
	padding-right: .3em !important;
82
	text-align: right !important;
83
	display: block !important;
84
}
85

  
86
/* Disable numbers when no gutter option is set */
87
.syntaxhighlighter.nogutter .line .number
88
{
89
	display: none !important;
90
}
91

  
92
.syntaxhighlighter .line .content
93
{
94
	margin-left: 3.3em !important; 
95
	padding-left: .5em !important;
96
	display: block !important;
97
}
98

  
99
.syntaxhighlighter .line .content .block
100
{
101
	display: block !important;
102
	padding-left: 1.5em !important;
103
	text-indent: -1.5em !important;
104
}
105

  
106
.syntaxhighlighter .line .content .spaces
107
{
108
	display: none !important;
109
}
110

  
111
/* Disable border and margin on the lines when no gutter option is set */
112
.syntaxhighlighter.nogutter .line .content
113
{
114
	margin-left: 0 !important; 
115
	border-left: none !important;
116
}
117

  
118
.syntaxhighlighter .bar
119
{
120
	display: none !important;
121
}
122

  
123
.syntaxhighlighter .bar.show 
124
{
125
	display: block !important;
126
}
127

  
128
.syntaxhighlighter.collapsed .bar
129
{
130
	display: block !important;
131
}
132

  
133
.syntaxhighlighter.nogutter .ruler
134
{
135
	margin-left: 0 !important;
136
	padding-left: 0 !important;
137
}
138

  
139
.syntaxhighlighter .ruler
140
{
141
	padding: 0 0 .5em .5em !important;
142
	margin-left: 3.3em !important;
143
	overflow: hidden !important;
144
}
145

  
146
/* Adjust some properties when collapsed */
147

  
148
.syntaxhighlighter.collapsed .lines,
149
.syntaxhighlighter.collapsed .ruler
150
{
151
	display: none !important;
152
}
153

  
154
.syntaxhighlighter .lines.no-wrap
155
{
156
	overflow: auto;
157
	overflow-y: hidden;
158
}
159

  
160
/* Styles for the toolbar */
161

  
162
.syntaxhighlighter .toolbar
163
{
164
	position: absolute !important;
165
	right: 0px !important;
166
	top: 0px !important;
167
	font-size: 1px !important;
168
	padding: 8px 8px 8px 0 !important; /* in px because images don't scale with ems */
169
}
170

  
171
.syntaxhighlighter.collapsed .toolbar
172
{
173
	font-size: 80% !important;
174
	padding: .2em 0 .5em .5em !important;
175
	position: static !important;
176
}
177

  
178
.syntaxhighlighter .toolbar a.item,
179
.syntaxhighlighter .toolbar .item
180
{
181
	display: block !important;
182
	float: left !important;
183
	margin-left: 8px !important;
184
	background-repeat: no-repeat !important;
185
	overflow: hidden !important;
186
	text-indent: -5000px !important;
187
}
188

  
189
.syntaxhighlighter.collapsed .toolbar .item
190
{
191
	display: none !important;
192
}
193

  
194
.syntaxhighlighter.collapsed .toolbar .item.expandSource
195
{
196
	background-image: url(magnifier.png) !important;
197
	display: inline !important;
198
	text-indent: 0 !important;
199
	width: auto !important;
200
	float: none !important;
201
	height: 16px !important;
202
	padding-left: 20px !important;
203
}
204

  
205
.syntaxhighlighter .toolbar .item.viewSource
206
{
207
	background-image: url(page_white_code.png) !important;
208
}
209

  
210
.syntaxhighlighter .toolbar .item.printSource
211
{
212
	background-image: url(printer.png) !important;
213
}
214

  
215
.syntaxhighlighter .toolbar .item.copyToClipboard
216
{
217
	text-indent: 0 !important;
218
	background: none !important;
219
	overflow: visible !important;
220
}
221

  
222
.syntaxhighlighter .toolbar .item.about
223
{
224
	background-image: url(help.png) !important;
225
}
226

  
227
/** 
228
 * Print view.
229
 * Colors are based on the default theme without background.
230
 */
231

  
232
.syntaxhighlighter.printing,
233
.syntaxhighlighter.printing .line.alt1 .content,
234
.syntaxhighlighter.printing .line.alt2 .content,
235
.syntaxhighlighter.printing .line.highlighted .number,
236
.syntaxhighlighter.printing .line.highlighted.alt1 .content,
237
.syntaxhighlighter.printing .line.highlighted.alt2 .content,
238
.syntaxhighlighter.printing .line .content .block
239
{
240
	background: none !important;
241
}
242

  
243
.syntaxhighlighter .no-wrap .line .content .block
244
{
245
	white-space: nowrap !important;
246
}
247

  
248
/* Gutter line numbers */
249
.syntaxhighlighter.printing .line .number
250
{
251
	color: #bbb !important;
252
}
253

  
254
/* Add border to the lines */
255
.syntaxhighlighter.printing .line .content
256
{
257
	color: #000 !important;
258
}
259

  
260
/* Toolbar when visible */
261
.syntaxhighlighter.printing .toolbar,
262
.syntaxhighlighter.printing .ruler
263
{
264
	display: none !important;
265
}
266

  
267
.syntaxhighlighter.printing a
268
{
269
	text-decoration: none !important;
270
}
271

  
272
.syntaxhighlighter.printing .plain,
273
.syntaxhighlighter.printing .plain a
274
{ 
275
	color: #000 !important;
276
}
277

  
278
.syntaxhighlighter.printing .comments,
279
.syntaxhighlighter.printing .comments a
280
{ 
281
	color: #008200 !important;
282
}
283

  
284
.syntaxhighlighter.printing .string,
285
.syntaxhighlighter.printing .string a
286
{
287
	color: blue !important; 
288
}
289

  
290
.syntaxhighlighter.printing .keyword
291
{ 
292
	color: #069 !important; 
293
	font-weight: bold !important; 
294
}
295

  
296
.syntaxhighlighter.printing .preprocessor 
297
{ 
298
	color: gray !important; 
299
}
300

  
301
.syntaxhighlighter.printing .variable 
302
{ 
303
	color: #a70 !important; 
304
}
305

  
306
.syntaxhighlighter.printing .value
307
{ 
308
	color: #090 !important; 
309
}
310

  
311
.syntaxhighlighter.printing .functions
312
{ 
313
	color: #ff1493 !important; 
314
}
315

  
316
.syntaxhighlighter.printing .constants
317
{ 
318
	color: #0066CC !important; 
319
}
320

  
321
.syntaxhighlighter.printing .script
322
{
323
	font-weight: bold !important;
324
}
325

  
326
.syntaxhighlighter.printing .color1,
327
.syntaxhighlighter.printing .color1 a
328
{ 
329
	color: #808080 !important; 
330
}
331

  
332
.syntaxhighlighter.printing .color2,
333
.syntaxhighlighter.printing .color2 a
334
{ 
335
	color: #ff1493 !important; 
336
}
337

  
338
.syntaxhighlighter.printing .color3,
339
.syntaxhighlighter.printing .color3 a
340
{ 
341
	color: red !important; 
342
}
public/styles/shThemeEmacs.css (revision 0)
1
/**
2
 * SyntaxHighlighter
3
 * http://alexgorbatchev.com/
4
 *
5
 * SyntaxHighlighter is donationware. If you are using it, please donate.
6
 * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
 *
8
 * @version
9
 * 2.0.320 (May 03 2009)
10
 * 
11
 * @copyright
12
 * Copyright (C) 2004-2009 Alex Gorbatchev.
13
 *
14
 * @license
15
 * This file is part of SyntaxHighlighter.
16
 * 
17
 * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
 * it under the terms of the GNU Lesser General Public License as published by
19
 * the Free Software Foundation, either version 3 of the License, or
20
 * (at your option) any later version.
21
 * 
22
 * SyntaxHighlighter is distributed in the hope that it will be useful,
23
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25
 * GNU General Public License for more details.
26
 * 
27
 * You should have received a copy of the GNU General Public License
28
 * along with SyntaxHighlighter.  If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
 */
30
/**
31
 * Emacs SyntaxHighlighter theme based on theme by Joshua Emmons
32
 * http://www.skia.net/
33
 */
34

  
35
/************************************
36
 * Interface elements.
37
 ************************************/
38

  
39
.syntaxhighlighter
40
{
41
	background-color: #000000 !important;
42
}
43

  
44
/* Gutter line numbers */
45
.syntaxhighlighter .line .number
46
{
47
	color: #D3D3D3 !important;
48
}
49

  
50
/* Add border to the lines */
51
.syntaxhighlighter .line .content
52
{
53
	border-left: 3px solid #990000 !important;
54
	color: #B9BDB6 !important;
55
}
56

  
57
.syntaxhighlighter.printing .line .content 
58
{
59
	border: 0 !important;
60
}
61

  
62
/* First line */
63
.syntaxhighlighter .line.alt1 .content
64
{
65
}
66

  
67
/* Second line */
68
.syntaxhighlighter .line.alt2 .content
69
{
70
	background-color: #0f0f0f !important;
71
}
72

  
73
.syntaxhighlighter .line .content .block
74
{
75
	background: url(wrapping.png) 0 1.1em no-repeat !important;
76
}
77

  
78
/* Highlighed line number */
79
.syntaxhighlighter .line.highlighted .number
80
{
81
	background-color: #435A5F !important;
82
	color: #fff !important;
83
}
84

  
85
/* Highlighed line */
86
.syntaxhighlighter .line.highlighted.alt1 .content,
87
.syntaxhighlighter .line.highlighted.alt2 .content
88
{
89
	background-color: #435A5F !important;
90
}
91

  
92
.syntaxhighlighter .ruler
93
{
94
	color: silver !important;
95
	background-color: #000000 !important;
96
	border-left: 3px solid #990000 !important;
97
}
98

  
99
.syntaxhighlighter.nogutter .ruler
100
{
101
	border: 0 !important;
102
}
103

  
104
.syntaxhighlighter .toolbar
105
{
106
	background-color: #000000 !important;
107
	border: #000000 solid 1px !important;
108
}
109

  
110
.syntaxhighlighter .toolbar a
111
{
112
	color: #646763 !important;
113
}
114

  
115
.syntaxhighlighter .toolbar a:hover
116
{
117
	color: #9CCFF4 !important;
118
}
119

  
120
/************************************
121
 * Actual syntax highlighter colors.
122
 ************************************/
123
.syntaxhighlighter .plain,
124
.syntaxhighlighter .plain a
125
{ 
126
	color: #D3D3D3 !important;
127
}
128

  
129
.syntaxhighlighter .comments,
130
.syntaxhighlighter .comments a
131
{ 
132
	color: #FF7D27 !important;
133
}
134

  
135
.syntaxhighlighter .string,
136
.syntaxhighlighter .string a
137
{
138
	color: #FF9E7B !important; 
139
}
140

  
141
.syntaxhighlighter .keyword
142
{ 
143
	color: #00FFFF !important; 
144
}
145

  
146
.syntaxhighlighter .preprocessor 
147
{ 
148
	color: #AEC4DE !important; 
149
}
150

  
151
.syntaxhighlighter .variable 
152
{ 
153
	color: #FFAA3E !important; 
154
}
155

  
156
.syntaxhighlighter .value
157
{ 
158
	color: #090 !important; 
159
}
160

  
161
.syntaxhighlighter .functions
162
{ 
163
	color: #81CEF9 !important; 
164
}
165

  
166
.syntaxhighlighter .constants
167
{ 
168
	color: #FF9E7B !important; 
169
}
170

  
171
.syntaxhighlighter .script
172
{ 
173
	background-color: #990000 !important;
174
}
175

  
176
.syntaxhighlighter .color1,
177
.syntaxhighlighter .color1 a
178
{ 
179
	color: #EBDB8D !important; 
180
}
181

  
182
.syntaxhighlighter .color2,
183
.syntaxhighlighter .color2 a
184
{ 
185
	color: #FF7D27 !important; 
186
}
187

  
188
.syntaxhighlighter .color3,
189
.syntaxhighlighter .color3 a
190
{ 
191
	color: #AEC4DE !important; 
192
}
public/styles/shThemeFadeToGrey.css (revision 0)
1
/**
2
 * SyntaxHighlighter
3
 * http://alexgorbatchev.com/
4
 *
5
 * SyntaxHighlighter is donationware. If you are using it, please donate.
6
 * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
 *
8
 * @version
9
 * 2.0.320 (May 03 2009)
10
 * 
11
 * @copyright
12
 * Copyright (C) 2004-2009 Alex Gorbatchev.
13
 *
14
 * @license
15
 * This file is part of SyntaxHighlighter.
16
 * 
17
 * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
 * it under the terms of the GNU Lesser General Public License as published by
19
 * the Free Software Foundation, either version 3 of the License, or
20
 * (at your option) any later version.
21
 * 
22
 * SyntaxHighlighter is distributed in the hope that it will be useful,
23
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25
 * GNU General Public License for more details.
26
 * 
... This diff was truncated because it exceeds the maximum size that can be displayed.