├── .gitignore ├── Cakefile ├── README.md ├── background.coffee ├── content_script.coffee ├── langs ├── as3.js ├── bibtex.js ├── cHeader.js ├── clisp.js ├── clojure.js ├── cpp.js ├── cs.js ├── css.js ├── csv.js ├── diff.js ├── erl.js ├── f.js ├── go.js ├── groovy.js ├── java.js ├── javafx.js ├── js.js ├── less.js ├── objc.js ├── perl.js ├── php.js ├── plain.js ├── ps.js ├── py.js ├── rb.js ├── sass.js ├── scala.js ├── sh.js ├── sql.js ├── swift.js ├── tex.js ├── typescript.js ├── vb.js └── xml.js ├── manifest.json ├── options.coffee ├── options.html ├── package.json ├── popup.coffee ├── popup.html ├── scripts ├── CsvToArray.js ├── sprintf-0.7-beta1.js └── syntaxhighlighter.js ├── styles ├── shThemeDefault.css ├── shThemeDjango.css ├── shThemeEclipse.css ├── shThemeEmacs.css ├── shThemeFadeToGrey.css ├── shThemeMDUltra.css ├── shThemeMidnight.css ├── shThemeRDark.css └── shThemeSwift.css ├── syntaxtic_128x128.png ├── syntaxtic_48x48.png ├── toggle_gutter.coffee ├── toggle_highlight.coffee └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | releases 2 | 3 | background.js 4 | content_script.js 5 | options.js 6 | popup.js 7 | toggle_gutter.js 8 | toggle_highlight.js 9 | node_modules/ 10 | -------------------------------------------------------------------------------- /Cakefile: -------------------------------------------------------------------------------- 1 | fs = require "fs" 2 | path = require "path" 3 | child_process = require "child_process" 4 | 5 | spawn = (procName, optArray, silent=false) -> 6 | proc = child_process.spawn procName, optArray 7 | unless silent 8 | proc.stdout.on 'data', (data) -> process.stdout.write data 9 | proc.stderr.on 'data', (data) -> process.stderr.write data 10 | proc 11 | 12 | # visitor will get passed the file path as a parameter 13 | visitDirectory = (directory, visitor) -> 14 | fs.readdirSync(directory).forEach (filename) -> 15 | filepath = path.join directory, filename 16 | if (fs.statSync filepath).isDirectory() 17 | return visitDirectory filepath, visitor 18 | 19 | return unless (fs.statSync filepath).isFile() 20 | visitor(filepath) 21 | 22 | task "build", "compile all coffeescript files to javascript", -> 23 | coffee = spawn "coffee", ["-c", __dirname] 24 | coffee.on 'exit', (returnCode) -> process.exit returnCode 25 | 26 | task "clean", "removes any js files which were compiled from coffeescript", -> 27 | visitDirectory __dirname, (filepath) -> 28 | return unless (path.extname filepath) == ".js" 29 | 30 | directory = path.dirname filepath 31 | 32 | # Check if there exists a corresponding .coffee file 33 | try 34 | coffeeFile = fs.statSync path.join directory, "#{path.basename filepath, ".js"}.coffee" 35 | catch _ 36 | return 37 | 38 | fs.unlinkSync filepath if coffeeFile.isFile() 39 | 40 | task "autobuild", "continually rebuild coffeescript files using coffee --watch", -> 41 | coffee = spawn "coffee", ["-cw", __dirname] 42 | 43 | task "package", "create release zip", -> 44 | invoke "build" 45 | fs.mkdirSync 'releases' if !fs.existsSync 'releases' 46 | 47 | 48 | origManifestText = fs.readFileSync "manifest.json" 49 | manifest = JSON.parse origManifestText 50 | 51 | get_revision = child_process.exec "git log --oneline | wc -l", (error, stdout, stderr) -> 52 | revnum = stdout.trim() 53 | if (error != null) 54 | console.log('exec error: ' + error) 55 | else 56 | write_manifest(revnum) 57 | zip_release = child_process.exec "zip -r 'releases/Syntaxtic_v#{manifest.version}.zip' . -x \\*.coffee \\*.git\\* \\*releases\\* Cakefile README.md node_modules\\* package.json yarn.lock", (error, stdout, stderr) -> 58 | if (error != null) 59 | console.log('exec error: ' + error) 60 | fs.writeFileSync "manifest.json", origManifestText 61 | 62 | write_manifest = (revnum) -> 63 | manifest.version = '4.0.' + revnum 64 | fs.writeFileSync "manifest.json", JSON.stringify manifest 65 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Syntaxtic 2 | ========= 3 | 4 | INSTALL FROM CHROME WEBSTORE 5 | ---------------------------- 6 | https://chrome.google.com/extensions/detail/cgjalgdhmbpaacnnejmodfinclbdgaci 7 | 8 | INSTALLING FROM DEV 9 | -------------------- 10 | 11 | 1. `git clone http://github.com/matheeeny/Syntaxtic.git` 12 | 1. `cd syntaxtic` 13 | 1. `yarn install` 14 | 1. `cake autobuild` 15 | 16 | 1. Browse to chrome://extensions/ in Chrome 17 | 2. Uninstall any previous versions of the extension that you installed via the chrome web store 18 | 3. On the top right-hand side of the page click "+ Developer mode" 19 | 4. A few more buttons should appear, click the one that says "Load unpacked extension..." 20 | 5. Navigate to the source directory and click ok. Your done! 21 | 22 | You only have to do this process if your your trying to load an unpacked extension that isn't already loaded. 23 | If you want to reload your freshly saved changes, just click reload by the extension logo. 24 | 25 | chrome development intro: 26 | http://code.google.com/chrome/extensions/getstarted.html#load 27 | 28 | Happy forking! 29 | -------------------------------------------------------------------------------- /background.coffee: -------------------------------------------------------------------------------- 1 | SyntaxticSettings = () -> 2 | if not localStorage["syntaxtic.settings.gutterBlacklist"]? 3 | localStorage["syntaxtic.settings.gutterBlacklist"] = "[]" 4 | 5 | if not localStorage["syntaxtic.settings.highlightBlacklist"]? 6 | localStorage["syntaxtic.settings.highlightBlacklist"] = "[]" 7 | 8 | 9 | _theme = localStorage["syntaxtic.settings.theme"] 10 | _fontSize = localStorage["syntaxtic.settings.fontSize"] 11 | _fontFamily = localStorage["syntaxtic.settings.fontFamily"] 12 | _lineHeight = localStorage["syntaxtic.settings.lineHeight"] 13 | _gutterBlacklist = JSON.parse(localStorage["syntaxtic.settings.gutterBlacklist"]) 14 | _highlightBlacklist = JSON.parse(localStorage["syntaxtic.settings.highlightBlacklist"]) 15 | _disableQuickCode = localStorage["syntaxtic.settings.disableQuickCode"] 16 | 17 | _defaultTheme = "shThemeMidnight.css" 18 | _defaultFontSize = "normal" 19 | _defaultFontFamily = "Consolas, monospace" 20 | _defaultLineHeight = 1.6 21 | _defaultGutterBlacklist = [] 22 | _defaultHighlightBlacklist = [] 23 | 24 | this.__defineGetter__("theme", -> 25 | return localStorage["syntaxtic.settings.theme"] || (_theme || _defaultTheme) 26 | ) 27 | this.__defineSetter__("theme", (val) -> 28 | _theme = val 29 | localStorage["syntaxtic.settings.theme"] = val 30 | ) 31 | 32 | this.__defineGetter__("fontSize", -> 33 | return localStorage["syntaxtic.settings.fontSize"] || (_fontSize || _defaultFontSize) 34 | ) 35 | this.__defineSetter__("fontSize", (val) -> 36 | _fontSize = val 37 | localStorage["syntaxtic.settings.fontSize"] = val 38 | ) 39 | 40 | this.__defineGetter__("fontFamily", -> 41 | return localStorage["syntaxtic.settings.fontFamily"] || (_fontFamily || _defaultFontFamily) 42 | ) 43 | this.__defineSetter__("fontFamily", (val) -> 44 | _fontFamily = val 45 | localStorage["syntaxtic.settings.fontFamily"] = val 46 | ) 47 | 48 | this.__defineGetter__("lineHeight", -> 49 | return localStorage["syntaxtic.settings.lineHeight"] || (_lineHeight || _defaultLineHeight) 50 | ) 51 | this.__defineSetter__("lineHeight", (val) -> 52 | _lineHeight = val 53 | localStorage["syntaxtic.settings.lineHeight"] = val 54 | ) 55 | 56 | this.__defineGetter__("gutterBlacklist", -> 57 | return JSON.parse(localStorage["syntaxtic.settings.gutterBlacklist"]) || (_gutterBlacklist || _defaultGutterBlacklist) 58 | ) 59 | this.__defineSetter__("gutterBlacklist", (val) -> 60 | _gutterBlacklist = val 61 | localStorage["syntaxtic.settings.gutterBlacklist"] = JSON.stringify(val) 62 | ) 63 | 64 | this.__defineGetter__("highlightBlacklist", -> 65 | return JSON.parse(localStorage["syntaxtic.settings.highlightBlacklist"]) || (_highlightBlacklist || _defaultHighlightBlacklist) 66 | ) 67 | this.__defineSetter__("highlightBlacklist", (val) -> 68 | _highlightBlacklist = val 69 | localStorage["syntaxtic.settings.highlightBlacklist"] = JSON.stringify(val) 70 | ) 71 | 72 | this.__defineGetter__("disableQuickCode", -> 73 | val = localStorage["syntaxtic.settings.disableQuickCode"] || (_disableQuickCode || false) 74 | return val == "true" 75 | ) 76 | this.__defineSetter__("disableQuickCode", (val) -> 77 | _disableQuickCode = val 78 | localStorage["syntaxtic.settings.disableQuickCode"] = val 79 | ) 80 | 81 | 82 | chrome.extension.getBackgroundPage().syntaxtic = 83 | settings : new SyntaxticSettings() 84 | 85 | chrome.extension.onRequest.addListener((request, sender, sendResponse) -> 86 | 87 | if (request.method == "getSettingsWithAction") 88 | # Show the page action for the tab that the sender (content script) was on. 89 | chrome.pageAction.show(sender.tab.id) 90 | sendResponse({settings: syntaxtic.settings}) 91 | else if (request.method == "getSettings") 92 | sendResponse({settings: syntaxtic.settings}) 93 | 94 | else 95 | sendResponse({}) # snub them. 96 | 97 | ) 98 | -------------------------------------------------------------------------------- /content_script.coffee: -------------------------------------------------------------------------------- 1 | settings = false 2 | enableLog = false 3 | 4 | chrome.extension.sendRequest {method: "getSettingsWithAction"}, (response) -> 5 | settings = response.settings; 6 | 7 | if syntaxtic.windowLoaded 8 | enableLog && console.log 'Loaded' 9 | syntaxtic.doHighlight() 10 | else 11 | enableLog && console.log 'Issuing onload' 12 | window.onload = () -> 13 | syntaxtic.windowLoaded = true 14 | syntaxtic.doHighlight() 15 | 16 | syntaxtic = 17 | windowLoaded : false, 18 | doHighlight : () -> 19 | return if not settings 20 | 21 | hasHtmlContentType = () -> 22 | enableLog && console.log 'has html content?' 23 | result = false 24 | metaTags = document.getElementsByTagName('meta') 25 | enableLog && console.log 'Meta Tags:', metaTags 26 | for tag in metaTags 27 | enableLog && console.log 'Tag:', tag, metaTags[tag] 28 | httpEquiv = tag.httpEquiv 29 | content = tag.content 30 | continue if httpEquiv is 'undefined' 31 | 32 | if httpEquiv.toLowerCase() == "content-type" && content.toLowerCase().match("html") 33 | result = true 34 | break 35 | 36 | return result 37 | 38 | highlight = () -> 39 | if document.body.innerHTML.match("003ew0hdafa1119dadfa39aje") # this is gross 40 | return 41 | if document.body.firstChild != null && document.getElementsByTagName('pre')[0] == document.body.firstChild 42 | classString = "brush: #{window.brushAlias}" 43 | if settings.disableQuickCode 44 | classString += "; quick-code: false" 45 | document.body.innerHTML = """ 46 | 47 | 50 | """ 51 | 52 | css2 = document.createElement("link") 53 | css2.href = chrome.extension.getURL("styles/" + settings.theme) 54 | css2.type = "text/css" 55 | css2.rel = "stylesheet" 56 | document.head.appendChild(css2) 57 | 58 | css3 = document.createElement("style") 59 | css3.appendChild(document.createTextNode(".syntaxhighlighter .toolbar {display:none}")) 60 | document.head.appendChild(css3) 61 | 62 | SyntaxHighlighter.highlight() 63 | 64 | beautifyCsv = () -> 65 | strData = document.body.firstChild.innerHTML 66 | csvArray = CsvToArray(strData, ",") 67 | maxColLengthsHash = [1..csvArray[0].length].map (i) -> -1 68 | csvArrayDecoded = [1..csvArray.length].map (i) -> [] 69 | 70 | for firstDimension, i in csvArray 71 | for orig, j in firstDimension 72 | strDecode = html_entity_decode(orig) 73 | csvArrayDecoded[i][j] = strDecode 74 | if strDecode.length > maxColLengthsHash[j] 75 | maxColLengthsHash[j] = strDecode.length 76 | 77 | newCsvData = "" 78 | for firstDimension, k in csvArray 79 | for secondDimension, l in firstDimension 80 | newCsvData += " " for m in [0..maxColLengthsHash[l] - csvArrayDecoded[k][l].length] 81 | 82 | newCsvData += secondDimension 83 | if(l + 1 == firstDimension.length) 84 | newCsvData += '\n' 85 | else 86 | newCsvData += ", " 87 | 88 | document.body.firstChild.innerHTML = newCsvData 89 | window.brushAlias = "plain" 90 | 91 | checkForObjectiveC = -> 92 | strData = document.body.innerHTML; 93 | if strData.match(/(@interface|@protocol|@INTERFACE|@PROTOCOL)/)? 94 | return "objc" 95 | else 96 | return "cpp" 97 | 98 | changeFontSize = () -> 99 | styleElement = document.createElement('style') 100 | styleElement.type = 'text/css' 101 | styleElement.id = 'fontOverride' 102 | document.getElementsByTagName('head')[0].appendChild(styleElement) 103 | newNode = document.createTextNode(".syntaxhighlighter, .syntaxhighlighter code, .syntaxhighlighter div {\n 104 | font-size: #{ settings.fontSize } !important;\n 105 | font-family: '#{ settings.fontFamily }', monospace !important;\n 106 | line-height: #{ settings.lineHeight }em !important;\n 107 | }") 108 | styleElement.appendChild(newNode) 109 | 110 | applyPageSpecificSettings = () -> 111 | if(settings.gutterBlacklist.indexOf(document.location.href) > -1) 112 | loadScript(chrome.extension.getURL("toggle_gutter.js")); 113 | if(settings.highlightBlacklist.indexOf(document.location.href) > -1) 114 | loadScript(chrome.extension.getURL("toggle_highlight.js")); 115 | 116 | loadScript = (url, callback) -> 117 | head = document.getElementsByTagName('head')[0]; 118 | script = document.createElement('script'); 119 | script.type = 'text/javascript'; 120 | script.src = url; 121 | 122 | script.onreadystatechange = callback; 123 | script.onload = callback; 124 | 125 | head.appendChild(script); 126 | 127 | # ######################### 128 | # MAIN 129 | # ######################### 130 | 131 | enableLog && console.log 'Main' 132 | if window.brushAlias? && window.brushAlias != "" && !hasHtmlContentType() 133 | if(window.brushAlias == 'csv') 134 | beautifyCsv() 135 | 136 | if(window.brushAlias == 'cHeader') 137 | window.brushAlias = checkForObjectiveC() 138 | 139 | highlight() 140 | 141 | changeFontSize() 142 | applyPageSpecificSettings() 143 | 144 | 145 | window.onload = () -> 146 | syntaxtic.windowLoaded = true 147 | -------------------------------------------------------------------------------- /langs/as3.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = 'as3'; 2 | -------------------------------------------------------------------------------- /langs/bibtex.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = 'bibtex'; 2 | -------------------------------------------------------------------------------- /langs/cHeader.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = 'cHeader'; 2 | -------------------------------------------------------------------------------- /langs/clisp.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = 'lisp'; 2 | -------------------------------------------------------------------------------- /langs/clojure.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "clojure"; 2 | -------------------------------------------------------------------------------- /langs/cpp.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "cpp"; 2 | -------------------------------------------------------------------------------- /langs/cs.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "csharp"; 2 | -------------------------------------------------------------------------------- /langs/css.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "css"; 2 | -------------------------------------------------------------------------------- /langs/csv.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = 'csv'; 2 | -------------------------------------------------------------------------------- /langs/diff.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "diff"; 2 | -------------------------------------------------------------------------------- /langs/erl.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "erlang"; 2 | -------------------------------------------------------------------------------- /langs/f.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "f"; 2 | -------------------------------------------------------------------------------- /langs/go.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "go"; -------------------------------------------------------------------------------- /langs/groovy.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "groovy"; 2 | -------------------------------------------------------------------------------- /langs/java.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "java"; 2 | -------------------------------------------------------------------------------- /langs/javafx.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "javafx"; 2 | -------------------------------------------------------------------------------- /langs/js.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "js"; 2 | -------------------------------------------------------------------------------- /langs/less.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "less"; 2 | -------------------------------------------------------------------------------- /langs/objc.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "objc"; 2 | -------------------------------------------------------------------------------- /langs/perl.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "perl"; 2 | -------------------------------------------------------------------------------- /langs/php.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "php"; 2 | -------------------------------------------------------------------------------- /langs/plain.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "plain"; 2 | -------------------------------------------------------------------------------- /langs/ps.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = 'powershell'; 2 | -------------------------------------------------------------------------------- /langs/py.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "py"; 2 | -------------------------------------------------------------------------------- /langs/rb.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "ruby"; 2 | -------------------------------------------------------------------------------- /langs/sass.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "sass"; 2 | -------------------------------------------------------------------------------- /langs/scala.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "scala"; 2 | -------------------------------------------------------------------------------- /langs/sh.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "bash"; 2 | -------------------------------------------------------------------------------- /langs/sql.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = 'sql'; 2 | -------------------------------------------------------------------------------- /langs/swift.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "swift"; 2 | -------------------------------------------------------------------------------- /langs/tex.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = 'tex'; 2 | -------------------------------------------------------------------------------- /langs/typescript.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "typescript"; 2 | -------------------------------------------------------------------------------- /langs/vb.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "vb"; 2 | -------------------------------------------------------------------------------- /langs/xml.js: -------------------------------------------------------------------------------- 1 | window.brushAlias = "xml"; 2 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "content_scripts":[ 3 | { 4 | "js":[ 5 | "scripts/syntaxhighlighter.js", 6 | "langs/tex.js", 7 | "content_script.js" 8 | ], 9 | "matches":[ 10 | "*://*/*.tex", 11 | "*://*/*.tex?*" 12 | ], 13 | "run_at":"document_end" 14 | }, 15 | { 16 | "js":[ 17 | "scripts/syntaxhighlighter.js", 18 | "langs/objc.js", 19 | "content_script.js" 20 | ], 21 | "matches":[ 22 | "*://*/*.m", 23 | "*://*/*.m?*" 24 | ], 25 | "run_at":"document_end" 26 | }, 27 | { 28 | "js":[ 29 | "scripts/syntaxhighlighter.js", 30 | "langs/csv.js", 31 | "scripts/CsvToArray.js", 32 | "scripts/sprintf-0.7-beta1.js", 33 | "content_script.js" 34 | ], 35 | "matches":[ 36 | "*://*/*.csv", 37 | "*://*/*.csv?*" 38 | ], 39 | "run_at":"document_end" 40 | }, 41 | { 42 | "js":[ 43 | "scripts/syntaxhighlighter.js", 44 | "langs/bibtex.js", 45 | "content_script.js" 46 | ], 47 | "matches":[ 48 | "*://*/*.bibtex", 49 | "*://*/*.bibtex?*", 50 | "*://*/*.bib", 51 | "*://*/*.bib?*" 52 | ], 53 | "run_at":"document_end" 54 | }, 55 | { 56 | "js":[ 57 | "scripts/syntaxhighlighter.js", 58 | "langs/clisp.js", 59 | "content_script.js" 60 | ], 61 | "matches":[ 62 | "*://*/*.lisp", 63 | "*://*/*.lisp?*", 64 | "*://*/*.emacs", 65 | "*://*/*.emacs?*" 66 | ], 67 | "run_at":"document_end" 68 | }, 69 | { 70 | "js":[ 71 | "scripts/syntaxhighlighter.js", 72 | "langs/clojure.js", 73 | "content_script.js" 74 | ], 75 | "matches":[ 76 | "*://*/*.clj?*" 77 | ], 78 | "run_at":"document_end" 79 | }, 80 | { 81 | "js":[ 82 | "scripts/syntaxhighlighter.js", 83 | "langs/vb.js", 84 | "content_script.js" 85 | ], 86 | "matches":[ 87 | "*://*/*.vb", 88 | "*://*/*.vb?*" 89 | ], 90 | "run_at":"document_end" 91 | }, 92 | { 93 | "js":[ 94 | "scripts/syntaxhighlighter.js", 95 | "langs/sql.js", 96 | "content_script.js" 97 | ], 98 | "matches":[ 99 | "*://*/*.sql", 100 | "*://*/*.sql?*", 101 | "*://*/*.pls", 102 | "*://*/*.pls?*" 103 | ], 104 | "run_at":"document_end" 105 | }, 106 | { 107 | "js":[ 108 | "scripts/syntaxhighlighter.js", 109 | "langs/scala.js", 110 | "content_script.js" 111 | ], 112 | "matches":[ 113 | "*://*/*.scala", 114 | "*://*/*.scala?*" 115 | ], 116 | "run_at":"document_end" 117 | }, 118 | { 119 | "js":[ 120 | "scripts/syntaxhighlighter.js", 121 | "langs/rb.js", 122 | "content_script.js" 123 | ], 124 | "matches":[ 125 | "*://*/*.rb", 126 | "*://*/*.rb?*" 127 | ], 128 | "run_at":"document_end" 129 | }, 130 | { 131 | "js":[ 132 | "scripts/syntaxhighlighter.js", 133 | "langs/ps.js", 134 | "content_script.js" 135 | ], 136 | "matches":[ 137 | "*://*/*.ps1", 138 | "*://*/*.ps1?*", 139 | "*://*/*.ps2", 140 | "*://*/*.ps2?*" 141 | ], 142 | "run_at":"document_end" 143 | }, 144 | { 145 | "js":[ 146 | "scripts/syntaxhighlighter.js", 147 | "langs/plain.js", 148 | "content_script.js" 149 | ], 150 | "matches":[ 151 | "*://*/*.txt", 152 | "*://*/*.txt?*", 153 | "*://*/*.log", 154 | "*://*/*.log?*" 155 | ], 156 | "run_at":"document_end" 157 | }, 158 | { 159 | "js":[ 160 | "scripts/syntaxhighlighter.js", 161 | "langs/perl.js", 162 | "content_script.js" 163 | ], 164 | "matches":[ 165 | "*://*/*.pl", 166 | "*://*/*.pm", 167 | "*://*/*.perl", 168 | "*://*/*.plx" 169 | ], 170 | "run_at":"document_end" 171 | }, 172 | { 173 | "js":[ 174 | "scripts/syntaxhighlighter.js", 175 | "langs/php.js", 176 | "content_script.js" 177 | ], 178 | "matches":[ 179 | "*://*/*.php", 180 | "*://*/*.php?*", 181 | "*://*/*.php5", 182 | "*://*/*.php4", 183 | "*://*/*.php3", 184 | "*://*/*.phps", 185 | "*://*/*.phps", 186 | "*://*/*.phtml" 187 | ], 188 | "run_at":"document_end" 189 | }, 190 | { 191 | "js":[ 192 | "scripts/syntaxhighlighter.js", 193 | "langs/javafx.js", 194 | "content_script.js" 195 | ], 196 | "matches":[ 197 | "*://*/*.fx", 198 | "*://*/*.fx?*" 199 | ], 200 | "run_at":"document_end" 201 | }, 202 | { 203 | "js":[ 204 | "scripts/syntaxhighlighter.js", 205 | "langs/java.js", 206 | "content_script.js" 207 | ], 208 | "matches":[ 209 | "*://*/*.java", 210 | "*://*/*.java?*" 211 | ], 212 | "run_at":"document_end" 213 | }, 214 | { 215 | "js":[ 216 | "scripts/syntaxhighlighter.js", 217 | "langs/js.js", 218 | "content_script.js" 219 | ], 220 | "matches":[ 221 | "*://*/*.js", 222 | "*://*/*.js?*", 223 | "*://*/*.json", 224 | "*://*/*.json?*", 225 | "*://*/*.pbxproj", 226 | "*://*/*.pbxproj?*" 227 | ], 228 | "run_at":"document_end" 229 | }, 230 | { 231 | "js":[ 232 | "scripts/syntaxhighlighter.js", 233 | "langs/groovy.js", 234 | "content_script.js" 235 | ], 236 | "matches":[ 237 | "*://*/*.groovy", 238 | "*://*/*.groovy?*" 239 | ], 240 | "run_at":"document_end" 241 | }, 242 | { 243 | "js":[ 244 | "scripts/syntaxhighlighter.js", 245 | "langs/erl.js", 246 | "content_script.js" 247 | ], 248 | "matches":[ 249 | "*://*/*.erl", 250 | "*://*/*.erl?*" 251 | ], 252 | "run_at":"document_end" 253 | }, 254 | { 255 | "js":[ 256 | "scripts/syntaxhighlighter.js", 257 | "langs/diff.js", 258 | "content_script.js" 259 | ], 260 | "matches":[ 261 | "*://*/*.diff", 262 | "*://*/*.diff?*", 263 | "*://*/*.patch", 264 | "*://*/*.patch?*" 265 | ], 266 | "run_at":"document_end" 267 | }, 268 | { 269 | "js":[ 270 | "scripts/syntaxhighlighter.js", 271 | "langs/css.js", 272 | "content_script.js" 273 | ], 274 | "matches":[ 275 | "*://*/*.css", 276 | "*://*/*.css?*" 277 | ], 278 | "run_at":"document_end" 279 | }, 280 | { 281 | "js":[ 282 | "scripts/syntaxhighlighter.js", 283 | "langs/less.js", 284 | "content_script.js" 285 | ], 286 | "matches":[ 287 | "*://*/*.less", 288 | "*://*/*.less?*" 289 | ], 290 | "run_at":"document_end" 291 | }, 292 | { 293 | "js":[ 294 | "scripts/syntaxhighlighter.js", 295 | "langs/sass.js", 296 | "content_script.js" 297 | ], 298 | "matches":[ 299 | "*://*/*.scss", 300 | "*://*/*.scss?*", 301 | "*://*/*.sass", 302 | "*://*/*.sass?*" 303 | ], 304 | "run_at":"document_end" 305 | }, 306 | { 307 | "js":[ 308 | "scripts/syntaxhighlighter.js", 309 | "langs/cpp.js", 310 | "content_script.js" 311 | ], 312 | "matches":[ 313 | "*://*/*.cpp", 314 | "*://*/*.cpp?*", 315 | "*://*/*.cc", 316 | "*://*/*.cc?*", 317 | "*://*/*.c", 318 | "*://*/*.c?*" 319 | ], 320 | "run_at":"document_end" 321 | }, 322 | { 323 | "js":[ 324 | "scripts/syntaxhighlighter.js", 325 | "langs/cHeader.js", 326 | "content_script.js" 327 | ], 328 | "matches":[ 329 | "*://*/*.h", 330 | "*://*/*.h?*" 331 | ], 332 | "run_at":"document_end" 333 | }, 334 | { 335 | "js":[ 336 | "scripts/syntaxhighlighter.js", 337 | "langs/sh.js", 338 | "content_script.js" 339 | ], 340 | "matches":[ 341 | "*://*/*.sh", 342 | "*://*/*.sh?*" 343 | ], 344 | "run_at":"document_end" 345 | }, 346 | { 347 | "js":[ 348 | "scripts/syntaxhighlighter.js", 349 | "langs/as3.js", 350 | "content_script.js" 351 | ], 352 | "matches":[ 353 | "*://*/*.as", 354 | "*://*/*.as?*", 355 | "*://*/*.actionscript", 356 | "*://*/*.actionscript?*" 357 | ], 358 | "run_at":"document_end" 359 | }, 360 | { 361 | "js":[ 362 | "scripts/syntaxhighlighter.js", 363 | "langs/cs.js", 364 | "content_script.js" 365 | ], 366 | "matches":[ 367 | "*://*/*.cs", 368 | "*://*/*.cs?*" 369 | ], 370 | "run_at":"document_end" 371 | }, 372 | { 373 | "js":[ 374 | "scripts/syntaxhighlighter.js", 375 | "langs/go.js", 376 | "content_script.js" 377 | ], 378 | "matches":[ 379 | "*://*/*.go", 380 | "*://*/*.go?*" 381 | ], 382 | "run_at":"document_end" 383 | }, 384 | { 385 | "js":[ 386 | "scripts/syntaxhighlighter.js", 387 | "langs/py.js", 388 | "content_script.js" 389 | ], 390 | "matches":[ 391 | "*://*/*.py", 392 | "*://*/*.py?*" 393 | ], 394 | "run_at":"document_end" 395 | }, 396 | { 397 | "js":[ 398 | "scripts/syntaxhighlighter.js", 399 | "langs/f.js", 400 | "content_script.js" 401 | ], 402 | "matches":[ 403 | "*://*/*.f", 404 | "*://*/*.f90", 405 | "*://*/*.f?*", 406 | "*://*/*.f90?*" 407 | ], 408 | "run_at":"document_end" 409 | }, 410 | { 411 | "js":[ 412 | "scripts/syntaxhighlighter.js", 413 | "langs/typescript.js", 414 | "content_script.js" 415 | ], 416 | "matches":[ 417 | "*://*/*.ts", 418 | "*://*/*.ts?*" 419 | ], 420 | "run_at":"document_end" 421 | }, 422 | { 423 | "js":[ 424 | "scripts/syntaxhighlighter.js", 425 | "langs/swift.js", 426 | "content_script.js" 427 | ], 428 | "matches":[ 429 | "*://*/*.swift", 430 | "*://*/*.swift?*" 431 | ], 432 | "run_at":"document_end" 433 | } 434 | ], 435 | "description":"Performs syntax highlighting on files visited in the browser based on their extension", 436 | "icons":{ 437 | "128":"syntaxtic_128x128.png", 438 | "48":"syntaxtic_48x48.png" 439 | }, 440 | "name":"Syntaxtic!", 441 | "background":{ 442 | "scripts":[ 443 | "background.js" 444 | ] 445 | }, 446 | "options_page":"options.html", 447 | "version":"0", 448 | "manifest_version":2, 449 | "web_accessible_resources":[ 450 | "styles/*", 451 | "scripts/*", 452 | "toggle_*" 453 | ], 454 | "page_action":{ 455 | "default_icon":"syntaxtic_48x48.png", 456 | "default_title":"Toggle", 457 | "default_popup":"popup.html" 458 | }, 459 | "permissions":[ 460 | "tabs", 461 | "http://*/*", 462 | "https://*/*", 463 | "ftp://*/*" 464 | ] 465 | } 466 | -------------------------------------------------------------------------------- /options.coffee: -------------------------------------------------------------------------------- 1 | settings = chrome.extension.getBackgroundPage().syntaxtic.settings 2 | console.log settings 3 | 4 | style = document.createElement('link') 5 | style.type = 'text/css' 6 | style.id = 'theme-style' 7 | style.rel = "stylesheet" 8 | style.href = chrome.extension.getURL("styles/" + settings.theme) 9 | document.head.appendChild(style) 10 | 11 | style = document.createElement('link') 12 | style.type = 'text/css' 13 | style.id = 'theme-style' 14 | style.rel = "stylesheet" 15 | style.href = chrome.extension.getURL("styles/shCore.css") 16 | document.head.appendChild(style) 17 | 18 | script = document.createElement('script') 19 | script.src = chrome.extension.getURL("scripts/shCore.js") 20 | script.type = 'text/javascript' 21 | document.head.appendChild(script) 22 | 23 | script = document.createElement('script') 24 | script.src = chrome.extension.getURL("scripts/shBrushCSharp.js") 25 | script.type = 'text/javascript' 26 | document.head.appendChild(script) 27 | 28 | optionChanged = () -> 29 | # update the settings object from the DOM 30 | settings.theme = document.getElementById('themeSelect').value 31 | settings.fontSize = document.getElementById('fontSizeSelect').value 32 | settings.fontFamily = document.getElementById('fontFamilySelect').value 33 | settings.lineHeight = document.getElementById('lineHeightSelect').value 34 | settings.disableQuickCode = document.getElementById('quickCodeSelect').value 35 | 36 | # apply changed theme 37 | document.getElementById('theme-style').href = chrome.extension.getURL("styles/" + settings.theme) 38 | 39 | # apply changed font 40 | style = document.getElementById('fontOverride') 41 | style.innerHTML = ".syntaxhighlighter, .syntaxhighlighter code, .syntaxhighlighter div {\n 42 | font-size: #{ settings.fontSize } !important;\n 43 | font-family: '#{ settings.fontFamily }', monospace !important;\n 44 | line-height: #{ settings.lineHeight }em !important;\n 45 | }\n" 46 | style.innerHTML += ".syntaxhighlighter select {\n 47 | background-color: white !important;\n 48 | border: none;\n 49 | margin: 0;\n 50 | padding: 0;\n 51 | }\n" 52 | 53 | initOptionsPage = () -> 54 | # update the DOM from the settings object 55 | document.getElementById('themeSelect').value = settings.theme 56 | document.getElementById('fontSizeSelect').value = settings.fontSize 57 | document.getElementById('fontFamilySelect').value = settings.fontFamily 58 | document.getElementById('lineHeightSelect').value = settings.lineHeight 59 | document.getElementById('quickCodeSelect').value = settings.disableQuickCode 60 | 61 | document.addEventListener 'DOMContentLoaded', () -> 62 | 63 | # iterate over 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | ; 65 |
       var fontSize = ;
74 |
       var fontFamily = ;
85 |
       var lineHeight = em;
93 |
       var quickCode = ;
97 |
       Console.WriteLine("Syntaxtic! settings now configured.");
98 |
     }
99 |
   }
100 |
 }
101 | 102 | 103 | 104 | 105 | 106 | 107 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Syntaxtic", 3 | "version": "4.0.0", 4 | "description": "Chrome extension for syntax highlighting", 5 | "main": "index.js", 6 | "repository": "git@github.com:ajmath/Syntaxtic.git", 7 | "author": "Andrew Matheny ", 8 | "license": "MIT", 9 | "devDependencies": { 10 | "cake": "^0.1.1", 11 | "coffeescript": "^1.12.7" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /popup.coffee: -------------------------------------------------------------------------------- 1 | settings = chrome.extension.getBackgroundPage().syntaxtic.settings 2 | 3 | init = () -> 4 | chrome.tabs.getSelected null, (tab) -> 5 | checkboxes = document.querySelectorAll('.clicker') 6 | for box in checkboxes 7 | blacklist = settings[box.id + "Blacklist"] 8 | box.addEventListener 'click', toggle 9 | box.checked = blacklist.indexOf(tab.url) is -1 10 | 11 | toggle = (e) -> 12 | chrome.tabs.getSelected null, (tab) -> 13 | blacklist = settings[e.target.id + "Blacklist"] 14 | if e.target.checked 15 | idx = blacklist.indexOf(tab.url) 16 | blacklist.splice(idx, 1) if idx isnt -1 17 | else 18 | blacklist.push(tab.url) 19 | settings[e.target.id + "Blacklist"] = blacklist 20 | chrome.tabs.executeScript null, {file:"toggle_" + e.target.id + ".js"} 21 | 22 | document.addEventListener 'DOMContentLoaded', () -> 23 | init() 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /popup.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Toggle Syntaxtic 5 | 14 | 15 | 16 | 17 |
18 | 19 | 20 |
21 |
22 | 23 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /scripts/CsvToArray.js: -------------------------------------------------------------------------------- 1 | function CsvToArray( strData, strDelimiter ){ 2 | strDelimiter = (strDelimiter || ","); 3 | var objPattern = new RegExp( 4 | ( 5 | "(\\" + strDelimiter + "|\\r?\\n|\\r|^)" + 6 | "(?:\"([^\"]*(?:\"\"[^\"]*)*)\"|" + 7 | "([^\"\\" + strDelimiter + "\\r\\n]*))" 8 | ), 9 | "gi" 10 | ); 11 | var arrData = [[]]; 12 | var arrMatches = null; 13 | while (arrMatches = objPattern.exec( strData )){ 14 | var strMatchedDelimiter = arrMatches[ 1 ]; 15 | var strMatchedValue; 16 | if ( 17 | strMatchedDelimiter.length && 18 | (strMatchedDelimiter != strDelimiter) 19 | ){ 20 | arrData.push( [] ); 21 | 22 | } 23 | if (arrMatches[ 2 ]){ 24 | strMatchedValue = arrMatches[ 2 ].replace( 25 | new RegExp( "\"\"", "g" ), 26 | "\"" 27 | ); 28 | 29 | } else { 30 | strMatchedValue = arrMatches[ 3 ]; 31 | 32 | } 33 | arrData[ arrData.length - 1 ].push( strMatchedValue ); 34 | } 35 | return( arrData ); 36 | } 37 | 38 | function html_entity_decode(str) { 39 | var ta=document.createElement("textarea"); 40 | ta.innerHTML=str.replace(//g,">"); 41 | return ta.value; 42 | } 43 | -------------------------------------------------------------------------------- /scripts/sprintf-0.7-beta1.js: -------------------------------------------------------------------------------- 1 | /** 2 | sprintf() for JavaScript 0.7-beta1 3 | http://www.diveintojavascript.com/projects/javascript-sprintf 4 | 5 | Copyright (c) Alexandru Marasteanu 6 | All rights reserved. 7 | 8 | Redistribution and use in source and binary forms, with or without 9 | modification, are permitted provided that the following conditions are met: 10 | * Redistributions of source code must retain the above copyright 11 | notice, this list of conditions and the following disclaimer. 12 | * Redistributions in binary form must reproduce the above copyright 13 | notice, this list of conditions and the following disclaimer in the 14 | documentation and/or other materials provided with the distribution. 15 | * Neither the name of sprintf() for JavaScript nor the 16 | names of its contributors may be used to endorse or promote products 17 | derived from this software without specific prior written permission. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 20 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | DISCLAIMED. IN NO EVENT SHALL Alexandru Marasteanu BE LIABLE FOR ANY 23 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 28 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | 30 | 31 | Changelog: 32 | 2010.09.06 - 0.7-beta1 33 | - features: vsprintf, support for named placeholders 34 | - enhancements: format cache, reduced global namespace pollution 35 | 36 | 2010.05.22 - 0.6: 37 | - reverted to 0.4 and fixed the bug regarding the sign of the number 0 38 | Note: 39 | Thanks to Raphael Pigulla (http://www.n3rd.org/) 40 | who warned me about a bug in 0.5, I discovered that the last update was 41 | a regress. I appologize for that. 42 | 43 | 2010.05.09 - 0.5: 44 | - bug fix: 0 is now preceeded with a + sign 45 | - bug fix: the sign was not at the right position on padded results (Kamal Abdali) 46 | - switched from GPL to BSD license 47 | 48 | 2007.10.21 - 0.4: 49 | - unit test and patch (David Baird) 50 | 51 | 2007.09.17 - 0.3: 52 | - bug fix: no longer throws exception on empty paramenters (Hans Pufal) 53 | 54 | 2007.09.11 - 0.2: 55 | - feature: added argument swapping 56 | 57 | 2007.04.03 - 0.1: 58 | - initial release 59 | **/ 60 | 61 | var sprintf = (function() { 62 | function get_type(variable) { 63 | return Object.prototype.toString.call(variable).slice(8, -1).toLowerCase(); 64 | } 65 | function str_repeat(input, multiplier) { 66 | for (var output = []; multiplier > 0; output[--multiplier] = input) {/* do nothing */} 67 | return output.join(''); 68 | } 69 | 70 | var str_format = function() { 71 | if (!str_format.cache.hasOwnProperty(arguments[0])) { 72 | str_format.cache[arguments[0]] = str_format.parse(arguments[0]); 73 | } 74 | return str_format.format.call(null, str_format.cache[arguments[0]], arguments); 75 | }; 76 | 77 | str_format.format = function(parse_tree, argv) { 78 | var cursor = 1, tree_length = parse_tree.length, node_type = '', arg, output = [], i, k, match, pad, pad_character, pad_length; 79 | for (i = 0; i < tree_length; i++) { 80 | node_type = get_type(parse_tree[i]); 81 | if (node_type === 'string') { 82 | output.push(parse_tree[i]); 83 | } 84 | else if (node_type === 'array') { 85 | match = parse_tree[i]; // convenience purposes only 86 | if (match[2]) { // keyword argument 87 | arg = argv[cursor]; 88 | for (k = 0; k < match[2].length; k++) { 89 | if (!arg.hasOwnProperty(match[2][k])) { 90 | throw(sprintf('[sprintf] property "%s" does not exist', match[2][k])); 91 | } 92 | arg = arg[match[2][k]]; 93 | } 94 | } 95 | else if (match[1]) { // positional argument (explicit) 96 | arg = argv[match[1]]; 97 | } 98 | else { // positional argument (implicit) 99 | arg = argv[cursor++]; 100 | } 101 | 102 | if (/[^s]/.test(match[8]) && (get_type(arg) != 'number')) { 103 | throw(sprintf('[sprintf] expecting number but found %s', get_type(arg))); 104 | } 105 | switch (match[8]) { 106 | case 'b': arg = arg.toString(2); break; 107 | case 'c': arg = String.fromCharCode(arg); break; 108 | case 'd': arg = parseInt(arg, 10); break; 109 | case 'e': arg = match[7] ? arg.toExponential(match[7]) : arg.toExponential(); break; 110 | case 'f': arg = match[7] ? parseFloat(arg).toFixed(match[7]) : parseFloat(arg); break; 111 | case 'o': arg = arg.toString(8); break; 112 | case 's': arg = ((arg = String(arg)) && match[7] ? arg.substring(0, match[7]) : arg); break; 113 | case 'u': arg = Math.abs(arg); break; 114 | case 'x': arg = arg.toString(16); break; 115 | case 'X': arg = arg.toString(16).toUpperCase(); break; 116 | } 117 | arg = (/[def]/.test(match[8]) && match[3] && arg >= 0 ? '+'+ arg : arg); 118 | pad_character = match[4] ? match[4] == '0' ? '0' : match[4].charAt(1) : ' '; 119 | pad_length = match[6] - String(arg).length; 120 | pad = match[6] ? str_repeat(pad_character, pad_length) : ''; 121 | output.push(match[5] ? arg + pad : pad + arg); 122 | } 123 | } 124 | return output.join(''); 125 | }; 126 | 127 | str_format.cache = {}; 128 | 129 | str_format.parse = function(fmt) { 130 | var _fmt = fmt, match = [], parse_tree = [], arg_names = 0; 131 | while (_fmt) { 132 | if ((match = /^[^\x25]+/.exec(_fmt)) !== null) { 133 | parse_tree.push(match[0]); 134 | } 135 | else if ((match = /^\x25{2}/.exec(_fmt)) !== null) { 136 | parse_tree.push('%'); 137 | } 138 | else if ((match = /^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(_fmt)) !== null) { 139 | if (match[2]) { 140 | arg_names |= 1; 141 | var field_list = [], replacement_field = match[2], field_match = []; 142 | if ((field_match = /^([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) { 143 | field_list.push(field_match[1]); 144 | while ((replacement_field = replacement_field.substring(field_match[0].length)) !== '') { 145 | if ((field_match = /^\.([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) { 146 | field_list.push(field_match[1]); 147 | } 148 | else if ((field_match = /^\[(\d+)\]/.exec(replacement_field)) !== null) { 149 | field_list.push(field_match[1]); 150 | } 151 | else { 152 | throw('[sprintf] huh?'); 153 | } 154 | } 155 | } 156 | else { 157 | throw('[sprintf] huh?'); 158 | } 159 | match[2] = field_list; 160 | } 161 | else { 162 | arg_names |= 2; 163 | } 164 | if (arg_names === 3) { 165 | throw('[sprintf] mixing positional and named placeholders is not (yet) supported'); 166 | } 167 | parse_tree.push(match); 168 | } 169 | else { 170 | throw('[sprintf] huh?'); 171 | } 172 | _fmt = _fmt.substring(match[0].length); 173 | } 174 | return parse_tree; 175 | }; 176 | 177 | return str_format; 178 | })(); 179 | 180 | var vsprintf = function(fmt, argv) { 181 | argv.unshift(fmt); 182 | return sprintf.apply(null, argv); 183 | }; 184 | -------------------------------------------------------------------------------- /styles/shThemeDefault.css: -------------------------------------------------------------------------------- 1 | .syntaxhighlighter a, 2 | .syntaxhighlighter div, 3 | .syntaxhighlighter code, 4 | .syntaxhighlighter table, 5 | .syntaxhighlighter table td, 6 | .syntaxhighlighter table tr, 7 | .syntaxhighlighter table tbody, 8 | .syntaxhighlighter table thead, 9 | .syntaxhighlighter table caption, 10 | .syntaxhighlighter textarea { 11 | -moz-border-radius: 0 0 0 0 !important; 12 | -webkit-border-radius: 0 0 0 0 !important; 13 | background: none !important; 14 | border: 0 !important; 15 | bottom: auto !important; 16 | float: none !important; 17 | height: auto !important; 18 | left: auto !important; 19 | line-height: 1.1em !important; 20 | margin: 0 !important; 21 | outline: 0 !important; 22 | overflow: visible !important; 23 | padding: 0 !important; 24 | position: static !important; 25 | right: auto !important; 26 | text-align: left !important; 27 | top: auto !important; 28 | vertical-align: baseline !important; 29 | width: auto !important; 30 | box-sizing: content-box !important; 31 | font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; 32 | font-weight: normal !important; 33 | font-style: normal !important; 34 | font-size: 1em !important; 35 | min-height: inherit !important; 36 | min-height: auto !important; } 37 | 38 | .syntaxhighlighter { 39 | width: 100% !important; 40 | margin: 1em 0 1em 0 !important; 41 | position: relative !important; 42 | overflow: auto !important; 43 | font-size: 1em !important; } 44 | .syntaxhighlighter .container:before, .syntaxhighlighter .container:after { 45 | content: none !important; } 46 | .syntaxhighlighter.source { 47 | overflow: hidden !important; } 48 | .syntaxhighlighter .bold { 49 | font-weight: bold !important; } 50 | .syntaxhighlighter .italic { 51 | font-style: italic !important; } 52 | .syntaxhighlighter .line { 53 | white-space: pre !important; } 54 | .syntaxhighlighter table { 55 | width: 100% !important; } 56 | .syntaxhighlighter table caption { 57 | text-align: left !important; 58 | padding: .5em 0 0.5em 1em !important; } 59 | .syntaxhighlighter table td.code { 60 | width: 100% !important; } 61 | .syntaxhighlighter table td.code .container { 62 | position: relative !important; } 63 | .syntaxhighlighter table td.code .container textarea { 64 | box-sizing: border-box !important; 65 | position: absolute !important; 66 | left: 0 !important; 67 | top: 0 !important; 68 | width: 100% !important; 69 | height: 100% !important; 70 | border: none !important; 71 | background: white !important; 72 | padding-left: 1em !important; 73 | overflow: hidden !important; 74 | white-space: pre !important; } 75 | .syntaxhighlighter table td.gutter .line { 76 | text-align: right !important; 77 | padding: 0 0.5em 0 1em !important; } 78 | .syntaxhighlighter table td.code .line { 79 | padding: 0 1em !important; } 80 | .syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line { 81 | padding-left: 0em !important; } 82 | .syntaxhighlighter.show { 83 | display: block !important; } 84 | .syntaxhighlighter.collapsed table { 85 | display: none !important; } 86 | .syntaxhighlighter.collapsed .toolbar { 87 | padding: 0.1em 0.8em 0em 0.8em !important; 88 | font-size: 1em !important; 89 | position: static !important; 90 | width: auto !important; 91 | height: auto !important; } 92 | .syntaxhighlighter.collapsed .toolbar span { 93 | display: inline !important; 94 | margin-right: 1em !important; } 95 | .syntaxhighlighter.collapsed .toolbar span a { 96 | padding: 0 !important; 97 | display: none !important; } 98 | .syntaxhighlighter.collapsed .toolbar span a.expandSource { 99 | display: inline !important; } 100 | .syntaxhighlighter .toolbar { 101 | position: absolute !important; 102 | right: 1px !important; 103 | top: 1px !important; 104 | width: 11px !important; 105 | height: 11px !important; 106 | font-size: 10px !important; 107 | z-index: 10 !important; } 108 | .syntaxhighlighter .toolbar span.title { 109 | display: inline !important; } 110 | .syntaxhighlighter .toolbar a { 111 | display: block !important; 112 | text-align: center !important; 113 | text-decoration: none !important; 114 | padding-top: 1px !important; } 115 | .syntaxhighlighter .toolbar a.expandSource { 116 | display: none !important; } 117 | .syntaxhighlighter.ie { 118 | font-size: .9em !important; 119 | padding: 1px 0 1px 0 !important; } 120 | .syntaxhighlighter.ie .toolbar { 121 | line-height: 8px !important; } 122 | .syntaxhighlighter.ie .toolbar a { 123 | padding-top: 0px !important; } 124 | .syntaxhighlighter.printing .line.alt1 .content, 125 | .syntaxhighlighter.printing .line.alt2 .content, 126 | .syntaxhighlighter.printing .line.highlighted .number, 127 | .syntaxhighlighter.printing .line.highlighted.alt1 .content, 128 | .syntaxhighlighter.printing .line.highlighted.alt2 .content { 129 | background: none !important; } 130 | .syntaxhighlighter.printing .line .number { 131 | color: #bbbbbb !important; } 132 | .syntaxhighlighter.printing .line .content { 133 | color: black !important; } 134 | .syntaxhighlighter.printing .toolbar { 135 | display: none !important; } 136 | .syntaxhighlighter.printing a { 137 | text-decoration: none !important; } 138 | .syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a { 139 | color: black !important; } 140 | .syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a { 141 | color: #008200 !important; } 142 | .syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a { 143 | color: blue !important; } 144 | .syntaxhighlighter.printing .keyword { 145 | color: #006699 !important; 146 | font-weight: bold !important; } 147 | .syntaxhighlighter.printing .preprocessor { 148 | color: gray !important; } 149 | .syntaxhighlighter.printing .variable { 150 | color: #aa7700 !important; } 151 | .syntaxhighlighter.printing .value { 152 | color: #009900 !important; } 153 | .syntaxhighlighter.printing .functions { 154 | color: #ff1493 !important; } 155 | .syntaxhighlighter.printing .constants { 156 | color: #0066cc !important; } 157 | .syntaxhighlighter.printing .script { 158 | font-weight: bold !important; } 159 | .syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a { 160 | color: gray !important; } 161 | .syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a { 162 | color: #ff1493 !important; } 163 | .syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a { 164 | color: red !important; } 165 | .syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a { 166 | color: black !important; } 167 | 168 | .syntaxhighlighter { 169 | background-color: white !important; } 170 | .syntaxhighlighter .line.alt1 { 171 | background-color: white !important; } 172 | .syntaxhighlighter .line.alt2 { 173 | background-color: white !important; } 174 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { 175 | background-color: #e0e0e0 !important; } 176 | .syntaxhighlighter .line.highlighted.number { 177 | color: black !important; } 178 | .syntaxhighlighter table caption { 179 | color: black !important; } 180 | .syntaxhighlighter table td.code .container textarea { 181 | background: white; 182 | color: black; } 183 | .syntaxhighlighter .gutter { 184 | color: #afafaf !important; } 185 | .syntaxhighlighter .gutter .line { 186 | border-right: 3px solid #6ce26c !important; } 187 | .syntaxhighlighter .gutter .line.highlighted { 188 | background-color: #6ce26c !important; 189 | color: white !important; } 190 | .syntaxhighlighter.printing .line .content { 191 | border: none !important; } 192 | .syntaxhighlighter.collapsed { 193 | overflow: visible !important; } 194 | .syntaxhighlighter.collapsed .toolbar { 195 | color: #00f !important; 196 | background: #fff !important; 197 | border: 1px solid #6ce26c !important; } 198 | .syntaxhighlighter.collapsed .toolbar a { 199 | color: #00f !important; } 200 | .syntaxhighlighter.collapsed .toolbar a:hover { 201 | color: #f00 !important; } 202 | .syntaxhighlighter .toolbar { 203 | color: #fff !important; 204 | background: #6ce26c !important; 205 | border: none !important; } 206 | .syntaxhighlighter .toolbar a { 207 | color: #fff !important; } 208 | .syntaxhighlighter .toolbar a:hover { 209 | color: #000 !important; } 210 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 211 | color: black !important; } 212 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 213 | color: #008200 !important; } 214 | .syntaxhighlighter .string, .syntaxhighlighter .string a { 215 | color: blue !important; } 216 | .syntaxhighlighter .keyword { 217 | font-weight: bold !important; 218 | color: #006699 !important; } 219 | .syntaxhighlighter .preprocessor { 220 | color: gray !important; } 221 | .syntaxhighlighter .variable { 222 | color: #aa7700 !important; } 223 | .syntaxhighlighter .value { 224 | color: #009900 !important; } 225 | .syntaxhighlighter .functions { 226 | color: #ff1493 !important; } 227 | .syntaxhighlighter .constants { 228 | color: #0066cc !important; } 229 | .syntaxhighlighter .script { 230 | font-weight: bold !important; 231 | color: #006699 !important; 232 | background-color: none !important; } 233 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 234 | color: gray !important; } 235 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 236 | color: #ff1493 !important; } 237 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 238 | color: red !important; } 239 | -------------------------------------------------------------------------------- /styles/shThemeDjango.css: -------------------------------------------------------------------------------- 1 | .syntaxhighlighter a, 2 | .syntaxhighlighter div, 3 | .syntaxhighlighter code, 4 | .syntaxhighlighter table, 5 | .syntaxhighlighter table td, 6 | .syntaxhighlighter table tr, 7 | .syntaxhighlighter table tbody, 8 | .syntaxhighlighter table thead, 9 | .syntaxhighlighter table caption, 10 | .syntaxhighlighter textarea { 11 | -moz-border-radius: 0 0 0 0 !important; 12 | -webkit-border-radius: 0 0 0 0 !important; 13 | background: none !important; 14 | border: 0 !important; 15 | bottom: auto !important; 16 | float: none !important; 17 | height: auto !important; 18 | left: auto !important; 19 | line-height: 1.1em !important; 20 | margin: 0 !important; 21 | outline: 0 !important; 22 | overflow: visible !important; 23 | padding: 0 !important; 24 | position: static !important; 25 | right: auto !important; 26 | text-align: left !important; 27 | top: auto !important; 28 | vertical-align: baseline !important; 29 | width: auto !important; 30 | box-sizing: content-box !important; 31 | font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; 32 | font-weight: normal !important; 33 | font-style: normal !important; 34 | font-size: 1em !important; 35 | min-height: inherit !important; 36 | min-height: auto !important; } 37 | 38 | .syntaxhighlighter { 39 | width: 100% !important; 40 | margin: 1em 0 1em 0 !important; 41 | position: relative !important; 42 | overflow: auto !important; 43 | font-size: 1em !important; } 44 | .syntaxhighlighter .container:before, .syntaxhighlighter .container:after { 45 | content: none !important; } 46 | .syntaxhighlighter.source { 47 | overflow: hidden !important; } 48 | .syntaxhighlighter .bold { 49 | font-weight: bold !important; } 50 | .syntaxhighlighter .italic { 51 | font-style: italic !important; } 52 | .syntaxhighlighter .line { 53 | white-space: pre !important; } 54 | .syntaxhighlighter table { 55 | width: 100% !important; } 56 | .syntaxhighlighter table caption { 57 | text-align: left !important; 58 | padding: .5em 0 0.5em 1em !important; } 59 | .syntaxhighlighter table td.code { 60 | width: 100% !important; } 61 | .syntaxhighlighter table td.code .container { 62 | position: relative !important; } 63 | .syntaxhighlighter table td.code .container textarea { 64 | box-sizing: border-box !important; 65 | position: absolute !important; 66 | left: 0 !important; 67 | top: 0 !important; 68 | width: 100% !important; 69 | height: 100% !important; 70 | border: none !important; 71 | background: white !important; 72 | padding-left: 1em !important; 73 | overflow: hidden !important; 74 | white-space: pre !important; } 75 | .syntaxhighlighter table td.gutter .line { 76 | text-align: right !important; 77 | padding: 0 0.5em 0 1em !important; } 78 | .syntaxhighlighter table td.code .line { 79 | padding: 0 1em !important; } 80 | .syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line { 81 | padding-left: 0em !important; } 82 | .syntaxhighlighter.show { 83 | display: block !important; } 84 | .syntaxhighlighter.collapsed table { 85 | display: none !important; } 86 | .syntaxhighlighter.collapsed .toolbar { 87 | padding: 0.1em 0.8em 0em 0.8em !important; 88 | font-size: 1em !important; 89 | position: static !important; 90 | width: auto !important; 91 | height: auto !important; } 92 | .syntaxhighlighter.collapsed .toolbar span { 93 | display: inline !important; 94 | margin-right: 1em !important; } 95 | .syntaxhighlighter.collapsed .toolbar span a { 96 | padding: 0 !important; 97 | display: none !important; } 98 | .syntaxhighlighter.collapsed .toolbar span a.expandSource { 99 | display: inline !important; } 100 | .syntaxhighlighter .toolbar { 101 | position: absolute !important; 102 | right: 1px !important; 103 | top: 1px !important; 104 | width: 11px !important; 105 | height: 11px !important; 106 | font-size: 10px !important; 107 | z-index: 10 !important; } 108 | .syntaxhighlighter .toolbar span.title { 109 | display: inline !important; } 110 | .syntaxhighlighter .toolbar a { 111 | display: block !important; 112 | text-align: center !important; 113 | text-decoration: none !important; 114 | padding-top: 1px !important; } 115 | .syntaxhighlighter .toolbar a.expandSource { 116 | display: none !important; } 117 | .syntaxhighlighter.ie { 118 | font-size: .9em !important; 119 | padding: 1px 0 1px 0 !important; } 120 | .syntaxhighlighter.ie .toolbar { 121 | line-height: 8px !important; } 122 | .syntaxhighlighter.ie .toolbar a { 123 | padding-top: 0px !important; } 124 | .syntaxhighlighter.printing .line.alt1 .content, 125 | .syntaxhighlighter.printing .line.alt2 .content, 126 | .syntaxhighlighter.printing .line.highlighted .number, 127 | .syntaxhighlighter.printing .line.highlighted.alt1 .content, 128 | .syntaxhighlighter.printing .line.highlighted.alt2 .content { 129 | background: none !important; } 130 | .syntaxhighlighter.printing .line .number { 131 | color: #bbbbbb !important; } 132 | .syntaxhighlighter.printing .line .content { 133 | color: black !important; } 134 | .syntaxhighlighter.printing .toolbar { 135 | display: none !important; } 136 | .syntaxhighlighter.printing a { 137 | text-decoration: none !important; } 138 | .syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a { 139 | color: black !important; } 140 | .syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a { 141 | color: #008200 !important; } 142 | .syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a { 143 | color: blue !important; } 144 | .syntaxhighlighter.printing .keyword { 145 | color: #006699 !important; 146 | font-weight: bold !important; } 147 | .syntaxhighlighter.printing .preprocessor { 148 | color: gray !important; } 149 | .syntaxhighlighter.printing .variable { 150 | color: #aa7700 !important; } 151 | .syntaxhighlighter.printing .value { 152 | color: #009900 !important; } 153 | .syntaxhighlighter.printing .functions { 154 | color: #ff1493 !important; } 155 | .syntaxhighlighter.printing .constants { 156 | color: #0066cc !important; } 157 | .syntaxhighlighter.printing .script { 158 | font-weight: bold !important; } 159 | .syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a { 160 | color: gray !important; } 161 | .syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a { 162 | color: #ff1493 !important; } 163 | .syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a { 164 | color: red !important; } 165 | .syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a { 166 | color: black !important; } 167 | 168 | .syntaxhighlighter { 169 | background-color: #0a2b1d !important; } 170 | .syntaxhighlighter .line.alt1 { 171 | background-color: #0a2b1d !important; } 172 | .syntaxhighlighter .line.alt2 { 173 | background-color: #0a2b1d !important; } 174 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { 175 | background-color: #233729 !important; } 176 | .syntaxhighlighter .line.highlighted.number { 177 | color: white !important; } 178 | .syntaxhighlighter table caption { 179 | color: #f8f8f8 !important; } 180 | .syntaxhighlighter table td.code .container textarea { 181 | background: #0a2b1d; 182 | color: #f8f8f8; } 183 | .syntaxhighlighter .gutter { 184 | color: #497958 !important; } 185 | .syntaxhighlighter .gutter .line { 186 | border-right: 3px solid #41a83e !important; } 187 | .syntaxhighlighter .gutter .line.highlighted { 188 | background-color: #41a83e !important; 189 | color: #0a2b1d !important; } 190 | .syntaxhighlighter.printing .line .content { 191 | border: none !important; } 192 | .syntaxhighlighter.collapsed { 193 | overflow: visible !important; } 194 | .syntaxhighlighter.collapsed .toolbar { 195 | color: #96dd3b !important; 196 | background: #000 !important; 197 | border: 1px solid #41a83e !important; } 198 | .syntaxhighlighter.collapsed .toolbar a { 199 | color: #96dd3b !important; } 200 | .syntaxhighlighter.collapsed .toolbar a:hover { 201 | color: #fff !important; } 202 | .syntaxhighlighter .toolbar { 203 | color: #fff !important; 204 | background: #41a83e !important; 205 | border: none !important; } 206 | .syntaxhighlighter .toolbar a { 207 | color: #fff !important; } 208 | .syntaxhighlighter .toolbar a:hover { 209 | color: #ffe862 !important; } 210 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 211 | color: #f8f8f8 !important; } 212 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 213 | color: #336442 !important; } 214 | .syntaxhighlighter .string, .syntaxhighlighter .string a { 215 | color: #9df39f !important; } 216 | .syntaxhighlighter .keyword { 217 | font-weight: bold !important; 218 | color: #96dd3b !important; } 219 | .syntaxhighlighter .preprocessor { 220 | color: #91bb9e !important; } 221 | .syntaxhighlighter .variable { 222 | color: #ffaa3e !important; } 223 | .syntaxhighlighter .value { 224 | color: #f7e741 !important; } 225 | .syntaxhighlighter .functions { 226 | color: #ffaa3e !important; } 227 | .syntaxhighlighter .constants { 228 | color: #e0e8ff !important; } 229 | .syntaxhighlighter .script { 230 | font-weight: bold !important; 231 | color: #96dd3b !important; 232 | background-color: none !important; } 233 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 234 | color: #eb939a !important; } 235 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 236 | color: #91bb9e !important; } 237 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 238 | color: #edef7d !important; } 239 | 240 | .syntaxhighlighter .comments { 241 | font-style: italic !important; } 242 | 243 | .syntaxhighlighter .keyword { 244 | font-weight: bold !important; } 245 | -------------------------------------------------------------------------------- /styles/shThemeEclipse.css: -------------------------------------------------------------------------------- 1 | .syntaxhighlighter a, 2 | .syntaxhighlighter div, 3 | .syntaxhighlighter code, 4 | .syntaxhighlighter table, 5 | .syntaxhighlighter table td, 6 | .syntaxhighlighter table tr, 7 | .syntaxhighlighter table tbody, 8 | .syntaxhighlighter table thead, 9 | .syntaxhighlighter table caption, 10 | .syntaxhighlighter textarea { 11 | -moz-border-radius: 0 0 0 0 !important; 12 | -webkit-border-radius: 0 0 0 0 !important; 13 | background: none !important; 14 | border: 0 !important; 15 | bottom: auto !important; 16 | float: none !important; 17 | height: auto !important; 18 | left: auto !important; 19 | line-height: 1.1em !important; 20 | margin: 0 !important; 21 | outline: 0 !important; 22 | overflow: visible !important; 23 | padding: 0 !important; 24 | position: static !important; 25 | right: auto !important; 26 | text-align: left !important; 27 | top: auto !important; 28 | vertical-align: baseline !important; 29 | width: auto !important; 30 | box-sizing: content-box !important; 31 | font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; 32 | font-weight: normal !important; 33 | font-style: normal !important; 34 | font-size: 1em !important; 35 | min-height: inherit !important; 36 | min-height: auto !important; } 37 | 38 | .syntaxhighlighter { 39 | width: 100% !important; 40 | margin: 1em 0 1em 0 !important; 41 | position: relative !important; 42 | overflow: auto !important; 43 | font-size: 1em !important; } 44 | .syntaxhighlighter .container:before, .syntaxhighlighter .container:after { 45 | content: none !important; } 46 | .syntaxhighlighter.source { 47 | overflow: hidden !important; } 48 | .syntaxhighlighter .bold { 49 | font-weight: bold !important; } 50 | .syntaxhighlighter .italic { 51 | font-style: italic !important; } 52 | .syntaxhighlighter .line { 53 | white-space: pre !important; } 54 | .syntaxhighlighter table { 55 | width: 100% !important; } 56 | .syntaxhighlighter table caption { 57 | text-align: left !important; 58 | padding: .5em 0 0.5em 1em !important; } 59 | .syntaxhighlighter table td.code { 60 | width: 100% !important; } 61 | .syntaxhighlighter table td.code .container { 62 | position: relative !important; } 63 | .syntaxhighlighter table td.code .container textarea { 64 | box-sizing: border-box !important; 65 | position: absolute !important; 66 | left: 0 !important; 67 | top: 0 !important; 68 | width: 100% !important; 69 | height: 100% !important; 70 | border: none !important; 71 | background: white !important; 72 | padding-left: 1em !important; 73 | overflow: hidden !important; 74 | white-space: pre !important; } 75 | .syntaxhighlighter table td.gutter .line { 76 | text-align: right !important; 77 | padding: 0 0.5em 0 1em !important; } 78 | .syntaxhighlighter table td.code .line { 79 | padding: 0 1em !important; } 80 | .syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line { 81 | padding-left: 0em !important; } 82 | .syntaxhighlighter.show { 83 | display: block !important; } 84 | .syntaxhighlighter.collapsed table { 85 | display: none !important; } 86 | .syntaxhighlighter.collapsed .toolbar { 87 | padding: 0.1em 0.8em 0em 0.8em !important; 88 | font-size: 1em !important; 89 | position: static !important; 90 | width: auto !important; 91 | height: auto !important; } 92 | .syntaxhighlighter.collapsed .toolbar span { 93 | display: inline !important; 94 | margin-right: 1em !important; } 95 | .syntaxhighlighter.collapsed .toolbar span a { 96 | padding: 0 !important; 97 | display: none !important; } 98 | .syntaxhighlighter.collapsed .toolbar span a.expandSource { 99 | display: inline !important; } 100 | .syntaxhighlighter .toolbar { 101 | position: absolute !important; 102 | right: 1px !important; 103 | top: 1px !important; 104 | width: 11px !important; 105 | height: 11px !important; 106 | font-size: 10px !important; 107 | z-index: 10 !important; } 108 | .syntaxhighlighter .toolbar span.title { 109 | display: inline !important; } 110 | .syntaxhighlighter .toolbar a { 111 | display: block !important; 112 | text-align: center !important; 113 | text-decoration: none !important; 114 | padding-top: 1px !important; } 115 | .syntaxhighlighter .toolbar a.expandSource { 116 | display: none !important; } 117 | .syntaxhighlighter.ie { 118 | font-size: .9em !important; 119 | padding: 1px 0 1px 0 !important; } 120 | .syntaxhighlighter.ie .toolbar { 121 | line-height: 8px !important; } 122 | .syntaxhighlighter.ie .toolbar a { 123 | padding-top: 0px !important; } 124 | .syntaxhighlighter.printing .line.alt1 .content, 125 | .syntaxhighlighter.printing .line.alt2 .content, 126 | .syntaxhighlighter.printing .line.highlighted .number, 127 | .syntaxhighlighter.printing .line.highlighted.alt1 .content, 128 | .syntaxhighlighter.printing .line.highlighted.alt2 .content { 129 | background: none !important; } 130 | .syntaxhighlighter.printing .line .number { 131 | color: #bbbbbb !important; } 132 | .syntaxhighlighter.printing .line .content { 133 | color: black !important; } 134 | .syntaxhighlighter.printing .toolbar { 135 | display: none !important; } 136 | .syntaxhighlighter.printing a { 137 | text-decoration: none !important; } 138 | .syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a { 139 | color: black !important; } 140 | .syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a { 141 | color: #008200 !important; } 142 | .syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a { 143 | color: blue !important; } 144 | .syntaxhighlighter.printing .keyword { 145 | color: #006699 !important; 146 | font-weight: bold !important; } 147 | .syntaxhighlighter.printing .preprocessor { 148 | color: gray !important; } 149 | .syntaxhighlighter.printing .variable { 150 | color: #aa7700 !important; } 151 | .syntaxhighlighter.printing .value { 152 | color: #009900 !important; } 153 | .syntaxhighlighter.printing .functions { 154 | color: #ff1493 !important; } 155 | .syntaxhighlighter.printing .constants { 156 | color: #0066cc !important; } 157 | .syntaxhighlighter.printing .script { 158 | font-weight: bold !important; } 159 | .syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a { 160 | color: gray !important; } 161 | .syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a { 162 | color: #ff1493 !important; } 163 | .syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a { 164 | color: red !important; } 165 | .syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a { 166 | color: black !important; } 167 | 168 | .syntaxhighlighter { 169 | background-color: #fff !important; } 170 | .syntaxhighlighter .line.alt1 { 171 | background-color: #fff !important; } 172 | .syntaxhighlighter .line.alt2 { 173 | background-color: #fff !important; } 174 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { 175 | background-color: #c3defe !important; } 176 | .syntaxhighlighter .line.highlighted.number { 177 | color: #fff !important; } 178 | .syntaxhighlighter table caption { 179 | color: black !important; } 180 | .syntaxhighlighter table td.code .container textarea { 181 | background: #fff; 182 | color: black; } 183 | .syntaxhighlighter .gutter { 184 | color: #787878 !important; } 185 | .syntaxhighlighter .gutter .line { 186 | border-right: 3px solid #d4d0c8 !important; } 187 | .syntaxhighlighter .gutter .line.highlighted { 188 | background-color: #d4d0c8 !important; 189 | color: #fff !important; } 190 | .syntaxhighlighter.printing .line .content { 191 | border: none !important; } 192 | .syntaxhighlighter.collapsed { 193 | overflow: visible !important; } 194 | .syntaxhighlighter.collapsed .toolbar { 195 | color: #3f5fbf !important; 196 | background: #fff !important; 197 | border: 1px solid #d4d0c8 !important; } 198 | .syntaxhighlighter.collapsed .toolbar a { 199 | color: #3f5fbf !important; } 200 | .syntaxhighlighter.collapsed .toolbar a:hover { 201 | color: #aa7700 !important; } 202 | .syntaxhighlighter .toolbar { 203 | color: #a0a0a0 !important; 204 | background: #d4d0c8 !important; 205 | border: none !important; } 206 | .syntaxhighlighter .toolbar a { 207 | color: #a0a0a0 !important; } 208 | .syntaxhighlighter .toolbar a:hover { 209 | color: red !important; } 210 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 211 | color: black !important; } 212 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 213 | color: #3f5fbf !important; } 214 | .syntaxhighlighter .string, .syntaxhighlighter .string a { 215 | color: #2a00ff !important; } 216 | .syntaxhighlighter .keyword { 217 | font-weight: bold !important; 218 | color: #7f0055 !important; } 219 | .syntaxhighlighter .preprocessor { 220 | color: #646464 !important; } 221 | .syntaxhighlighter .variable { 222 | color: #aa7700 !important; } 223 | .syntaxhighlighter .value { 224 | color: #009900 !important; } 225 | .syntaxhighlighter .functions { 226 | color: #ff1493 !important; } 227 | .syntaxhighlighter .constants { 228 | color: #0066cc !important; } 229 | .syntaxhighlighter .script { 230 | font-weight: bold !important; 231 | color: #7f0055 !important; 232 | background-color: none !important; } 233 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 234 | color: gray !important; } 235 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 236 | color: #ff1493 !important; } 237 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 238 | color: red !important; } 239 | 240 | .syntaxhighlighter .keyword { 241 | font-weight: bold !important; } 242 | 243 | .syntaxhighlighter .xml .keyword { 244 | color: #3f7f7f !important; 245 | font-weight: normal !important; } 246 | 247 | .syntaxhighlighter .xml .color1, .syntaxhighlighter .xml .color1 a { 248 | color: #7f007f !important; } 249 | 250 | .syntaxhighlighter .xml .string { 251 | font-style: italic !important; 252 | color: #2a00ff !important; } 253 | -------------------------------------------------------------------------------- /styles/shThemeEmacs.css: -------------------------------------------------------------------------------- 1 | .syntaxhighlighter a, 2 | .syntaxhighlighter div, 3 | .syntaxhighlighter code, 4 | .syntaxhighlighter table, 5 | .syntaxhighlighter table td, 6 | .syntaxhighlighter table tr, 7 | .syntaxhighlighter table tbody, 8 | .syntaxhighlighter table thead, 9 | .syntaxhighlighter table caption, 10 | .syntaxhighlighter textarea { 11 | -moz-border-radius: 0 0 0 0 !important; 12 | -webkit-border-radius: 0 0 0 0 !important; 13 | background: none !important; 14 | border: 0 !important; 15 | bottom: auto !important; 16 | float: none !important; 17 | height: auto !important; 18 | left: auto !important; 19 | line-height: 1.1em !important; 20 | margin: 0 !important; 21 | outline: 0 !important; 22 | overflow: visible !important; 23 | padding: 0 !important; 24 | position: static !important; 25 | right: auto !important; 26 | text-align: left !important; 27 | top: auto !important; 28 | vertical-align: baseline !important; 29 | width: auto !important; 30 | box-sizing: content-box !important; 31 | font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; 32 | font-weight: normal !important; 33 | font-style: normal !important; 34 | font-size: 1em !important; 35 | min-height: inherit !important; 36 | min-height: auto !important; } 37 | 38 | .syntaxhighlighter { 39 | width: 100% !important; 40 | margin: 1em 0 1em 0 !important; 41 | position: relative !important; 42 | overflow: auto !important; 43 | font-size: 1em !important; } 44 | .syntaxhighlighter .container:before, .syntaxhighlighter .container:after { 45 | content: none !important; } 46 | .syntaxhighlighter.source { 47 | overflow: hidden !important; } 48 | .syntaxhighlighter .bold { 49 | font-weight: bold !important; } 50 | .syntaxhighlighter .italic { 51 | font-style: italic !important; } 52 | .syntaxhighlighter .line { 53 | white-space: pre !important; } 54 | .syntaxhighlighter table { 55 | width: 100% !important; } 56 | .syntaxhighlighter table caption { 57 | text-align: left !important; 58 | padding: .5em 0 0.5em 1em !important; } 59 | .syntaxhighlighter table td.code { 60 | width: 100% !important; } 61 | .syntaxhighlighter table td.code .container { 62 | position: relative !important; } 63 | .syntaxhighlighter table td.code .container textarea { 64 | box-sizing: border-box !important; 65 | position: absolute !important; 66 | left: 0 !important; 67 | top: 0 !important; 68 | width: 100% !important; 69 | height: 100% !important; 70 | border: none !important; 71 | background: white !important; 72 | padding-left: 1em !important; 73 | overflow: hidden !important; 74 | white-space: pre !important; } 75 | .syntaxhighlighter table td.gutter .line { 76 | text-align: right !important; 77 | padding: 0 0.5em 0 1em !important; } 78 | .syntaxhighlighter table td.code .line { 79 | padding: 0 1em !important; } 80 | .syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line { 81 | padding-left: 0em !important; } 82 | .syntaxhighlighter.show { 83 | display: block !important; } 84 | .syntaxhighlighter.collapsed table { 85 | display: none !important; } 86 | .syntaxhighlighter.collapsed .toolbar { 87 | padding: 0.1em 0.8em 0em 0.8em !important; 88 | font-size: 1em !important; 89 | position: static !important; 90 | width: auto !important; 91 | height: auto !important; } 92 | .syntaxhighlighter.collapsed .toolbar span { 93 | display: inline !important; 94 | margin-right: 1em !important; } 95 | .syntaxhighlighter.collapsed .toolbar span a { 96 | padding: 0 !important; 97 | display: none !important; } 98 | .syntaxhighlighter.collapsed .toolbar span a.expandSource { 99 | display: inline !important; } 100 | .syntaxhighlighter .toolbar { 101 | position: absolute !important; 102 | right: 1px !important; 103 | top: 1px !important; 104 | width: 11px !important; 105 | height: 11px !important; 106 | font-size: 10px !important; 107 | z-index: 10 !important; } 108 | .syntaxhighlighter .toolbar span.title { 109 | display: inline !important; } 110 | .syntaxhighlighter .toolbar a { 111 | display: block !important; 112 | text-align: center !important; 113 | text-decoration: none !important; 114 | padding-top: 1px !important; } 115 | .syntaxhighlighter .toolbar a.expandSource { 116 | display: none !important; } 117 | .syntaxhighlighter.ie { 118 | font-size: .9em !important; 119 | padding: 1px 0 1px 0 !important; } 120 | .syntaxhighlighter.ie .toolbar { 121 | line-height: 8px !important; } 122 | .syntaxhighlighter.ie .toolbar a { 123 | padding-top: 0px !important; } 124 | .syntaxhighlighter.printing .line.alt1 .content, 125 | .syntaxhighlighter.printing .line.alt2 .content, 126 | .syntaxhighlighter.printing .line.highlighted .number, 127 | .syntaxhighlighter.printing .line.highlighted.alt1 .content, 128 | .syntaxhighlighter.printing .line.highlighted.alt2 .content { 129 | background: none !important; } 130 | .syntaxhighlighter.printing .line .number { 131 | color: #bbbbbb !important; } 132 | .syntaxhighlighter.printing .line .content { 133 | color: black !important; } 134 | .syntaxhighlighter.printing .toolbar { 135 | display: none !important; } 136 | .syntaxhighlighter.printing a { 137 | text-decoration: none !important; } 138 | .syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a { 139 | color: black !important; } 140 | .syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a { 141 | color: #008200 !important; } 142 | .syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a { 143 | color: blue !important; } 144 | .syntaxhighlighter.printing .keyword { 145 | color: #006699 !important; 146 | font-weight: bold !important; } 147 | .syntaxhighlighter.printing .preprocessor { 148 | color: gray !important; } 149 | .syntaxhighlighter.printing .variable { 150 | color: #aa7700 !important; } 151 | .syntaxhighlighter.printing .value { 152 | color: #009900 !important; } 153 | .syntaxhighlighter.printing .functions { 154 | color: #ff1493 !important; } 155 | .syntaxhighlighter.printing .constants { 156 | color: #0066cc !important; } 157 | .syntaxhighlighter.printing .script { 158 | font-weight: bold !important; } 159 | .syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a { 160 | color: gray !important; } 161 | .syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a { 162 | color: #ff1493 !important; } 163 | .syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a { 164 | color: red !important; } 165 | .syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a { 166 | color: black !important; } 167 | 168 | .syntaxhighlighter { 169 | background-color: black !important; } 170 | .syntaxhighlighter .line.alt1 { 171 | background-color: black !important; } 172 | .syntaxhighlighter .line.alt2 { 173 | background-color: black !important; } 174 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { 175 | background-color: #2A3133 !important; } 176 | .syntaxhighlighter .line.highlighted.number { 177 | color: white !important; } 178 | .syntaxhighlighter table caption { 179 | color: #d3d3d3 !important; } 180 | .syntaxhighlighter table td.code .container textarea { 181 | background: black; 182 | color: #d3d3d3; } 183 | .syntaxhighlighter .gutter { 184 | color: #d3d3d3 !important; } 185 | .syntaxhighlighter .gutter .line { 186 | border-right: 3px solid #990000 !important; } 187 | .syntaxhighlighter .gutter .line.highlighted { 188 | background-color: #990000 !important; 189 | color: black !important; } 190 | .syntaxhighlighter.printing .line .content { 191 | border: none !important; } 192 | .syntaxhighlighter.collapsed { 193 | overflow: visible !important; } 194 | .syntaxhighlighter.collapsed .toolbar { 195 | color: #ebdb8d !important; 196 | background: black !important; 197 | border: 1px solid #990000 !important; } 198 | .syntaxhighlighter.collapsed .toolbar a { 199 | color: #ebdb8d !important; } 200 | .syntaxhighlighter.collapsed .toolbar a:hover { 201 | color: #ff7d27 !important; } 202 | .syntaxhighlighter .toolbar { 203 | color: #fff !important; 204 | background: #990000 !important; 205 | border: none !important; } 206 | .syntaxhighlighter .toolbar a { 207 | color: #fff !important; } 208 | .syntaxhighlighter .toolbar a:hover { 209 | color: #9ccff4 !important; } 210 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 211 | color: #d3d3d3 !important; } 212 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 213 | color: #ff7d27 !important; } 214 | .syntaxhighlighter .string, .syntaxhighlighter .string a { 215 | color: #ff9e7b !important; } 216 | .syntaxhighlighter .keyword { 217 | font-weight: bold !important; 218 | color: aqua !important; } 219 | .syntaxhighlighter .preprocessor { 220 | color: #aec4de !important; } 221 | .syntaxhighlighter .variable { 222 | color: #ffaa3e !important; } 223 | .syntaxhighlighter .value { 224 | color: #009900 !important; } 225 | .syntaxhighlighter .functions { 226 | color: #81cef9 !important; } 227 | .syntaxhighlighter .constants { 228 | color: #ff9e7b !important; } 229 | .syntaxhighlighter .script { 230 | font-weight: bold !important; 231 | color: aqua !important; 232 | background-color: none !important; } 233 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 234 | color: #ebdb8d !important; } 235 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 236 | color: #ff7d27 !important; } 237 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 238 | color: #aec4de !important; } 239 | -------------------------------------------------------------------------------- /styles/shThemeFadeToGrey.css: -------------------------------------------------------------------------------- 1 | .syntaxhighlighter a, 2 | .syntaxhighlighter div, 3 | .syntaxhighlighter code, 4 | .syntaxhighlighter table, 5 | .syntaxhighlighter table td, 6 | .syntaxhighlighter table tr, 7 | .syntaxhighlighter table tbody, 8 | .syntaxhighlighter table thead, 9 | .syntaxhighlighter table caption, 10 | .syntaxhighlighter textarea { 11 | -moz-border-radius: 0 0 0 0 !important; 12 | -webkit-border-radius: 0 0 0 0 !important; 13 | background: none !important; 14 | border: 0 !important; 15 | bottom: auto !important; 16 | float: none !important; 17 | height: auto !important; 18 | left: auto !important; 19 | line-height: 1.1em !important; 20 | margin: 0 !important; 21 | outline: 0 !important; 22 | overflow: visible !important; 23 | padding: 0 !important; 24 | position: static !important; 25 | right: auto !important; 26 | text-align: left !important; 27 | top: auto !important; 28 | vertical-align: baseline !important; 29 | width: auto !important; 30 | box-sizing: content-box !important; 31 | font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; 32 | font-weight: normal !important; 33 | font-style: normal !important; 34 | font-size: 1em !important; 35 | min-height: inherit !important; 36 | min-height: auto !important; } 37 | 38 | .syntaxhighlighter { 39 | width: 100% !important; 40 | margin: 1em 0 1em 0 !important; 41 | position: relative !important; 42 | overflow: auto !important; 43 | font-size: 1em !important; } 44 | .syntaxhighlighter .container:before, .syntaxhighlighter .container:after { 45 | content: none !important; } 46 | .syntaxhighlighter.source { 47 | overflow: hidden !important; } 48 | .syntaxhighlighter .bold { 49 | font-weight: bold !important; } 50 | .syntaxhighlighter .italic { 51 | font-style: italic !important; } 52 | .syntaxhighlighter .line { 53 | white-space: pre !important; } 54 | .syntaxhighlighter table { 55 | width: 100% !important; } 56 | .syntaxhighlighter table caption { 57 | text-align: left !important; 58 | padding: .5em 0 0.5em 1em !important; } 59 | .syntaxhighlighter table td.code { 60 | width: 100% !important; } 61 | .syntaxhighlighter table td.code .container { 62 | position: relative !important; } 63 | .syntaxhighlighter table td.code .container textarea { 64 | box-sizing: border-box !important; 65 | position: absolute !important; 66 | left: 0 !important; 67 | top: 0 !important; 68 | width: 100% !important; 69 | height: 100% !important; 70 | border: none !important; 71 | background: white !important; 72 | padding-left: 1em !important; 73 | overflow: hidden !important; 74 | white-space: pre !important; } 75 | .syntaxhighlighter table td.gutter .line { 76 | text-align: right !important; 77 | padding: 0 0.5em 0 1em !important; } 78 | .syntaxhighlighter table td.code .line { 79 | padding: 0 1em !important; } 80 | .syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line { 81 | padding-left: 0em !important; } 82 | .syntaxhighlighter.show { 83 | display: block !important; } 84 | .syntaxhighlighter.collapsed table { 85 | display: none !important; } 86 | .syntaxhighlighter.collapsed .toolbar { 87 | padding: 0.1em 0.8em 0em 0.8em !important; 88 | font-size: 1em !important; 89 | position: static !important; 90 | width: auto !important; 91 | height: auto !important; } 92 | .syntaxhighlighter.collapsed .toolbar span { 93 | display: inline !important; 94 | margin-right: 1em !important; } 95 | .syntaxhighlighter.collapsed .toolbar span a { 96 | padding: 0 !important; 97 | display: none !important; } 98 | .syntaxhighlighter.collapsed .toolbar span a.expandSource { 99 | display: inline !important; } 100 | .syntaxhighlighter .toolbar { 101 | position: absolute !important; 102 | right: 1px !important; 103 | top: 1px !important; 104 | width: 11px !important; 105 | height: 11px !important; 106 | font-size: 10px !important; 107 | z-index: 10 !important; } 108 | .syntaxhighlighter .toolbar span.title { 109 | display: inline !important; } 110 | .syntaxhighlighter .toolbar a { 111 | display: block !important; 112 | text-align: center !important; 113 | text-decoration: none !important; 114 | padding-top: 1px !important; } 115 | .syntaxhighlighter .toolbar a.expandSource { 116 | display: none !important; } 117 | .syntaxhighlighter.ie { 118 | font-size: .9em !important; 119 | padding: 1px 0 1px 0 !important; } 120 | .syntaxhighlighter.ie .toolbar { 121 | line-height: 8px !important; } 122 | .syntaxhighlighter.ie .toolbar a { 123 | padding-top: 0px !important; } 124 | .syntaxhighlighter.printing .line.alt1 .content, 125 | .syntaxhighlighter.printing .line.alt2 .content, 126 | .syntaxhighlighter.printing .line.highlighted .number, 127 | .syntaxhighlighter.printing .line.highlighted.alt1 .content, 128 | .syntaxhighlighter.printing .line.highlighted.alt2 .content { 129 | background: none !important; } 130 | .syntaxhighlighter.printing .line .number { 131 | color: #bbbbbb !important; } 132 | .syntaxhighlighter.printing .line .content { 133 | color: black !important; } 134 | .syntaxhighlighter.printing .toolbar { 135 | display: none !important; } 136 | .syntaxhighlighter.printing a { 137 | text-decoration: none !important; } 138 | .syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a { 139 | color: black !important; } 140 | .syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a { 141 | color: #008200 !important; } 142 | .syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a { 143 | color: blue !important; } 144 | .syntaxhighlighter.printing .keyword { 145 | color: #006699 !important; 146 | font-weight: bold !important; } 147 | .syntaxhighlighter.printing .preprocessor { 148 | color: gray !important; } 149 | .syntaxhighlighter.printing .variable { 150 | color: #aa7700 !important; } 151 | .syntaxhighlighter.printing .value { 152 | color: #009900 !important; } 153 | .syntaxhighlighter.printing .functions { 154 | color: #ff1493 !important; } 155 | .syntaxhighlighter.printing .constants { 156 | color: #0066cc !important; } 157 | .syntaxhighlighter.printing .script { 158 | font-weight: bold !important; } 159 | .syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a { 160 | color: gray !important; } 161 | .syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a { 162 | color: #ff1493 !important; } 163 | .syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a { 164 | color: red !important; } 165 | .syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a { 166 | color: black !important; } 167 | 168 | .syntaxhighlighter { 169 | background-color: #121212 !important; } 170 | .syntaxhighlighter .line.alt1 { 171 | background-color: #121212 !important; } 172 | .syntaxhighlighter .line.alt2 { 173 | background-color: #121212 !important; } 174 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { 175 | background-color: #2C2C29 !important; } 176 | .syntaxhighlighter .line.highlighted.number { 177 | color: white !important; } 178 | .syntaxhighlighter table caption { 179 | color: white !important; } 180 | .syntaxhighlighter table td.code .container textarea { 181 | background: #121212; 182 | color: white; } 183 | .syntaxhighlighter .gutter { 184 | color: #afafaf !important; } 185 | .syntaxhighlighter .gutter .line { 186 | border-right: 3px solid #3185b9 !important; } 187 | .syntaxhighlighter .gutter .line.highlighted { 188 | background-color: #3185b9 !important; 189 | color: #121212 !important; } 190 | .syntaxhighlighter.printing .line .content { 191 | border: none !important; } 192 | .syntaxhighlighter.collapsed { 193 | overflow: visible !important; } 194 | .syntaxhighlighter.collapsed .toolbar { 195 | color: #3185b9 !important; 196 | background: black !important; 197 | border: 1px solid #3185b9 !important; } 198 | .syntaxhighlighter.collapsed .toolbar a { 199 | color: #3185b9 !important; } 200 | .syntaxhighlighter.collapsed .toolbar a:hover { 201 | color: #d01d33 !important; } 202 | .syntaxhighlighter .toolbar { 203 | color: #fff !important; 204 | background: #3185b9 !important; 205 | border: none !important; } 206 | .syntaxhighlighter .toolbar a { 207 | color: #fff !important; } 208 | .syntaxhighlighter .toolbar a:hover { 209 | color: #96daff !important; } 210 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 211 | color: white !important; } 212 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 213 | color: #696854 !important; } 214 | .syntaxhighlighter .string, .syntaxhighlighter .string a { 215 | color: #e3e658 !important; } 216 | .syntaxhighlighter .keyword { 217 | font-weight: bold !important; 218 | color: #d01d33 !important; } 219 | .syntaxhighlighter .preprocessor { 220 | color: #435a5f !important; } 221 | .syntaxhighlighter .variable { 222 | color: #898989 !important; } 223 | .syntaxhighlighter .value { 224 | color: #009900 !important; } 225 | .syntaxhighlighter .functions { 226 | color: #aaaaaa !important; } 227 | .syntaxhighlighter .constants { 228 | color: #96daff !important; } 229 | .syntaxhighlighter .script { 230 | font-weight: bold !important; 231 | color: #d01d33 !important; 232 | background-color: none !important; } 233 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 234 | color: #ffc074 !important; } 235 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 236 | color: #4a8cdb !important; } 237 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 238 | color: #96daff !important; } 239 | 240 | .syntaxhighlighter .functions { 241 | font-weight: bold !important; } 242 | -------------------------------------------------------------------------------- /styles/shThemeMDUltra.css: -------------------------------------------------------------------------------- 1 | .syntaxhighlighter a, 2 | .syntaxhighlighter div, 3 | .syntaxhighlighter code, 4 | .syntaxhighlighter table, 5 | .syntaxhighlighter table td, 6 | .syntaxhighlighter table tr, 7 | .syntaxhighlighter table tbody, 8 | .syntaxhighlighter table thead, 9 | .syntaxhighlighter table caption, 10 | .syntaxhighlighter textarea { 11 | -moz-border-radius: 0 0 0 0 !important; 12 | -webkit-border-radius: 0 0 0 0 !important; 13 | background: none !important; 14 | border: 0 !important; 15 | bottom: auto !important; 16 | float: none !important; 17 | height: auto !important; 18 | left: auto !important; 19 | line-height: 1.1em !important; 20 | margin: 0 !important; 21 | outline: 0 !important; 22 | overflow: visible !important; 23 | padding: 0 !important; 24 | position: static !important; 25 | right: auto !important; 26 | text-align: left !important; 27 | top: auto !important; 28 | vertical-align: baseline !important; 29 | width: auto !important; 30 | box-sizing: content-box !important; 31 | font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; 32 | font-weight: normal !important; 33 | font-style: normal !important; 34 | font-size: 1em !important; 35 | min-height: inherit !important; 36 | min-height: auto !important; } 37 | 38 | .syntaxhighlighter { 39 | width: 100% !important; 40 | margin: 1em 0 1em 0 !important; 41 | position: relative !important; 42 | overflow: auto !important; 43 | font-size: 1em !important; } 44 | .syntaxhighlighter .container:before, .syntaxhighlighter .container:after { 45 | content: none !important; } 46 | .syntaxhighlighter.source { 47 | overflow: hidden !important; } 48 | .syntaxhighlighter .bold { 49 | font-weight: bold !important; } 50 | .syntaxhighlighter .italic { 51 | font-style: italic !important; } 52 | .syntaxhighlighter .line { 53 | white-space: pre !important; } 54 | .syntaxhighlighter table { 55 | width: 100% !important; } 56 | .syntaxhighlighter table caption { 57 | text-align: left !important; 58 | padding: .5em 0 0.5em 1em !important; } 59 | .syntaxhighlighter table td.code { 60 | width: 100% !important; } 61 | .syntaxhighlighter table td.code .container { 62 | position: relative !important; } 63 | .syntaxhighlighter table td.code .container textarea { 64 | box-sizing: border-box !important; 65 | position: absolute !important; 66 | left: 0 !important; 67 | top: 0 !important; 68 | width: 100% !important; 69 | height: 100% !important; 70 | border: none !important; 71 | background: white !important; 72 | padding-left: 1em !important; 73 | overflow: hidden !important; 74 | white-space: pre !important; } 75 | .syntaxhighlighter table td.gutter .line { 76 | text-align: right !important; 77 | padding: 0 0.5em 0 1em !important; } 78 | .syntaxhighlighter table td.code .line { 79 | padding: 0 1em !important; } 80 | .syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line { 81 | padding-left: 0em !important; } 82 | .syntaxhighlighter.show { 83 | display: block !important; } 84 | .syntaxhighlighter.collapsed table { 85 | display: none !important; } 86 | .syntaxhighlighter.collapsed .toolbar { 87 | padding: 0.1em 0.8em 0em 0.8em !important; 88 | font-size: 1em !important; 89 | position: static !important; 90 | width: auto !important; 91 | height: auto !important; } 92 | .syntaxhighlighter.collapsed .toolbar span { 93 | display: inline !important; 94 | margin-right: 1em !important; } 95 | .syntaxhighlighter.collapsed .toolbar span a { 96 | padding: 0 !important; 97 | display: none !important; } 98 | .syntaxhighlighter.collapsed .toolbar span a.expandSource { 99 | display: inline !important; } 100 | .syntaxhighlighter .toolbar { 101 | position: absolute !important; 102 | right: 1px !important; 103 | top: 1px !important; 104 | width: 11px !important; 105 | height: 11px !important; 106 | font-size: 10px !important; 107 | z-index: 10 !important; } 108 | .syntaxhighlighter .toolbar span.title { 109 | display: inline !important; } 110 | .syntaxhighlighter .toolbar a { 111 | display: block !important; 112 | text-align: center !important; 113 | text-decoration: none !important; 114 | padding-top: 1px !important; } 115 | .syntaxhighlighter .toolbar a.expandSource { 116 | display: none !important; } 117 | .syntaxhighlighter.ie { 118 | font-size: .9em !important; 119 | padding: 1px 0 1px 0 !important; } 120 | .syntaxhighlighter.ie .toolbar { 121 | line-height: 8px !important; } 122 | .syntaxhighlighter.ie .toolbar a { 123 | padding-top: 0px !important; } 124 | .syntaxhighlighter.printing .line.alt1 .content, 125 | .syntaxhighlighter.printing .line.alt2 .content, 126 | .syntaxhighlighter.printing .line.highlighted .number, 127 | .syntaxhighlighter.printing .line.highlighted.alt1 .content, 128 | .syntaxhighlighter.printing .line.highlighted.alt2 .content { 129 | background: none !important; } 130 | .syntaxhighlighter.printing .line .number { 131 | color: #bbbbbb !important; } 132 | .syntaxhighlighter.printing .line .content { 133 | color: black !important; } 134 | .syntaxhighlighter.printing .toolbar { 135 | display: none !important; } 136 | .syntaxhighlighter.printing a { 137 | text-decoration: none !important; } 138 | .syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a { 139 | color: black !important; } 140 | .syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a { 141 | color: #008200 !important; } 142 | .syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a { 143 | color: blue !important; } 144 | .syntaxhighlighter.printing .keyword { 145 | color: #006699 !important; 146 | font-weight: bold !important; } 147 | .syntaxhighlighter.printing .preprocessor { 148 | color: gray !important; } 149 | .syntaxhighlighter.printing .variable { 150 | color: #aa7700 !important; } 151 | .syntaxhighlighter.printing .value { 152 | color: #009900 !important; } 153 | .syntaxhighlighter.printing .functions { 154 | color: #ff1493 !important; } 155 | .syntaxhighlighter.printing .constants { 156 | color: #0066cc !important; } 157 | .syntaxhighlighter.printing .script { 158 | font-weight: bold !important; } 159 | .syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a { 160 | color: gray !important; } 161 | .syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a { 162 | color: #ff1493 !important; } 163 | .syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a { 164 | color: red !important; } 165 | .syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a { 166 | color: black !important; } 167 | 168 | .syntaxhighlighter { 169 | background-color: #222222 !important; } 170 | .syntaxhighlighter .line.alt1 { 171 | background-color: #222222 !important; } 172 | .syntaxhighlighter .line.alt2 { 173 | background-color: #222222 !important; } 174 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { 175 | background-color: #253e5a !important; } 176 | .syntaxhighlighter .line.highlighted.number { 177 | color: white !important; } 178 | .syntaxhighlighter table caption { 179 | color: lime !important; } 180 | .syntaxhighlighter table td.code .container textarea { 181 | background: #222222; 182 | color: lime; } 183 | .syntaxhighlighter .gutter { 184 | color: #38566f !important; } 185 | .syntaxhighlighter .gutter .line { 186 | border-right: 3px solid #435a5f !important; } 187 | .syntaxhighlighter .gutter .line.highlighted { 188 | background-color: #435a5f !important; 189 | color: #222222 !important; } 190 | .syntaxhighlighter.printing .line .content { 191 | border: none !important; } 192 | .syntaxhighlighter.collapsed { 193 | overflow: visible !important; } 194 | .syntaxhighlighter.collapsed .toolbar { 195 | color: #428bdd !important; 196 | background: black !important; 197 | border: 1px solid #435a5f !important; } 198 | .syntaxhighlighter.collapsed .toolbar a { 199 | color: #428bdd !important; } 200 | .syntaxhighlighter.collapsed .toolbar a:hover { 201 | color: lime !important; } 202 | .syntaxhighlighter .toolbar { 203 | color: #aaaaff !important; 204 | background: #435a5f !important; 205 | border: none !important; } 206 | .syntaxhighlighter .toolbar a { 207 | color: #aaaaff !important; } 208 | .syntaxhighlighter .toolbar a:hover { 209 | color: #9ccff4 !important; } 210 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 211 | color: lime !important; } 212 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 213 | color: #428bdd !important; } 214 | .syntaxhighlighter .string, .syntaxhighlighter .string a { 215 | color: lime !important; } 216 | .syntaxhighlighter .keyword { 217 | font-weight: bold !important; 218 | color: #aaaaff !important; } 219 | .syntaxhighlighter .preprocessor { 220 | color: #8aa6c1 !important; } 221 | .syntaxhighlighter .variable { 222 | color: aqua !important; } 223 | .syntaxhighlighter .value { 224 | color: #f7e741 !important; } 225 | .syntaxhighlighter .functions { 226 | color: #ff8000 !important; } 227 | .syntaxhighlighter .constants { 228 | color: yellow !important; } 229 | .syntaxhighlighter .script { 230 | font-weight: bold !important; 231 | color: #aaaaff !important; 232 | background-color: none !important; } 233 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 234 | color: red !important; } 235 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 236 | color: yellow !important; } 237 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 238 | color: #ffaa3e !important; } 239 | -------------------------------------------------------------------------------- /styles/shThemeMidnight.css: -------------------------------------------------------------------------------- 1 | .syntaxhighlighter a, 2 | .syntaxhighlighter div, 3 | .syntaxhighlighter code, 4 | .syntaxhighlighter table, 5 | .syntaxhighlighter table td, 6 | .syntaxhighlighter table tr, 7 | .syntaxhighlighter table tbody, 8 | .syntaxhighlighter table thead, 9 | .syntaxhighlighter table caption, 10 | .syntaxhighlighter textarea { 11 | -moz-border-radius: 0 0 0 0 !important; 12 | -webkit-border-radius: 0 0 0 0 !important; 13 | background: none !important; 14 | border: 0 !important; 15 | bottom: auto !important; 16 | float: none !important; 17 | height: auto !important; 18 | left: auto !important; 19 | line-height: 1.1em !important; 20 | margin: 0 !important; 21 | outline: 0 !important; 22 | overflow: visible !important; 23 | padding: 0 !important; 24 | position: static !important; 25 | right: auto !important; 26 | text-align: left !important; 27 | top: auto !important; 28 | vertical-align: baseline !important; 29 | width: auto !important; 30 | box-sizing: content-box !important; 31 | font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; 32 | font-weight: normal !important; 33 | font-style: normal !important; 34 | font-size: 1em !important; 35 | min-height: inherit !important; 36 | min-height: auto !important; } 37 | 38 | .syntaxhighlighter { 39 | width: 100% !important; 40 | margin: 1em 0 1em 0 !important; 41 | position: relative !important; 42 | overflow: auto !important; 43 | font-size: 1em !important; } 44 | .syntaxhighlighter .container:before, .syntaxhighlighter .container:after { 45 | content: none !important; } 46 | .syntaxhighlighter.source { 47 | overflow: hidden !important; } 48 | .syntaxhighlighter .bold { 49 | font-weight: bold !important; } 50 | .syntaxhighlighter .italic { 51 | font-style: italic !important; } 52 | .syntaxhighlighter .line { 53 | white-space: pre !important; } 54 | .syntaxhighlighter table { 55 | width: 100% !important; } 56 | .syntaxhighlighter table caption { 57 | text-align: left !important; 58 | padding: .5em 0 0.5em 1em !important; } 59 | .syntaxhighlighter table td.code { 60 | width: 100% !important; } 61 | .syntaxhighlighter table td.code .container { 62 | position: relative !important; } 63 | .syntaxhighlighter table td.code .container textarea { 64 | box-sizing: border-box !important; 65 | position: absolute !important; 66 | left: 0 !important; 67 | top: 0 !important; 68 | width: 100% !important; 69 | height: 100% !important; 70 | border: none !important; 71 | background: white !important; 72 | padding-left: 1em !important; 73 | overflow: hidden !important; 74 | white-space: pre !important; } 75 | .syntaxhighlighter table td.gutter .line { 76 | text-align: right !important; 77 | padding: 0 0.5em 0 1em !important; } 78 | .syntaxhighlighter table td.code .line { 79 | padding: 0 1em !important; } 80 | .syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line { 81 | padding-left: 0em !important; } 82 | .syntaxhighlighter.show { 83 | display: block !important; } 84 | .syntaxhighlighter.collapsed table { 85 | display: none !important; } 86 | .syntaxhighlighter.collapsed .toolbar { 87 | padding: 0.1em 0.8em 0em 0.8em !important; 88 | font-size: 1em !important; 89 | position: static !important; 90 | width: auto !important; 91 | height: auto !important; } 92 | .syntaxhighlighter.collapsed .toolbar span { 93 | display: inline !important; 94 | margin-right: 1em !important; } 95 | .syntaxhighlighter.collapsed .toolbar span a { 96 | padding: 0 !important; 97 | display: none !important; } 98 | .syntaxhighlighter.collapsed .toolbar span a.expandSource { 99 | display: inline !important; } 100 | .syntaxhighlighter .toolbar { 101 | position: absolute !important; 102 | right: 1px !important; 103 | top: 1px !important; 104 | width: 11px !important; 105 | height: 11px !important; 106 | font-size: 10px !important; 107 | z-index: 10 !important; } 108 | .syntaxhighlighter .toolbar span.title { 109 | display: inline !important; } 110 | .syntaxhighlighter .toolbar a { 111 | display: block !important; 112 | text-align: center !important; 113 | text-decoration: none !important; 114 | padding-top: 1px !important; } 115 | .syntaxhighlighter .toolbar a.expandSource { 116 | display: none !important; } 117 | .syntaxhighlighter.ie { 118 | font-size: .9em !important; 119 | padding: 1px 0 1px 0 !important; } 120 | .syntaxhighlighter.ie .toolbar { 121 | line-height: 8px !important; } 122 | .syntaxhighlighter.ie .toolbar a { 123 | padding-top: 0px !important; } 124 | .syntaxhighlighter.printing .line.alt1 .content, 125 | .syntaxhighlighter.printing .line.alt2 .content, 126 | .syntaxhighlighter.printing .line.highlighted .number, 127 | .syntaxhighlighter.printing .line.highlighted.alt1 .content, 128 | .syntaxhighlighter.printing .line.highlighted.alt2 .content { 129 | background: none !important; } 130 | .syntaxhighlighter.printing .line .number { 131 | color: #bbbbbb !important; } 132 | .syntaxhighlighter.printing .line .content { 133 | color: black !important; } 134 | .syntaxhighlighter.printing .toolbar { 135 | display: none !important; } 136 | .syntaxhighlighter.printing a { 137 | text-decoration: none !important; } 138 | .syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a { 139 | color: black !important; } 140 | .syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a { 141 | color: #008200 !important; } 142 | .syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a { 143 | color: blue !important; } 144 | .syntaxhighlighter.printing .keyword { 145 | color: #006699 !important; 146 | font-weight: bold !important; } 147 | .syntaxhighlighter.printing .preprocessor { 148 | color: gray !important; } 149 | .syntaxhighlighter.printing .variable { 150 | color: #aa7700 !important; } 151 | .syntaxhighlighter.printing .value { 152 | color: #009900 !important; } 153 | .syntaxhighlighter.printing .functions { 154 | color: #ff1493 !important; } 155 | .syntaxhighlighter.printing .constants { 156 | color: #0066cc !important; } 157 | .syntaxhighlighter.printing .script { 158 | font-weight: bold !important; } 159 | .syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a { 160 | color: gray !important; } 161 | .syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a { 162 | color: #ff1493 !important; } 163 | .syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a { 164 | color: red !important; } 165 | .syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a { 166 | color: black !important; } 167 | 168 | .syntaxhighlighter { 169 | background-color: #0f192a !important; } 170 | .syntaxhighlighter .line.alt1 { 171 | background-color: #0f192a !important; } 172 | .syntaxhighlighter .line.alt2 { 173 | background-color: #0f192a !important; } 174 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { 175 | background-color: #253e5a !important; } 176 | .syntaxhighlighter .line.highlighted.number { 177 | color: #38566f !important; } 178 | .syntaxhighlighter table caption { 179 | color: #d1edff !important; } 180 | .syntaxhighlighter table td.code .container textarea { 181 | background: #0f192a; 182 | color: #d1edff; } 183 | .syntaxhighlighter .gutter { 184 | color: #afafaf !important; } 185 | .syntaxhighlighter .gutter .line { 186 | border-right: 3px solid #435a5f !important; } 187 | .syntaxhighlighter .gutter .line.highlighted { 188 | background-color: #435a5f !important; 189 | color: #0f192a !important; } 190 | .syntaxhighlighter.printing .line .content { 191 | border: none !important; } 192 | .syntaxhighlighter.collapsed { 193 | overflow: visible !important; } 194 | .syntaxhighlighter.collapsed .toolbar { 195 | color: #428bdd !important; 196 | background: #000 !important; 197 | border: 1px solid #435a5f !important; } 198 | .syntaxhighlighter.collapsed .toolbar a { 199 | color: #428bdd !important; } 200 | .syntaxhighlighter.collapsed .toolbar a:hover { 201 | color: #1dc116 !important; } 202 | .syntaxhighlighter .toolbar { 203 | color: #D1EDFF !important; 204 | background: #435a5f !important; 205 | border: none !important; } 206 | .syntaxhighlighter .toolbar a { 207 | color: #D1EDFF !important; } 208 | .syntaxhighlighter .toolbar a:hover { 209 | color: #8aa6c1 !important; } 210 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 211 | color: #d1edff !important; } 212 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 213 | color: #428bdd !important; } 214 | .syntaxhighlighter .string, .syntaxhighlighter .string a { 215 | color: #1dc116 !important; } 216 | .syntaxhighlighter .keyword { 217 | font-weight: bold !important; 218 | color: #b43d3d !important; } 219 | .syntaxhighlighter .preprocessor { 220 | color: #8aa6c1 !important; } 221 | .syntaxhighlighter .variable { 222 | color: #ffaa3e !important; } 223 | .syntaxhighlighter .value { 224 | color: #f7e741 !important; } 225 | .syntaxhighlighter .functions { 226 | color: #ffaa3e !important; } 227 | .syntaxhighlighter .constants { 228 | color: #e0e8ff !important; } 229 | .syntaxhighlighter .script { 230 | font-weight: bold !important; 231 | color: #b43d3d !important; 232 | background-color: none !important; } 233 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 234 | color: #f8bb00 !important; } 235 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 236 | color: white !important; } 237 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 238 | color: #ffaa3e !important; } 239 | -------------------------------------------------------------------------------- /styles/shThemeRDark.css: -------------------------------------------------------------------------------- 1 | .syntaxhighlighter a, 2 | .syntaxhighlighter div, 3 | .syntaxhighlighter code, 4 | .syntaxhighlighter table, 5 | .syntaxhighlighter table td, 6 | .syntaxhighlighter table tr, 7 | .syntaxhighlighter table tbody, 8 | .syntaxhighlighter table thead, 9 | .syntaxhighlighter table caption, 10 | .syntaxhighlighter textarea { 11 | -moz-border-radius: 0 0 0 0 !important; 12 | -webkit-border-radius: 0 0 0 0 !important; 13 | background: none !important; 14 | border: 0 !important; 15 | bottom: auto !important; 16 | float: none !important; 17 | height: auto !important; 18 | left: auto !important; 19 | line-height: 1.1em !important; 20 | margin: 0 !important; 21 | outline: 0 !important; 22 | overflow: visible !important; 23 | padding: 0 !important; 24 | position: static !important; 25 | right: auto !important; 26 | text-align: left !important; 27 | top: auto !important; 28 | vertical-align: baseline !important; 29 | width: auto !important; 30 | box-sizing: content-box !important; 31 | font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; 32 | font-weight: normal !important; 33 | font-style: normal !important; 34 | font-size: 1em !important; 35 | min-height: inherit !important; 36 | min-height: auto !important; } 37 | 38 | .syntaxhighlighter { 39 | width: 100% !important; 40 | margin: 1em 0 1em 0 !important; 41 | position: relative !important; 42 | overflow: auto !important; 43 | font-size: 1em !important; } 44 | .syntaxhighlighter .container:before, .syntaxhighlighter .container:after { 45 | content: none !important; } 46 | .syntaxhighlighter.source { 47 | overflow: hidden !important; } 48 | .syntaxhighlighter .bold { 49 | font-weight: bold !important; } 50 | .syntaxhighlighter .italic { 51 | font-style: italic !important; } 52 | .syntaxhighlighter .line { 53 | white-space: pre !important; } 54 | .syntaxhighlighter table { 55 | width: 100% !important; } 56 | .syntaxhighlighter table caption { 57 | text-align: left !important; 58 | padding: .5em 0 0.5em 1em !important; } 59 | .syntaxhighlighter table td.code { 60 | width: 100% !important; } 61 | .syntaxhighlighter table td.code .container { 62 | position: relative !important; } 63 | .syntaxhighlighter table td.code .container textarea { 64 | box-sizing: border-box !important; 65 | position: absolute !important; 66 | left: 0 !important; 67 | top: 0 !important; 68 | width: 100% !important; 69 | height: 100% !important; 70 | border: none !important; 71 | background: white !important; 72 | padding-left: 1em !important; 73 | overflow: hidden !important; 74 | white-space: pre !important; } 75 | .syntaxhighlighter table td.gutter .line { 76 | text-align: right !important; 77 | padding: 0 0.5em 0 1em !important; } 78 | .syntaxhighlighter table td.code .line { 79 | padding: 0 1em !important; } 80 | .syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line { 81 | padding-left: 0em !important; } 82 | .syntaxhighlighter.show { 83 | display: block !important; } 84 | .syntaxhighlighter.collapsed table { 85 | display: none !important; } 86 | .syntaxhighlighter.collapsed .toolbar { 87 | padding: 0.1em 0.8em 0em 0.8em !important; 88 | font-size: 1em !important; 89 | position: static !important; 90 | width: auto !important; 91 | height: auto !important; } 92 | .syntaxhighlighter.collapsed .toolbar span { 93 | display: inline !important; 94 | margin-right: 1em !important; } 95 | .syntaxhighlighter.collapsed .toolbar span a { 96 | padding: 0 !important; 97 | display: none !important; } 98 | .syntaxhighlighter.collapsed .toolbar span a.expandSource { 99 | display: inline !important; } 100 | .syntaxhighlighter .toolbar { 101 | position: absolute !important; 102 | right: 1px !important; 103 | top: 1px !important; 104 | width: 11px !important; 105 | height: 11px !important; 106 | font-size: 10px !important; 107 | z-index: 10 !important; } 108 | .syntaxhighlighter .toolbar span.title { 109 | display: inline !important; } 110 | .syntaxhighlighter .toolbar a { 111 | display: block !important; 112 | text-align: center !important; 113 | text-decoration: none !important; 114 | padding-top: 1px !important; } 115 | .syntaxhighlighter .toolbar a.expandSource { 116 | display: none !important; } 117 | .syntaxhighlighter.ie { 118 | font-size: .9em !important; 119 | padding: 1px 0 1px 0 !important; } 120 | .syntaxhighlighter.ie .toolbar { 121 | line-height: 8px !important; } 122 | .syntaxhighlighter.ie .toolbar a { 123 | padding-top: 0px !important; } 124 | .syntaxhighlighter.printing .line.alt1 .content, 125 | .syntaxhighlighter.printing .line.alt2 .content, 126 | .syntaxhighlighter.printing .line.highlighted .number, 127 | .syntaxhighlighter.printing .line.highlighted.alt1 .content, 128 | .syntaxhighlighter.printing .line.highlighted.alt2 .content { 129 | background: none !important; } 130 | .syntaxhighlighter.printing .line .number { 131 | color: #bbbbbb !important; } 132 | .syntaxhighlighter.printing .line .content { 133 | color: black !important; } 134 | .syntaxhighlighter.printing .toolbar { 135 | display: none !important; } 136 | .syntaxhighlighter.printing a { 137 | text-decoration: none !important; } 138 | .syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a { 139 | color: black !important; } 140 | .syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a { 141 | color: #008200 !important; } 142 | .syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a { 143 | color: blue !important; } 144 | .syntaxhighlighter.printing .keyword { 145 | color: #006699 !important; 146 | font-weight: bold !important; } 147 | .syntaxhighlighter.printing .preprocessor { 148 | color: gray !important; } 149 | .syntaxhighlighter.printing .variable { 150 | color: #aa7700 !important; } 151 | .syntaxhighlighter.printing .value { 152 | color: #009900 !important; } 153 | .syntaxhighlighter.printing .functions { 154 | color: #ff1493 !important; } 155 | .syntaxhighlighter.printing .constants { 156 | color: #0066cc !important; } 157 | .syntaxhighlighter.printing .script { 158 | font-weight: bold !important; } 159 | .syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a { 160 | color: gray !important; } 161 | .syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a { 162 | color: #ff1493 !important; } 163 | .syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a { 164 | color: red !important; } 165 | .syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a { 166 | color: black !important; } 167 | 168 | .syntaxhighlighter { 169 | background-color: #1b2426 !important; } 170 | .syntaxhighlighter .line.alt1 { 171 | background-color: #1b2426 !important; } 172 | .syntaxhighlighter .line.alt2 { 173 | background-color: #1b2426 !important; } 174 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { 175 | background-color: #323E41 !important; } 176 | .syntaxhighlighter .line.highlighted.number { 177 | color: #b9bdb6 !important; } 178 | .syntaxhighlighter table caption { 179 | color: #b9bdb6 !important; } 180 | .syntaxhighlighter table td.code .container textarea { 181 | background: #1b2426; 182 | color: #b9bdb6; } 183 | .syntaxhighlighter .gutter { 184 | color: #afafaf !important; } 185 | .syntaxhighlighter .gutter .line { 186 | border-right: 3px solid #435a5f !important; } 187 | .syntaxhighlighter .gutter .line.highlighted { 188 | background-color: #435a5f !important; 189 | color: #1b2426 !important; } 190 | .syntaxhighlighter.printing .line .content { 191 | border: none !important; } 192 | .syntaxhighlighter.collapsed { 193 | overflow: visible !important; } 194 | .syntaxhighlighter.collapsed .toolbar { 195 | color: #5ba1cf !important; 196 | background: #000 !important; 197 | border: 1px solid #435a5f !important; } 198 | .syntaxhighlighter.collapsed .toolbar a { 199 | color: #5ba1cf !important; } 200 | .syntaxhighlighter.collapsed .toolbar a:hover { 201 | color: #5ce638 !important; } 202 | .syntaxhighlighter .toolbar { 203 | color: #fff !important; 204 | background: #435a5f !important; 205 | border: none !important; } 206 | .syntaxhighlighter .toolbar a { 207 | color: #fff !important; } 208 | .syntaxhighlighter .toolbar a:hover { 209 | color: #e0e8ff !important; } 210 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 211 | color: #b9bdb6 !important; } 212 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 213 | color: #878a85 !important; } 214 | .syntaxhighlighter .string, .syntaxhighlighter .string a { 215 | color: #5ce638 !important; } 216 | .syntaxhighlighter .keyword { 217 | font-weight: bold !important; 218 | color: #5ba1cf !important; } 219 | .syntaxhighlighter .preprocessor { 220 | color: #435a5f !important; } 221 | .syntaxhighlighter .variable { 222 | color: #ffaa3e !important; } 223 | .syntaxhighlighter .value { 224 | color: #009900 !important; } 225 | .syntaxhighlighter .functions { 226 | color: #ffaa3e !important; } 227 | .syntaxhighlighter .constants { 228 | color: #e0e8ff !important; } 229 | .syntaxhighlighter .script { 230 | font-weight: bold !important; 231 | color: #5ba1cf !important; 232 | background-color: none !important; } 233 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 234 | color: #e0e8ff !important; } 235 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 236 | color: white !important; } 237 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 238 | color: #ffaa3e !important; } 239 | -------------------------------------------------------------------------------- /styles/shThemeSwift.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Emulates Apple Swift documentation syntax highlighting 3 | * Contributed by Nate Cook 4 | * http://natecook.com 5 | */ 6 | .syntaxhighlighter a, 7 | .syntaxhighlighter div, 8 | .syntaxhighlighter code, 9 | .syntaxhighlighter table, 10 | .syntaxhighlighter table td, 11 | .syntaxhighlighter table tr, 12 | .syntaxhighlighter table tbody, 13 | .syntaxhighlighter table thead, 14 | .syntaxhighlighter table caption, 15 | .syntaxhighlighter textarea { 16 | -moz-border-radius: 0 0 0 0 !important; 17 | -webkit-border-radius: 0 0 0 0 !important; 18 | background: none !important; 19 | border: 0 !important; 20 | bottom: auto !important; 21 | float: none !important; 22 | height: auto !important; 23 | left: auto !important; 24 | line-height: 1.1em !important; 25 | margin: 0 !important; 26 | outline: 0 !important; 27 | overflow: visible !important; 28 | padding: 0 !important; 29 | position: static !important; 30 | right: auto !important; 31 | text-align: left !important; 32 | top: auto !important; 33 | vertical-align: baseline !important; 34 | width: auto !important; 35 | box-sizing: content-box !important; 36 | font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; 37 | font-weight: normal !important; 38 | font-style: normal !important; 39 | font-size: 1em !important; 40 | min-height: inherit !important; 41 | min-height: auto !important; } 42 | 43 | .syntaxhighlighter { 44 | width: 100% !important; 45 | margin: 1em 0 1em 0 !important; 46 | position: relative !important; 47 | overflow: auto !important; 48 | font-size: 1em !important; } 49 | .syntaxhighlighter .container:before, .syntaxhighlighter .container:after { 50 | content: none !important; } 51 | .syntaxhighlighter.source { 52 | overflow: hidden !important; } 53 | .syntaxhighlighter .bold { 54 | font-weight: bold !important; } 55 | .syntaxhighlighter .italic { 56 | font-style: italic !important; } 57 | .syntaxhighlighter .line { 58 | white-space: pre !important; } 59 | .syntaxhighlighter table { 60 | width: 100% !important; } 61 | .syntaxhighlighter table caption { 62 | text-align: left !important; 63 | padding: .5em 0 0.5em 1em !important; } 64 | .syntaxhighlighter table td.code { 65 | width: 100% !important; } 66 | .syntaxhighlighter table td.code .container { 67 | position: relative !important; } 68 | .syntaxhighlighter table td.code .container textarea { 69 | box-sizing: border-box !important; 70 | position: absolute !important; 71 | left: 0 !important; 72 | top: 0 !important; 73 | width: 100% !important; 74 | height: 100% !important; 75 | border: none !important; 76 | background: white !important; 77 | padding-left: 1em !important; 78 | overflow: hidden !important; 79 | white-space: pre !important; } 80 | .syntaxhighlighter table td.gutter .line { 81 | text-align: right !important; 82 | padding: 0 0.5em 0 1em !important; } 83 | .syntaxhighlighter table td.code .line { 84 | padding: 0 1em !important; } 85 | .syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line { 86 | padding-left: 0em !important; } 87 | .syntaxhighlighter.show { 88 | display: block !important; } 89 | .syntaxhighlighter.collapsed table { 90 | display: none !important; } 91 | .syntaxhighlighter.collapsed .toolbar { 92 | padding: 0.1em 0.8em 0em 0.8em !important; 93 | font-size: 1em !important; 94 | position: static !important; 95 | width: auto !important; 96 | height: auto !important; } 97 | .syntaxhighlighter.collapsed .toolbar span { 98 | display: inline !important; 99 | margin-right: 1em !important; } 100 | .syntaxhighlighter.collapsed .toolbar span a { 101 | padding: 0 !important; 102 | display: none !important; } 103 | .syntaxhighlighter.collapsed .toolbar span a.expandSource { 104 | display: inline !important; } 105 | .syntaxhighlighter .toolbar { 106 | position: absolute !important; 107 | right: 1px !important; 108 | top: 1px !important; 109 | width: 11px !important; 110 | height: 11px !important; 111 | font-size: 10px !important; 112 | z-index: 10 !important; } 113 | .syntaxhighlighter .toolbar span.title { 114 | display: inline !important; } 115 | .syntaxhighlighter .toolbar a { 116 | display: block !important; 117 | text-align: center !important; 118 | text-decoration: none !important; 119 | padding-top: 1px !important; } 120 | .syntaxhighlighter .toolbar a.expandSource { 121 | display: none !important; } 122 | .syntaxhighlighter.ie { 123 | font-size: .9em !important; 124 | padding: 1px 0 1px 0 !important; } 125 | .syntaxhighlighter.ie .toolbar { 126 | line-height: 8px !important; } 127 | .syntaxhighlighter.ie .toolbar a { 128 | padding-top: 0px !important; } 129 | .syntaxhighlighter.printing .line.alt1 .content, 130 | .syntaxhighlighter.printing .line.alt2 .content, 131 | .syntaxhighlighter.printing .line.highlighted .number, 132 | .syntaxhighlighter.printing .line.highlighted.alt1 .content, 133 | .syntaxhighlighter.printing .line.highlighted.alt2 .content { 134 | background: none !important; } 135 | .syntaxhighlighter.printing .line .number { 136 | color: #bbbbbb !important; } 137 | .syntaxhighlighter.printing .line .content { 138 | color: black !important; } 139 | .syntaxhighlighter.printing .toolbar { 140 | display: none !important; } 141 | .syntaxhighlighter.printing a { 142 | text-decoration: none !important; } 143 | .syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a { 144 | color: black !important; } 145 | .syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a { 146 | color: #008200 !important; } 147 | .syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a { 148 | color: blue !important; } 149 | .syntaxhighlighter.printing .keyword { 150 | color: #006699 !important; 151 | font-weight: bold !important; } 152 | .syntaxhighlighter.printing .preprocessor { 153 | color: gray !important; } 154 | .syntaxhighlighter.printing .variable { 155 | color: #aa7700 !important; } 156 | .syntaxhighlighter.printing .value { 157 | color: #009900 !important; } 158 | .syntaxhighlighter.printing .functions { 159 | color: #ff1493 !important; } 160 | .syntaxhighlighter.printing .constants { 161 | color: #0066cc !important; } 162 | .syntaxhighlighter.printing .script { 163 | font-weight: bold !important; } 164 | .syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a { 165 | color: gray !important; } 166 | .syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a { 167 | color: #ff1493 !important; } 168 | .syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a { 169 | color: red !important; } 170 | .syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a { 171 | color: black !important; } 172 | 173 | .syntaxhighlighter { 174 | background-color: white !important; } 175 | .syntaxhighlighter .line.alt1 { 176 | background-color: white !important; } 177 | .syntaxhighlighter .line.alt2 { 178 | background-color: white !important; } 179 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { 180 | background-color: #e9e9e9 !important; } 181 | .syntaxhighlighter .line.highlighted.number { 182 | color: white !important; } 183 | .syntaxhighlighter table caption { 184 | color: #353535 !important; } 185 | .syntaxhighlighter table td.code .container textarea { 186 | background: white; 187 | color: black; } 188 | .syntaxhighlighter .gutter { 189 | color: gray !important; } 190 | .syntaxhighlighter .gutter .line { 191 | border-right: none !important; } 192 | .syntaxhighlighter .gutter .line.highlighted { 193 | background-color: #6ce26c !important; 194 | color: white !important; } 195 | .syntaxhighlighter.printing .line .content { 196 | border: none !important; } 197 | .syntaxhighlighter.collapsed { 198 | overflow: visible !important; } 199 | .syntaxhighlighter.collapsed .toolbar { 200 | color: #00f !important; 201 | background: #fff !important; 202 | border: 1px solid #6ce26c !important; } 203 | .syntaxhighlighter.collapsed .toolbar a { 204 | color: #00f !important; } 205 | .syntaxhighlighter.collapsed .toolbar a:hover { 206 | color: #f00 !important; } 207 | .syntaxhighlighter .toolbar { 208 | color: #fff !important; 209 | background: #6ce26c !important; 210 | border: none !important; } 211 | .syntaxhighlighter .toolbar a { 212 | color: #fff !important; } 213 | .syntaxhighlighter .toolbar a:hover { 214 | color: #000 !important; } 215 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 216 | color: black !important; } 217 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 218 | color: #008312 !important; } 219 | .syntaxhighlighter .string, .syntaxhighlighter .string a { 220 | color: #c41a16 !important; } 221 | .syntaxhighlighter .keyword { 222 | font-weight: bold !important; 223 | color: #b833a1 !important; } 224 | .syntaxhighlighter .preprocessor { 225 | color: gray !important; } 226 | .syntaxhighlighter .variable { 227 | color: #508187 !important; } 228 | .syntaxhighlighter .value { 229 | color: #1c00cf !important; } 230 | .syntaxhighlighter .functions { 231 | color: #ff1493 !important; } 232 | .syntaxhighlighter .constants { 233 | color: #0066cc !important; } 234 | .syntaxhighlighter .script { 235 | font-weight: bold !important; 236 | color: #b833a1 !important; 237 | background-color: none !important; } 238 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 239 | color: #b833a1 !important; } 240 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 241 | color: #6f41a7 !important; } 242 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 243 | color: red !important; } 244 | 245 | .syntaxhighlighter { 246 | font-size: 0.75em !important; } 247 | .syntaxhighlighter a, 248 | .syntaxhighlighter div, 249 | .syntaxhighlighter code, 250 | .syntaxhighlighter table, 251 | .syntaxhighlighter table td, 252 | .syntaxhighlighter table tr, 253 | .syntaxhighlighter table tbody, 254 | .syntaxhighlighter table thead, 255 | .syntaxhighlighter table caption, 256 | .syntaxhighlighter textarea { 257 | font-family: Menlo, Consolas, monospace !important; } 258 | .syntaxhighlighter table td.gutter .line { 259 | text-align: right !important; 260 | padding: 0.2em 0.5em !important; } 261 | .syntaxhighlighter table td.code .line { 262 | padding: 0.2em 1em !important; } 263 | .syntaxhighlighter table td.code .container textarea { 264 | padding-top: 0.1em !important; 265 | line-height: 1.48em !important; } 266 | .syntaxhighlighter .gutter .line { 267 | background: #f9f9f9 !important; } 268 | .syntaxhighlighter .gutter .line.highlighted { 269 | background-color: #898989 !important; 270 | color: white !important; } 271 | -------------------------------------------------------------------------------- /syntaxtic_128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajmath/Syntaxtic/415b7f5c342d4b82df2ac0392a79ff1044301b15/syntaxtic_128x128.png -------------------------------------------------------------------------------- /syntaxtic_48x48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajmath/Syntaxtic/415b7f5c342d4b82df2ac0392a79ff1044301b15/syntaxtic_48x48.png -------------------------------------------------------------------------------- /toggle_gutter.coffee: -------------------------------------------------------------------------------- 1 | 2 | toggle_element = (class_name) -> 3 | element = document.getElementsByClassName(class_name)[0] 4 | 5 | if element? 6 | if element.style.display is '' 7 | element.style.display = 'none' 8 | else 9 | element.style.display = '' 10 | 11 | toggle_element('gutter') 12 | -------------------------------------------------------------------------------- /toggle_highlight.coffee: -------------------------------------------------------------------------------- 1 | 2 | toggle_hilight = () -> 3 | for stylesheet in document.styleSheets 4 | if stylesheet.href && stylesheet.href.match(/.*shTheme[a-zA-Z]*\.css/) 5 | stylesheet.disabled = !stylesheet.disabled 6 | 7 | toggle_hilight() 8 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | cake@^0.1.1: 6 | version "0.1.1" 7 | resolved "https://registry.yarnpkg.com/cake/-/cake-0.1.1.tgz#4a65d0dafb01818023162a717340dd88e0785b37" 8 | dependencies: 9 | coffee-script latest 10 | 11 | coffee-script@latest: 12 | version "1.12.7" 13 | resolved "https://registry.yarnpkg.com/coffee-script/-/coffee-script-1.12.7.tgz#c05dae0cb79591d05b3070a8433a98c9a89ccc53" 14 | 15 | coffeescript@^1.12.7: 16 | version "1.12.7" 17 | resolved "https://registry.yarnpkg.com/coffeescript/-/coffeescript-1.12.7.tgz#e57ee4c4867cf7f606bfc4a0f2d550c0981ddd27" 18 | --------------------------------------------------------------------------------