railties 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. data/CHANGELOG +4 -0
  2. data/guides/assets/javascripts/syntaxhighlighter/shBrushAS3.js +59 -0
  3. data/guides/assets/javascripts/syntaxhighlighter/shBrushAppleScript.js +75 -0
  4. data/guides/assets/javascripts/syntaxhighlighter/shBrushBash.js +59 -0
  5. data/guides/assets/javascripts/syntaxhighlighter/shBrushCSharp.js +65 -0
  6. data/guides/assets/javascripts/syntaxhighlighter/shBrushColdFusion.js +100 -0
  7. data/guides/assets/javascripts/syntaxhighlighter/shBrushCpp.js +97 -0
  8. data/guides/assets/javascripts/syntaxhighlighter/shBrushCss.js +91 -0
  9. data/guides/assets/javascripts/syntaxhighlighter/shBrushDelphi.js +55 -0
  10. data/guides/assets/javascripts/syntaxhighlighter/shBrushDiff.js +41 -0
  11. data/guides/assets/javascripts/syntaxhighlighter/shBrushErlang.js +52 -0
  12. data/guides/assets/javascripts/syntaxhighlighter/shBrushGroovy.js +67 -0
  13. data/guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js +52 -0
  14. data/guides/assets/javascripts/syntaxhighlighter/shBrushJava.js +57 -0
  15. data/guides/assets/javascripts/syntaxhighlighter/shBrushJavaFX.js +58 -0
  16. data/guides/assets/javascripts/syntaxhighlighter/shBrushPerl.js +72 -0
  17. data/guides/assets/javascripts/syntaxhighlighter/shBrushPhp.js +88 -0
  18. data/guides/assets/javascripts/syntaxhighlighter/shBrushPlain.js +33 -0
  19. data/guides/assets/javascripts/syntaxhighlighter/shBrushPowerShell.js +74 -0
  20. data/guides/assets/javascripts/syntaxhighlighter/shBrushPython.js +64 -0
  21. data/guides/assets/javascripts/syntaxhighlighter/shBrushRuby.js +55 -0
  22. data/guides/assets/javascripts/syntaxhighlighter/shBrushSass.js +94 -0
  23. data/guides/assets/javascripts/syntaxhighlighter/shBrushScala.js +51 -0
  24. data/guides/assets/javascripts/syntaxhighlighter/shBrushSql.js +66 -0
  25. data/guides/assets/javascripts/syntaxhighlighter/shBrushVb.js +56 -0
  26. data/guides/assets/javascripts/syntaxhighlighter/shBrushXml.js +69 -0
  27. data/guides/assets/javascripts/syntaxhighlighter/shCore.js +17 -0
  28. data/guides/assets/stylesheets/main.css +6 -13
  29. data/guides/assets/stylesheets/syntaxhighlighter/shCore.css +226 -0
  30. data/guides/assets/stylesheets/syntaxhighlighter/shCoreDefault.css +328 -0
  31. data/guides/assets/stylesheets/syntaxhighlighter/shCoreDjango.css +331 -0
  32. data/guides/assets/stylesheets/syntaxhighlighter/shCoreEclipse.css +339 -0
  33. data/guides/assets/stylesheets/syntaxhighlighter/shCoreEmacs.css +324 -0
  34. data/guides/assets/stylesheets/syntaxhighlighter/shCoreFadeToGrey.css +328 -0
  35. data/guides/assets/stylesheets/syntaxhighlighter/shCoreMDUltra.css +324 -0
  36. data/guides/assets/stylesheets/syntaxhighlighter/shCoreMidnight.css +324 -0
  37. data/guides/assets/stylesheets/syntaxhighlighter/shCoreRDark.css +324 -0
  38. data/guides/assets/stylesheets/syntaxhighlighter/shThemeDefault.css +117 -0
  39. data/guides/assets/stylesheets/syntaxhighlighter/shThemeDjango.css +120 -0
  40. data/guides/assets/stylesheets/syntaxhighlighter/shThemeEclipse.css +128 -0
  41. data/guides/assets/stylesheets/syntaxhighlighter/shThemeEmacs.css +113 -0
  42. data/guides/assets/stylesheets/syntaxhighlighter/shThemeFadeToGrey.css +117 -0
  43. data/guides/assets/stylesheets/syntaxhighlighter/shThemeMDUltra.css +113 -0
  44. data/guides/assets/stylesheets/syntaxhighlighter/shThemeMidnight.css +113 -0
  45. data/guides/assets/stylesheets/syntaxhighlighter/shThemeRDark.css +113 -0
  46. data/guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css +116 -0
  47. data/guides/rails_guides/generator.rb +21 -3
  48. data/guides/source/3_0_release_notes.textile +3 -7
  49. data/guides/source/action_controller_overview.textile +8 -1
  50. data/guides/source/action_mailer_basics.textile +1 -1
  51. data/guides/source/action_view_overview.textile +1 -1
  52. data/guides/source/active_record_querying.textile +44 -50
  53. data/guides/source/active_record_validations_callbacks.textile +3 -3
  54. data/guides/source/caching_with_rails.textile +1 -1
  55. data/guides/source/configuring.textile +3 -3
  56. data/guides/source/debugging_rails_applications.textile +6 -4
  57. data/guides/source/form_helpers.textile +21 -15
  58. data/guides/source/getting_started.textile +2 -12
  59. data/guides/source/i18n.textile +6 -0
  60. data/guides/source/index.html.erb +10 -2
  61. data/guides/source/layout.html.erb +13 -5
  62. data/guides/source/layouts_and_rendering.textile +2 -2
  63. data/guides/source/migrations.textile +1 -1
  64. data/guides/source/performance_testing.textile +6 -6
  65. data/guides/source/plugins.textile +9 -9
  66. data/guides/source/routing.textile +45 -25
  67. data/guides/source/ruby_on_rails_guides_guidelines.textile +77 -0
  68. data/lib/rails/application/configuration.rb +2 -0
  69. data/lib/rails/application/finisher.rb +7 -0
  70. data/lib/rails/code_statistics.rb +1 -1
  71. data/lib/rails/commands/console.rb +1 -1
  72. data/lib/rails/commands/runner.rb +2 -2
  73. data/lib/rails/engine/configuration.rb +6 -0
  74. data/lib/rails/generators/generated_attribute.rb +1 -0
  75. data/lib/rails/generators/rails/app/app_generator.rb +7 -4
  76. data/lib/rails/generators/rails/app/templates/Gemfile +2 -3
  77. data/lib/rails/generators/rails/app/templates/README +1 -1
  78. data/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +1 -1
  79. data/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +1 -1
  80. data/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +1 -1
  81. data/lib/rails/generators/rails/app/templates/config/initializers/session_store.rb.tt +1 -1
  82. data/lib/rails/generators/resource_helpers.rb +1 -1
  83. data/lib/rails/plugin.rb +1 -1
  84. data/lib/rails/railtie.rb +1 -1
  85. data/lib/rails/railtie/configuration.rb +4 -3
  86. data/lib/rails/ruby_version_check.rb +1 -2
  87. data/lib/rails/tasks/misc.rake +1 -1
  88. data/lib/rails/version.rb +2 -2
  89. metadata +70 -15
  90. data/guides/assets/javascripts/code_highlighter.js +0 -188
  91. data/guides/assets/javascripts/highlighters.js +0 -90
  92. data/guides/assets/stylesheets/syntax.css +0 -31
@@ -0,0 +1,91 @@
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (July 02 2010)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2010 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
+
22
+ function Brush()
23
+ {
24
+ function getKeywordsCSS(str)
25
+ {
26
+ return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
27
+ };
28
+
29
+ function getValuesCSS(str)
30
+ {
31
+ return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
32
+ };
33
+
34
+ var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' +
35
+ 'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
36
+ 'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
37
+ 'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
38
+ 'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
39
+ 'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
40
+ 'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
41
+ 'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
42
+ 'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
43
+ 'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
44
+ 'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
45
+ 'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
46
+ 'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
47
+ 'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index';
48
+
49
+ var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
50
+ 'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
51
+ 'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+
52
+ 'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
53
+ 'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
54
+ 'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
55
+ 'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
56
+ 'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
57
+ 'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
58
+ 'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
59
+ 'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
60
+ 'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
61
+ 'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
62
+ 'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow';
63
+
64
+ var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
65
+
66
+ this.regexList = [
67
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
68
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
69
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
70
+ { regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
71
+ { regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes
72
+ { regex: /!important/g, css: 'color3' }, // !important
73
+ { regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
74
+ { regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
75
+ { regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
76
+ ];
77
+
78
+ this.forHtmlScript({
79
+ left: /(&lt;|<)\s*style.*?(&gt;|>)/gi,
80
+ right: /(&lt;|<)\/\s*style\s*(&gt;|>)/gi
81
+ });
82
+ };
83
+
84
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
85
+ Brush.aliases = ['css'];
86
+
87
+ SyntaxHighlighter.brushes.CSS = Brush;
88
+
89
+ // CommonJS
90
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
91
+ })();
@@ -0,0 +1,55 @@
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (July 02 2010)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2010 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
+
22
+ function Brush()
23
+ {
24
+ var keywords = 'abs addr and ansichar ansistring array as asm begin boolean byte cardinal ' +
25
+ 'case char class comp const constructor currency destructor div do double ' +
26
+ 'downto else end except exports extended false file finalization finally ' +
27
+ 'for function goto if implementation in inherited int64 initialization ' +
28
+ 'integer interface is label library longint longword mod nil not object ' +
29
+ 'of on or packed pansichar pansistring pchar pcurrency pdatetime pextended ' +
30
+ 'pint64 pointer private procedure program property pshortstring pstring ' +
31
+ 'pvariant pwidechar pwidestring protected public published raise real real48 ' +
32
+ 'record repeat set shl shortint shortstring shr single smallint string then ' +
33
+ 'threadvar to true try type unit until uses val var varirnt while widechar ' +
34
+ 'widestring with word write writeln xor';
35
+
36
+ this.regexList = [
37
+ { regex: /\(\*[\s\S]*?\*\)/gm, css: 'comments' }, // multiline comments (* *)
38
+ { regex: /{(?!\$)[\s\S]*?}/gm, css: 'comments' }, // multiline comments { }
39
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line
40
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
41
+ { regex: /\{\$[a-zA-Z]+ .+\}/g, css: 'color1' }, // compiler Directives and Region tags
42
+ { regex: /\b[\d\.]+\b/g, css: 'value' }, // numbers 12345
43
+ { regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // numbers $F5D3
44
+ { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
45
+ ];
46
+ };
47
+
48
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
49
+ Brush.aliases = ['delphi', 'pascal', 'pas'];
50
+
51
+ SyntaxHighlighter.brushes.Delphi = Brush;
52
+
53
+ // CommonJS
54
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
55
+ })();
@@ -0,0 +1,41 @@
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (July 02 2010)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2010 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
+
22
+ function Brush()
23
+ {
24
+ this.regexList = [
25
+ { regex: /^\+\+\+.*$/gm, css: 'color2' },
26
+ { regex: /^\-\-\-.*$/gm, css: 'color2' },
27
+ { regex: /^\s.*$/gm, css: 'color1' },
28
+ { regex: /^@@.*@@$/gm, css: 'variable' },
29
+ { regex: /^\+[^\+]{1}.*$/gm, css: 'string' },
30
+ { regex: /^\-[^\-]{1}.*$/gm, css: 'comments' }
31
+ ];
32
+ };
33
+
34
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
35
+ Brush.aliases = ['diff', 'patch'];
36
+
37
+ SyntaxHighlighter.brushes.Diff = Brush;
38
+
39
+ // CommonJS
40
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
41
+ })();
@@ -0,0 +1,52 @@
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (July 02 2010)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2010 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
+
22
+ function Brush()
23
+ {
24
+ // Contributed by Jean-Lou Dupont
25
+ // http://jldupont.blogspot.com/2009/06/erlang-syntax-highlighter.html
26
+
27
+ // According to: http://erlang.org/doc/reference_manual/introduction.html#1.5
28
+ var keywords = 'after and andalso band begin bnot bor bsl bsr bxor '+
29
+ 'case catch cond div end fun if let not of or orelse '+
30
+ 'query receive rem try when xor'+
31
+ // additional
32
+ ' module export import define';
33
+
34
+ this.regexList = [
35
+ { regex: new RegExp("[A-Z][A-Za-z0-9_]+", 'g'), css: 'constants' },
36
+ { regex: new RegExp("\\%.+", 'gm'), css: 'comments' },
37
+ { regex: new RegExp("\\?[A-Za-z0-9_]+", 'g'), css: 'preprocessor' },
38
+ { regex: new RegExp("[a-z0-9_]+:[a-z0-9_]+", 'g'), css: 'functions' },
39
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
40
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
41
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
42
+ ];
43
+ };
44
+
45
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
46
+ Brush.aliases = ['erl', 'erlang'];
47
+
48
+ SyntaxHighlighter.brushes.Erland = Brush;
49
+
50
+ // CommonJS
51
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
52
+ })();
@@ -0,0 +1,67 @@
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (July 02 2010)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2010 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
+
22
+ function Brush()
23
+ {
24
+ // Contributed by Andres Almiray
25
+ // http://jroller.com/aalmiray/entry/nice_source_code_syntax_highlighter
26
+
27
+ var keywords = 'as assert break case catch class continue def default do else extends finally ' +
28
+ 'if in implements import instanceof interface new package property return switch ' +
29
+ 'throw throws try while public protected private static';
30
+ var types = 'void boolean byte char short int long float double';
31
+ var constants = 'null';
32
+ var methods = 'allProperties count get size '+
33
+ 'collect each eachProperty eachPropertyName eachWithIndex find findAll ' +
34
+ 'findIndexOf grep inject max min reverseEach sort ' +
35
+ 'asImmutable asSynchronized flatten intersect join pop reverse subMap toList ' +
36
+ 'padRight padLeft contains eachMatch toCharacter toLong toUrl tokenize ' +
37
+ 'eachFile eachFileRecurse eachB yte eachLine readBytes readLine getText ' +
38
+ 'splitEachLine withReader append encodeBase64 decodeBase64 filterLine ' +
39
+ 'transformChar transformLine withOutputStream withPrintWriter withStream ' +
40
+ 'withStreams withWriter withWriterAppend write writeLine '+
41
+ 'dump inspect invokeMethod print println step times upto use waitForOrKill '+
42
+ 'getText';
43
+
44
+ this.regexList = [
45
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
46
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
47
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
48
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
49
+ { regex: /""".*"""/g, css: 'string' }, // GStrings
50
+ { regex: new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b', 'gi'), css: 'value' }, // numbers
51
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // goovy keyword
52
+ { regex: new RegExp(this.getKeywords(types), 'gm'), css: 'color1' }, // goovy/java type
53
+ { regex: new RegExp(this.getKeywords(constants), 'gm'), css: 'constants' }, // constants
54
+ { regex: new RegExp(this.getKeywords(methods), 'gm'), css: 'functions' } // methods
55
+ ];
56
+
57
+ this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
58
+ }
59
+
60
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
61
+ Brush.aliases = ['groovy'];
62
+
63
+ SyntaxHighlighter.brushes.Groovy = Brush;
64
+
65
+ // CommonJS
66
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
67
+ })();
@@ -0,0 +1,52 @@
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (July 02 2010)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2010 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
+
22
+ function Brush()
23
+ {
24
+ var keywords = 'break case catch continue ' +
25
+ 'default delete do else false ' +
26
+ 'for function if in instanceof ' +
27
+ 'new null return super switch ' +
28
+ 'this throw true try typeof var while with'
29
+ ;
30
+
31
+ var r = SyntaxHighlighter.regexLib;
32
+
33
+ this.regexList = [
34
+ { regex: r.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
35
+ { regex: r.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
36
+ { regex: r.singleLineCComments, css: 'comments' }, // one line comments
37
+ { regex: r.multiLineCComments, css: 'comments' }, // multiline comments
38
+ { regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
39
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
40
+ ];
41
+
42
+ this.forHtmlScript(r.scriptScriptTags);
43
+ };
44
+
45
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
46
+ Brush.aliases = ['js', 'jscript', 'javascript'];
47
+
48
+ SyntaxHighlighter.brushes.JScript = Brush;
49
+
50
+ // CommonJS
51
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
52
+ })();
@@ -0,0 +1,57 @@
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (July 02 2010)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2010 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
+
22
+ function Brush()
23
+ {
24
+ var keywords = 'abstract assert boolean break byte case catch char class const ' +
25
+ 'continue default do double else enum extends ' +
26
+ 'false final finally float for goto if implements import ' +
27
+ 'instanceof int interface long native new null ' +
28
+ 'package private protected public return ' +
29
+ 'short static strictfp super switch synchronized this throw throws true ' +
30
+ 'transient try void volatile while';
31
+
32
+ this.regexList = [
33
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
34
+ { regex: /\/\*([^\*][\s\S]*)?\*\//gm, css: 'comments' }, // multiline comments
35
+ { regex: /\/\*(?!\*\/)\*[\s\S]*?\*\//gm, css: 'preprocessor' }, // documentation comments
36
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
37
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
38
+ { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
39
+ { regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno
40
+ { regex: /\@interface\b/g, css: 'color2' }, // @interface keyword
41
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword
42
+ ];
43
+
44
+ this.forHtmlScript({
45
+ left : /(&lt;|<)%[@!=]?/g,
46
+ right : /%(&gt;|>)/g
47
+ });
48
+ };
49
+
50
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
51
+ Brush.aliases = ['java'];
52
+
53
+ SyntaxHighlighter.brushes.Java = Brush;
54
+
55
+ // CommonJS
56
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
57
+ })();
@@ -0,0 +1,58 @@
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (July 02 2010)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2010 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
+
22
+ function Brush()
23
+ {
24
+ // Contributed by Patrick Webster
25
+ // http://patrickwebster.blogspot.com/2009/04/javafx-brush-for-syntaxhighlighter.html
26
+ var datatypes = 'Boolean Byte Character Double Duration '
27
+ + 'Float Integer Long Number Short String Void'
28
+ ;
29
+
30
+ var keywords = 'abstract after and as assert at before bind bound break catch class '
31
+ + 'continue def delete else exclusive extends false finally first for from '
32
+ + 'function if import in indexof init insert instanceof into inverse last '
33
+ + 'lazy mixin mod nativearray new not null on or override package postinit '
34
+ + 'protected public public-init public-read replace return reverse sizeof '
35
+ + 'step super then this throw true try tween typeof var where while with '
36
+ + 'attribute let private readonly static trigger'
37
+ ;
38
+
39
+ this.regexList = [
40
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' },
41
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' },
42
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
43
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
44
+ { regex: /(-?\.?)(\b(\d*\.?\d+|\d+\.?\d*)(e[+-]?\d+)?|0x[a-f\d]+)\b\.?/gi, css: 'color2' }, // numbers
45
+ { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'variable' }, // datatypes
46
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
47
+ ];
48
+ this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
49
+ };
50
+
51
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
52
+ Brush.aliases = ['jfx', 'javafx'];
53
+
54
+ SyntaxHighlighter.brushes.JavaFX = Brush;
55
+
56
+ // CommonJS
57
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
58
+ })();