trainbbcode 0.2.7 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest +44 -0
- data/Rakefile +2 -1
- data/init.rb +1 -0
- data/lib/trainbbcode.rb +66 -29
- data/rails_generators/syntaxhighlighter/syntaxhighlighter_generator.rb +30 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/clipboard.swf +0 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushAS3.js +61 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushBash.js +66 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushCSharp.js +67 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushColdFusion.js +102 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushCpp.js +99 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushCss.js +93 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushDelphi.js +57 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushDiff.js +43 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushErlang.js +54 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushGroovy.js +69 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushJScript.js +52 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushJava.js +59 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushJavaFX.js +60 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushPerl.js +74 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushPhp.js +91 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushPlain.js +35 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushPowerShell.js +76 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushPython.js +66 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushRuby.js +57 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushScala.js +53 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushSql.js +68 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushVb.js +58 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shBrushXml.js +71 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shCore.js +30 -0
- data/rails_generators/syntaxhighlighter/templates/scripts/shLegacy.js +30 -0
- data/rails_generators/syntaxhighlighter/templates/src/shCore.js +2077 -0
- data/rails_generators/syntaxhighlighter/templates/src/shLegacy.js +172 -0
- data/rails_generators/syntaxhighlighter/templates/styles/help.png +0 -0
- data/rails_generators/syntaxhighlighter/templates/styles/magnifier.png +0 -0
- data/rails_generators/syntaxhighlighter/templates/styles/page_white_code.png +0 -0
- data/rails_generators/syntaxhighlighter/templates/styles/page_white_copy.png +0 -0
- data/rails_generators/syntaxhighlighter/templates/styles/printer.png +0 -0
- data/rails_generators/syntaxhighlighter/templates/styles/shCore.css +330 -0
- data/rails_generators/syntaxhighlighter/templates/styles/shThemeDefault.css +173 -0
- data/rails_generators/syntaxhighlighter/templates/styles/shThemeDjango.css +176 -0
- data/rails_generators/syntaxhighlighter/templates/styles/shThemeEclipse.css +190 -0
- data/rails_generators/syntaxhighlighter/templates/styles/shThemeEmacs.css +175 -0
- data/rails_generators/syntaxhighlighter/templates/styles/shThemeFadeToGrey.css +177 -0
- data/rails_generators/syntaxhighlighter/templates/styles/shThemeMidnight.css +175 -0
- data/rails_generators/syntaxhighlighter/templates/styles/shThemeRDark.css +175 -0
- data/trainbbcode.gemspec +6 -3
- metadata +56 -4
@@ -0,0 +1,175 @@
|
|
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.1.364 (October 15 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
|
64
|
+
{
|
65
|
+
background-color: #1B2426 !important;
|
66
|
+
}
|
67
|
+
|
68
|
+
/* Second line */
|
69
|
+
.syntaxhighlighter .line.alt2
|
70
|
+
{
|
71
|
+
background-color: #1B2426 !important;
|
72
|
+
}
|
73
|
+
|
74
|
+
/* Highlighed line number */
|
75
|
+
.syntaxhighlighter .line.highlighted .number
|
76
|
+
{
|
77
|
+
background-color: #435A5F !important;
|
78
|
+
color: #fff !important;
|
79
|
+
}
|
80
|
+
|
81
|
+
/* Highlighed line */
|
82
|
+
.syntaxhighlighter .line.highlighted.alt1,
|
83
|
+
.syntaxhighlighter .line.highlighted.alt2
|
84
|
+
{
|
85
|
+
background-color: #435A5F !important;
|
86
|
+
}
|
87
|
+
|
88
|
+
.syntaxhighlighter .toolbar
|
89
|
+
{
|
90
|
+
background-color: #1B2426 !important;
|
91
|
+
}
|
92
|
+
|
93
|
+
.syntaxhighlighter .toolbar a
|
94
|
+
{
|
95
|
+
color: #646763 !important;
|
96
|
+
}
|
97
|
+
|
98
|
+
.syntaxhighlighter .toolbar a:hover
|
99
|
+
{
|
100
|
+
color: #E0E8FF !important;
|
101
|
+
}
|
102
|
+
|
103
|
+
/************************************
|
104
|
+
* Actual syntax highlighter colors.
|
105
|
+
************************************/
|
106
|
+
.syntaxhighlighter .plain,
|
107
|
+
.syntaxhighlighter .plain a
|
108
|
+
{
|
109
|
+
color: #B9BDB6 !important;
|
110
|
+
}
|
111
|
+
|
112
|
+
.syntaxhighlighter .comments,
|
113
|
+
.syntaxhighlighter .comments a
|
114
|
+
{
|
115
|
+
color: #878A85 !important;
|
116
|
+
}
|
117
|
+
|
118
|
+
.syntaxhighlighter .string,
|
119
|
+
.syntaxhighlighter .string a
|
120
|
+
{
|
121
|
+
color: #5CE638 !important;
|
122
|
+
}
|
123
|
+
|
124
|
+
.syntaxhighlighter .keyword
|
125
|
+
{
|
126
|
+
color: #5BA1CF !important;
|
127
|
+
}
|
128
|
+
|
129
|
+
.syntaxhighlighter .preprocessor
|
130
|
+
{
|
131
|
+
color: #435A5F !important;
|
132
|
+
}
|
133
|
+
|
134
|
+
.syntaxhighlighter .variable
|
135
|
+
{
|
136
|
+
color: #FFAA3E !important;
|
137
|
+
}
|
138
|
+
|
139
|
+
.syntaxhighlighter .value
|
140
|
+
{
|
141
|
+
color: #090 !important;
|
142
|
+
}
|
143
|
+
|
144
|
+
.syntaxhighlighter .functions
|
145
|
+
{
|
146
|
+
color: #FFAA3E !important;
|
147
|
+
}
|
148
|
+
|
149
|
+
.syntaxhighlighter .constants
|
150
|
+
{
|
151
|
+
color: #E0E8FF !important;
|
152
|
+
}
|
153
|
+
|
154
|
+
.syntaxhighlighter .script
|
155
|
+
{
|
156
|
+
background-color: #435A5F !important;
|
157
|
+
}
|
158
|
+
|
159
|
+
.syntaxhighlighter .color1,
|
160
|
+
.syntaxhighlighter .color1 a
|
161
|
+
{
|
162
|
+
color: #E0E8FF !important;
|
163
|
+
}
|
164
|
+
|
165
|
+
.syntaxhighlighter .color2,
|
166
|
+
.syntaxhighlighter .color2 a
|
167
|
+
{
|
168
|
+
color: #FFFFFF !important;
|
169
|
+
}
|
170
|
+
|
171
|
+
.syntaxhighlighter .color3,
|
172
|
+
.syntaxhighlighter .color3 a
|
173
|
+
{
|
174
|
+
color: #FFAA3E !important;
|
175
|
+
}
|
data/trainbbcode.gemspec
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{trainbbcode}
|
5
|
-
s.version = "0.
|
5
|
+
s.version = "0.3.0"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Adam \"Arcath\" Laycock"]
|
9
|
-
s.date = %q{2010-
|
9
|
+
s.date = %q{2010-03-29}
|
10
10
|
s.description = %q{Provides BBCode for Ruby.}
|
11
11
|
s.email = %q{adam@arcath.net}
|
12
12
|
s.extra_rdoc_files = ["README.rdoc", "lib/trainbbcode.rb"]
|
13
|
-
s.files = ["Manifest", "README.rdoc", "Rakefile", "lib/trainbbcode.rb", "trainbbcode.gemspec"]
|
13
|
+
s.files = ["Manifest", "README.rdoc", "Rakefile", "init.rb", "lib/trainbbcode.rb", "rails_generators/syntaxhighlighter/syntaxhighlighter_generator.rb", "rails_generators/syntaxhighlighter/templates/scripts/clipboard.swf", "rails_generators/syntaxhighlighter/templates/scripts/shBrushAS3.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushBash.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushCSharp.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushColdFusion.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushCpp.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushCss.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushDelphi.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushDiff.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushErlang.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushGroovy.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushJScript.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushJava.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushJavaFX.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushPerl.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushPhp.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushPlain.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushPowerShell.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushPython.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushRuby.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushScala.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushSql.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushVb.js", "rails_generators/syntaxhighlighter/templates/scripts/shBrushXml.js", "rails_generators/syntaxhighlighter/templates/scripts/shCore.js", "rails_generators/syntaxhighlighter/templates/scripts/shLegacy.js", "rails_generators/syntaxhighlighter/templates/src/shCore.js", "rails_generators/syntaxhighlighter/templates/src/shLegacy.js", "rails_generators/syntaxhighlighter/templates/styles/help.png", "rails_generators/syntaxhighlighter/templates/styles/magnifier.png", "rails_generators/syntaxhighlighter/templates/styles/page_white_code.png", "rails_generators/syntaxhighlighter/templates/styles/page_white_copy.png", "rails_generators/syntaxhighlighter/templates/styles/printer.png", "rails_generators/syntaxhighlighter/templates/styles/shCore.css", "rails_generators/syntaxhighlighter/templates/styles/shThemeDefault.css", "rails_generators/syntaxhighlighter/templates/styles/shThemeDjango.css", "rails_generators/syntaxhighlighter/templates/styles/shThemeEclipse.css", "rails_generators/syntaxhighlighter/templates/styles/shThemeEmacs.css", "rails_generators/syntaxhighlighter/templates/styles/shThemeFadeToGrey.css", "rails_generators/syntaxhighlighter/templates/styles/shThemeMidnight.css", "rails_generators/syntaxhighlighter/templates/styles/shThemeRDark.css", "trainbbcode.gemspec"]
|
14
14
|
s.homepage = %q{http://www.arcath.net/pages/2}
|
15
15
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Trainbbcode", "--main", "README.rdoc"]
|
16
16
|
s.require_paths = ["lib"]
|
@@ -23,8 +23,11 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.specification_version = 3
|
24
24
|
|
25
25
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
26
|
+
s.add_runtime_dependency(%q<coderay>, [">= 0"])
|
26
27
|
else
|
28
|
+
s.add_dependency(%q<coderay>, [">= 0"])
|
27
29
|
end
|
28
30
|
else
|
31
|
+
s.add_dependency(%q<coderay>, [">= 0"])
|
29
32
|
end
|
30
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trainbbcode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam "Arcath" Laycock
|
@@ -9,10 +9,19 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-03-29 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: coderay
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
version:
|
16
25
|
description: Provides BBCode for Ruby.
|
17
26
|
email: adam@arcath.net
|
18
27
|
executables: []
|
@@ -26,7 +35,50 @@ files:
|
|
26
35
|
- Manifest
|
27
36
|
- README.rdoc
|
28
37
|
- Rakefile
|
38
|
+
- init.rb
|
29
39
|
- lib/trainbbcode.rb
|
40
|
+
- rails_generators/syntaxhighlighter/syntaxhighlighter_generator.rb
|
41
|
+
- rails_generators/syntaxhighlighter/templates/scripts/clipboard.swf
|
42
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushAS3.js
|
43
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushBash.js
|
44
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushCSharp.js
|
45
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushColdFusion.js
|
46
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushCpp.js
|
47
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushCss.js
|
48
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushDelphi.js
|
49
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushDiff.js
|
50
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushErlang.js
|
51
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushGroovy.js
|
52
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushJScript.js
|
53
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushJava.js
|
54
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushJavaFX.js
|
55
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushPerl.js
|
56
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushPhp.js
|
57
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushPlain.js
|
58
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushPowerShell.js
|
59
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushPython.js
|
60
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushRuby.js
|
61
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushScala.js
|
62
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushSql.js
|
63
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushVb.js
|
64
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shBrushXml.js
|
65
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shCore.js
|
66
|
+
- rails_generators/syntaxhighlighter/templates/scripts/shLegacy.js
|
67
|
+
- rails_generators/syntaxhighlighter/templates/src/shCore.js
|
68
|
+
- rails_generators/syntaxhighlighter/templates/src/shLegacy.js
|
69
|
+
- rails_generators/syntaxhighlighter/templates/styles/help.png
|
70
|
+
- rails_generators/syntaxhighlighter/templates/styles/magnifier.png
|
71
|
+
- rails_generators/syntaxhighlighter/templates/styles/page_white_code.png
|
72
|
+
- rails_generators/syntaxhighlighter/templates/styles/page_white_copy.png
|
73
|
+
- rails_generators/syntaxhighlighter/templates/styles/printer.png
|
74
|
+
- rails_generators/syntaxhighlighter/templates/styles/shCore.css
|
75
|
+
- rails_generators/syntaxhighlighter/templates/styles/shThemeDefault.css
|
76
|
+
- rails_generators/syntaxhighlighter/templates/styles/shThemeDjango.css
|
77
|
+
- rails_generators/syntaxhighlighter/templates/styles/shThemeEclipse.css
|
78
|
+
- rails_generators/syntaxhighlighter/templates/styles/shThemeEmacs.css
|
79
|
+
- rails_generators/syntaxhighlighter/templates/styles/shThemeFadeToGrey.css
|
80
|
+
- rails_generators/syntaxhighlighter/templates/styles/shThemeMidnight.css
|
81
|
+
- rails_generators/syntaxhighlighter/templates/styles/shThemeRDark.css
|
30
82
|
- trainbbcode.gemspec
|
31
83
|
has_rdoc: true
|
32
84
|
homepage: http://www.arcath.net/pages/2
|