guides 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. data/.gitignore +2 -0
  2. data/Gemfile +3 -0
  3. data/bin/guides +6 -0
  4. data/guides.gemspec +32 -0
  5. data/lib/guides.rb +25 -0
  6. data/lib/guides/cli.rb +35 -0
  7. data/lib/guides/generator.rb +274 -0
  8. data/lib/guides/helpers.rb +55 -0
  9. data/lib/guides/indexer.rb +69 -0
  10. data/lib/guides/levenshtein.rb +31 -0
  11. data/lib/guides/new.rb +26 -0
  12. data/lib/guides/templates/assets/images/book_icon.gif +0 -0
  13. data/lib/guides/templates/assets/images/bullet.gif +0 -0
  14. data/lib/guides/templates/assets/images/chapters_icon.gif +0 -0
  15. data/lib/guides/templates/assets/images/check_bullet.gif +0 -0
  16. data/lib/guides/templates/assets/images/construction.png +0 -0
  17. data/lib/guides/templates/assets/images/construction.svg +123 -0
  18. data/lib/guides/templates/assets/images/credits_pic_blank.gif +0 -0
  19. data/lib/guides/templates/assets/images/edge_badge.png +0 -0
  20. data/lib/guides/templates/assets/images/feature_tile.gif +0 -0
  21. data/lib/guides/templates/assets/images/footer_tile.gif +0 -0
  22. data/lib/guides/templates/assets/images/grey_bullet.gif +0 -0
  23. data/lib/guides/templates/assets/images/header_backdrop.png +0 -0
  24. data/lib/guides/templates/assets/images/header_tile.gif +0 -0
  25. data/lib/guides/templates/assets/images/icons/README +5 -0
  26. data/lib/guides/templates/assets/images/icons/callouts/1.png +0 -0
  27. data/lib/guides/templates/assets/images/icons/callouts/10.png +0 -0
  28. data/lib/guides/templates/assets/images/icons/callouts/11.png +0 -0
  29. data/lib/guides/templates/assets/images/icons/callouts/12.png +0 -0
  30. data/lib/guides/templates/assets/images/icons/callouts/13.png +0 -0
  31. data/lib/guides/templates/assets/images/icons/callouts/14.png +0 -0
  32. data/lib/guides/templates/assets/images/icons/callouts/15.png +0 -0
  33. data/lib/guides/templates/assets/images/icons/callouts/2.png +0 -0
  34. data/lib/guides/templates/assets/images/icons/callouts/3.png +0 -0
  35. data/lib/guides/templates/assets/images/icons/callouts/4.png +0 -0
  36. data/lib/guides/templates/assets/images/icons/callouts/5.png +0 -0
  37. data/lib/guides/templates/assets/images/icons/callouts/6.png +0 -0
  38. data/lib/guides/templates/assets/images/icons/callouts/7.png +0 -0
  39. data/lib/guides/templates/assets/images/icons/callouts/8.png +0 -0
  40. data/lib/guides/templates/assets/images/icons/callouts/9.png +0 -0
  41. data/lib/guides/templates/assets/images/icons/caution.png +0 -0
  42. data/lib/guides/templates/assets/images/icons/example.png +0 -0
  43. data/lib/guides/templates/assets/images/icons/home.png +0 -0
  44. data/lib/guides/templates/assets/images/icons/important.png +0 -0
  45. data/lib/guides/templates/assets/images/icons/next.png +0 -0
  46. data/lib/guides/templates/assets/images/icons/note.png +0 -0
  47. data/lib/guides/templates/assets/images/icons/prev.png +0 -0
  48. data/lib/guides/templates/assets/images/icons/tip.png +0 -0
  49. data/lib/guides/templates/assets/images/icons/up.png +0 -0
  50. data/lib/guides/templates/assets/images/icons/warning.png +0 -0
  51. data/lib/guides/templates/assets/images/nav_arrow.gif +0 -0
  52. data/lib/guides/templates/assets/images/tab_grey.gif +0 -0
  53. data/lib/guides/templates/assets/images/tab_info.gif +0 -0
  54. data/lib/guides/templates/assets/images/tab_note.gif +0 -0
  55. data/lib/guides/templates/assets/images/tab_red.gif +0 -0
  56. data/lib/guides/templates/assets/images/tab_yellow.gif +0 -0
  57. data/lib/guides/templates/assets/images/tab_yellow.png +0 -0
  58. data/lib/guides/templates/assets/javascripts/guides.js +9 -0
  59. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushAS3.js +59 -0
  60. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushAppleScript.js +75 -0
  61. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushBash.js +59 -0
  62. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushCSharp.js +65 -0
  63. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushColdFusion.js +100 -0
  64. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushCpp.js +97 -0
  65. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushCss.js +91 -0
  66. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushDelphi.js +55 -0
  67. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushDiff.js +41 -0
  68. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushErlang.js +52 -0
  69. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushGroovy.js +67 -0
  70. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushJScript.js +52 -0
  71. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushJava.js +57 -0
  72. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushJavaFX.js +58 -0
  73. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushPerl.js +72 -0
  74. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushPhp.js +88 -0
  75. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushPlain.js +33 -0
  76. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushPowerShell.js +74 -0
  77. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushPython.js +64 -0
  78. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushRuby.js +55 -0
  79. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushSass.js +94 -0
  80. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushScala.js +51 -0
  81. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushSql.js +66 -0
  82. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushVb.js +56 -0
  83. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushXml.js +69 -0
  84. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shCore.js +17 -0
  85. data/lib/guides/templates/assets/stylesheets/main.css +445 -0
  86. data/lib/guides/templates/assets/stylesheets/print.css +52 -0
  87. data/lib/guides/templates/assets/stylesheets/reset.css +43 -0
  88. data/lib/guides/templates/assets/stylesheets/style.css +13 -0
  89. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shCore.css +226 -0
  90. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shCoreDefault.css +328 -0
  91. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shCoreDjango.css +331 -0
  92. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shCoreEclipse.css +339 -0
  93. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shCoreEmacs.css +324 -0
  94. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shCoreFadeToGrey.css +328 -0
  95. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shCoreMDUltra.css +324 -0
  96. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shCoreMidnight.css +324 -0
  97. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shCoreRDark.css +324 -0
  98. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shThemeDefault.css +117 -0
  99. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shThemeDjango.css +120 -0
  100. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shThemeEclipse.css +128 -0
  101. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shThemeEmacs.css +113 -0
  102. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shThemeFadeToGrey.css +117 -0
  103. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shThemeMDUltra.css +113 -0
  104. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shThemeMidnight.css +113 -0
  105. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shThemeRDark.css +113 -0
  106. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css +116 -0
  107. data/lib/guides/templates/guides.yml.tt +35 -0
  108. data/lib/guides/templates/source/_clickable_index.html.erb +17 -0
  109. data/lib/guides/templates/source/_full_index.html.erb +16 -0
  110. data/lib/guides/templates/source/_sections.html.erb +24 -0
  111. data/lib/guides/templates/source/contribute.textile +47 -0
  112. data/lib/guides/templates/source/credits.html.erb +21 -0
  113. data/lib/guides/templates/source/index.html.erb +1 -0
  114. data/lib/guides/templates/source/layout.html.erb +82 -0
  115. data/lib/guides/textile_extensions.rb +39 -0
  116. data/lib/guides/version.rb +3 -0
  117. data/lib/guides/w3c_validator.rb +89 -0
  118. metadata +257 -0
@@ -0,0 +1,65 @@
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 as base bool break byte case catch char checked class const ' +
25
+ 'continue decimal default delegate do double else enum event explicit ' +
26
+ 'extern false finally fixed float for foreach get goto if implicit in int ' +
27
+ 'interface internal is lock long namespace new null object operator out ' +
28
+ 'override params private protected public readonly ref return sbyte sealed set ' +
29
+ 'short sizeof stackalloc static string struct switch this throw true try ' +
30
+ 'typeof uint ulong unchecked unsafe ushort using virtual void while';
31
+
32
+ function fixComments(match, regexInfo)
33
+ {
34
+ var css = (match[0].indexOf("///") == 0)
35
+ ? 'color1'
36
+ : 'comments'
37
+ ;
38
+
39
+ return [new SyntaxHighlighter.Match(match[0], match.index, css)];
40
+ }
41
+
42
+ this.regexList = [
43
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments
44
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
45
+ { regex: /@"(?:[^"]|"")*"/g, css: 'string' }, // @-quoted strings
46
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
47
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
48
+ { regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
49
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // c# keyword
50
+ { regex: /\bpartial(?=\s+(?:class|interface|struct)\b)/g, css: 'keyword' }, // contextual keyword: 'partial'
51
+ { regex: /\byield(?=\s+(?:return|break)\b)/g, css: 'keyword' } // contextual keyword: 'yield'
52
+ ];
53
+
54
+ this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
55
+ };
56
+
57
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
58
+ Brush.aliases = ['c#', 'c-sharp', 'csharp'];
59
+
60
+ SyntaxHighlighter.brushes.CSharp = Brush;
61
+
62
+ // CommonJS
63
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
64
+ })();
65
+
@@ -0,0 +1,100 @@
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 Jen
25
+ // http://www.jensbits.com/2009/05/14/coldfusion-brush-for-syntaxhighlighter-plus
26
+
27
+ var funcs = 'Abs ACos AddSOAPRequestHeader AddSOAPResponseHeader AjaxLink AjaxOnLoad ArrayAppend ArrayAvg ArrayClear ArrayDeleteAt ' +
28
+ 'ArrayInsertAt ArrayIsDefined ArrayIsEmpty ArrayLen ArrayMax ArrayMin ArraySet ArraySort ArraySum ArraySwap ArrayToList ' +
29
+ 'Asc ASin Atn BinaryDecode BinaryEncode BitAnd BitMaskClear BitMaskRead BitMaskSet BitNot BitOr BitSHLN BitSHRN BitXor ' +
30
+ 'Ceiling CharsetDecode CharsetEncode Chr CJustify Compare CompareNoCase Cos CreateDate CreateDateTime CreateObject ' +
31
+ 'CreateODBCDate CreateODBCDateTime CreateODBCTime CreateTime CreateTimeSpan CreateUUID DateAdd DateCompare DateConvert ' +
32
+ 'DateDiff DateFormat DatePart Day DayOfWeek DayOfWeekAsString DayOfYear DaysInMonth DaysInYear DE DecimalFormat DecrementValue ' +
33
+ 'Decrypt DecryptBinary DeleteClientVariable DeserializeJSON DirectoryExists DollarFormat DotNetToCFType Duplicate Encrypt ' +
34
+ 'EncryptBinary Evaluate Exp ExpandPath FileClose FileCopy FileDelete FileExists FileIsEOF FileMove FileOpen FileRead ' +
35
+ 'FileReadBinary FileReadLine FileSetAccessMode FileSetAttribute FileSetLastModified FileWrite Find FindNoCase FindOneOf ' +
36
+ 'FirstDayOfMonth Fix FormatBaseN GenerateSecretKey GetAuthUser GetBaseTagData GetBaseTagList GetBaseTemplatePath ' +
37
+ 'GetClientVariablesList GetComponentMetaData GetContextRoot GetCurrentTemplatePath GetDirectoryFromPath GetEncoding ' +
38
+ 'GetException GetFileFromPath GetFileInfo GetFunctionList GetGatewayHelper GetHttpRequestData GetHttpTimeString ' +
39
+ 'GetK2ServerDocCount GetK2ServerDocCountLimit GetLocale GetLocaleDisplayName GetLocalHostIP GetMetaData GetMetricData ' +
40
+ 'GetPageContext GetPrinterInfo GetProfileSections GetProfileString GetReadableImageFormats GetSOAPRequest GetSOAPRequestHeader ' +
41
+ 'GetSOAPResponse GetSOAPResponseHeader GetTempDirectory GetTempFile GetTemplatePath GetTickCount GetTimeZoneInfo GetToken ' +
42
+ 'GetUserRoles GetWriteableImageFormats Hash Hour HTMLCodeFormat HTMLEditFormat IIf ImageAddBorder ImageBlur ImageClearRect ' +
43
+ 'ImageCopy ImageCrop ImageDrawArc ImageDrawBeveledRect ImageDrawCubicCurve ImageDrawLine ImageDrawLines ImageDrawOval ' +
44
+ 'ImageDrawPoint ImageDrawQuadraticCurve ImageDrawRect ImageDrawRoundRect ImageDrawText ImageFlip ImageGetBlob ImageGetBufferedImage ' +
45
+ 'ImageGetEXIFTag ImageGetHeight ImageGetIPTCTag ImageGetWidth ImageGrayscale ImageInfo ImageNegative ImageNew ImageOverlay ImagePaste ' +
46
+ 'ImageRead ImageReadBase64 ImageResize ImageRotate ImageRotateDrawingAxis ImageScaleToFit ImageSetAntialiasing ImageSetBackgroundColor ' +
47
+ 'ImageSetDrawingColor ImageSetDrawingStroke ImageSetDrawingTransparency ImageSharpen ImageShear ImageShearDrawingAxis ImageTranslate ' +
48
+ 'ImageTranslateDrawingAxis ImageWrite ImageWriteBase64 ImageXORDrawingMode IncrementValue InputBaseN Insert Int IsArray IsBinary ' +
49
+ 'IsBoolean IsCustomFunction IsDate IsDDX IsDebugMode IsDefined IsImage IsImageFile IsInstanceOf IsJSON IsLeapYear IsLocalHost ' +
50
+ 'IsNumeric IsNumericDate IsObject IsPDFFile IsPDFObject IsQuery IsSimpleValue IsSOAPRequest IsStruct IsUserInAnyRole IsUserInRole ' +
51
+ 'IsUserLoggedIn IsValid IsWDDX IsXML IsXmlAttribute IsXmlDoc IsXmlElem IsXmlNode IsXmlRoot JavaCast JSStringFormat LCase Left Len ' +
52
+ 'ListAppend ListChangeDelims ListContains ListContainsNoCase ListDeleteAt ListFind ListFindNoCase ListFirst ListGetAt ListInsertAt ' +
53
+ 'ListLast ListLen ListPrepend ListQualify ListRest ListSetAt ListSort ListToArray ListValueCount ListValueCountNoCase LJustify Log ' +
54
+ 'Log10 LSCurrencyFormat LSDateFormat LSEuroCurrencyFormat LSIsCurrency LSIsDate LSIsNumeric LSNumberFormat LSParseCurrency LSParseDateTime ' +
55
+ 'LSParseEuroCurrency LSParseNumber LSTimeFormat LTrim Max Mid Min Minute Month MonthAsString Now NumberFormat ParagraphFormat ParseDateTime ' +
56
+ 'Pi PrecisionEvaluate PreserveSingleQuotes Quarter QueryAddColumn QueryAddRow QueryConvertForGrid QueryNew QuerySetCell QuotedValueList Rand ' +
57
+ 'Randomize RandRange REFind REFindNoCase ReleaseComObject REMatch REMatchNoCase RemoveChars RepeatString Replace ReplaceList ReplaceNoCase ' +
58
+ 'REReplace REReplaceNoCase Reverse Right RJustify Round RTrim Second SendGatewayMessage SerializeJSON SetEncoding SetLocale SetProfileString ' +
59
+ 'SetVariable Sgn Sin Sleep SpanExcluding SpanIncluding Sqr StripCR StructAppend StructClear StructCopy StructCount StructDelete StructFind ' +
60
+ 'StructFindKey StructFindValue StructGet StructInsert StructIsEmpty StructKeyArray StructKeyExists StructKeyList StructKeyList StructNew ' +
61
+ 'StructSort StructUpdate Tan TimeFormat ToBase64 ToBinary ToScript ToString Trim UCase URLDecode URLEncodedFormat URLSessionFormat Val ' +
62
+ 'ValueList VerifyClient Week Wrap Wrap WriteOutput XmlChildPos XmlElemNew XmlFormat XmlGetNodeType XmlNew XmlParse XmlSearch XmlTransform ' +
63
+ 'XmlValidate Year YesNoFormat';
64
+
65
+ var keywords = 'cfabort cfajaximport cfajaxproxy cfapplet cfapplication cfargument cfassociate cfbreak cfcache cfcalendar ' +
66
+ 'cfcase cfcatch cfchart cfchartdata cfchartseries cfcol cfcollection cfcomponent cfcontent cfcookie cfdbinfo ' +
67
+ 'cfdefaultcase cfdirectory cfdiv cfdocument cfdocumentitem cfdocumentsection cfdump cfelse cfelseif cferror ' +
68
+ 'cfexchangecalendar cfexchangeconnection cfexchangecontact cfexchangefilter cfexchangemail cfexchangetask ' +
69
+ 'cfexecute cfexit cffeed cffile cfflush cfform cfformgroup cfformitem cfftp cffunction cfgrid cfgridcolumn ' +
70
+ 'cfgridrow cfgridupdate cfheader cfhtmlhead cfhttp cfhttpparam cfif cfimage cfimport cfinclude cfindex ' +
71
+ 'cfinput cfinsert cfinterface cfinvoke cfinvokeargument cflayout cflayoutarea cfldap cflocation cflock cflog ' +
72
+ 'cflogin cfloginuser cflogout cfloop cfmail cfmailparam cfmailpart cfmenu cfmenuitem cfmodule cfNTauthenticate ' +
73
+ 'cfobject cfobjectcache cfoutput cfparam cfpdf cfpdfform cfpdfformparam cfpdfparam cfpdfsubform cfpod cfpop ' +
74
+ 'cfpresentation cfpresentationslide cfpresenter cfprint cfprocessingdirective cfprocparam cfprocresult ' +
75
+ 'cfproperty cfquery cfqueryparam cfregistry cfreport cfreportparam cfrethrow cfreturn cfsavecontent cfschedule ' +
76
+ 'cfscript cfsearch cfselect cfset cfsetting cfsilent cfslider cfsprydataset cfstoredproc cfswitch cftable ' +
77
+ 'cftextarea cfthread cfthrow cftimer cftooltip cftrace cftransaction cftree cftreeitem cftry cfupdate cfwddx ' +
78
+ 'cfwindow cfxml cfzip cfzipparam';
79
+
80
+ var operators = 'all and any between cross in join like not null or outer some';
81
+
82
+ this.regexList = [
83
+ { regex: new RegExp('--(.*)$', 'gm'), css: 'comments' }, // one line and multiline comments
84
+ { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // single quoted strings
85
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
86
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
87
+ { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // functions
88
+ { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such
89
+ { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
90
+ ];
91
+ }
92
+
93
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
94
+ Brush.aliases = ['coldfusion','cf'];
95
+
96
+ SyntaxHighlighter.brushes.ColdFusion = Brush;
97
+
98
+ // CommonJS
99
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
100
+ })();
@@ -0,0 +1,97 @@
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
+ // Copyright 2006 Shin, YoungJin
25
+
26
+ var datatypes = 'ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR ' +
27
+ 'DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH ' +
28
+ 'HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP ' +
29
+ 'HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY ' +
30
+ 'HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT ' +
31
+ 'HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE ' +
32
+ 'LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF ' +
33
+ 'LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR ' +
34
+ 'LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR ' +
35
+ 'PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT ' +
36
+ 'PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 ' +
37
+ 'POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR ' +
38
+ 'PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 ' +
39
+ 'PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT ' +
40
+ 'SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG ' +
41
+ 'ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM ' +
42
+ 'char bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' +
43
+ 'clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS ' +
44
+ 'FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t ' +
45
+ '__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t ' +
46
+ 'jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler ' +
47
+ 'sig_atomic_t size_t _stat __stat64 _stati64 terminate_function ' +
48
+ 'time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf ' +
49
+ 'va_list wchar_t wctrans_t wctype_t wint_t signed';
50
+
51
+ var keywords = 'break case catch class const __finally __exception __try ' +
52
+ 'const_cast continue private public protected __declspec ' +
53
+ 'default delete deprecated dllexport dllimport do dynamic_cast ' +
54
+ 'else enum explicit extern if for friend goto inline ' +
55
+ 'mutable naked namespace new noinline noreturn nothrow ' +
56
+ 'register reinterpret_cast return selectany ' +
57
+ 'sizeof static static_cast struct switch template this ' +
58
+ 'thread throw true false try typedef typeid typename union ' +
59
+ 'using uuid virtual void volatile whcar_t while';
60
+
61
+ var functions = 'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' +
62
+ 'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' +
63
+ 'setlocale acos asin atan atan2 ceil cos cosh exp fabs floor fmod ' +
64
+ 'frexp ldexp log log10 modf pow sin sinh sqrt tan tanh jmp_buf ' +
65
+ 'longjmp setjmp raise signal sig_atomic_t va_arg va_end va_start ' +
66
+ 'clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen ' +
67
+ 'fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell ' +
68
+ 'fwrite getc getchar gets perror printf putc putchar puts remove ' +
69
+ 'rename rewind scanf setbuf setvbuf sprintf sscanf tmpfile tmpnam ' +
70
+ 'ungetc vfprintf vprintf vsprintf abort abs atexit atof atoi atol ' +
71
+ 'bsearch calloc div exit free getenv labs ldiv malloc mblen mbstowcs ' +
72
+ 'mbtowc qsort rand realloc srand strtod strtol strtoul system ' +
73
+ 'wcstombs wctomb memchr memcmp memcpy memmove memset strcat strchr ' +
74
+ 'strcmp strcoll strcpy strcspn strerror strlen strncat strncmp ' +
75
+ 'strncpy strpbrk strrchr strspn strstr strtok strxfrm asctime ' +
76
+ 'clock ctime difftime gmtime localtime mktime strftime time';
77
+
78
+ this.regexList = [
79
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
80
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
81
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
82
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
83
+ { regex: /^ *#.*/gm, css: 'preprocessor' },
84
+ { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'color1 bold' },
85
+ { regex: new RegExp(this.getKeywords(functions), 'gm'), css: 'functions bold' },
86
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword bold' }
87
+ ];
88
+ };
89
+
90
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
91
+ Brush.aliases = ['cpp', 'c'];
92
+
93
+ SyntaxHighlighter.brushes.Cpp = Brush;
94
+
95
+ // CommonJS
96
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
97
+ })();
@@ -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
+ })();