├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── Example ├── Highlightr.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── Highlightr-Example.xcscheme ├── Highlightr.xcworkspace │ └── contents.xcworkspacedata ├── Highlightr │ ├── AppDelegate.swift │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── SampleCode.swift │ ├── SampleCode.xib │ ├── Samples │ │ ├── 1c │ │ │ └── default.txt │ │ ├── abnf │ │ │ └── default.txt │ │ ├── accesslog │ │ │ └── default.txt │ │ ├── actionscript │ │ │ └── default.txt │ │ ├── ada │ │ │ └── default.txt │ │ ├── apache │ │ │ └── default.txt │ │ ├── applescript │ │ │ └── default.txt │ │ ├── arduino │ │ │ └── default.txt │ │ ├── armasm │ │ │ └── default.txt │ │ ├── asciidoc │ │ │ └── default.txt │ │ ├── aspectj │ │ │ └── default.txt │ │ ├── autohotkey │ │ │ └── default.txt │ │ ├── autoit │ │ │ └── default.txt │ │ ├── avrasm │ │ │ └── default.txt │ │ ├── awk │ │ │ └── default.txt │ │ ├── axapta │ │ │ └── default.txt │ │ ├── bash │ │ │ └── default.txt │ │ ├── basic │ │ │ └── default.txt │ │ ├── bnf │ │ │ └── default.txt │ │ ├── brainfuck │ │ │ └── default.txt │ │ ├── cal │ │ │ └── default.txt │ │ ├── capnproto │ │ │ └── default.txt │ │ ├── ceylon │ │ │ └── default.txt │ │ ├── clean │ │ │ └── default.txt │ │ ├── clojure-repl │ │ │ └── default.txt │ │ ├── clojure │ │ │ └── default.txt │ │ ├── cmake │ │ │ └── default.txt │ │ ├── coffeescript │ │ │ └── default.txt │ │ ├── coq │ │ │ └── default.txt │ │ ├── cos │ │ │ └── default.txt │ │ ├── cpp │ │ │ ├── comment.txt │ │ │ └── default.txt │ │ ├── crmsh │ │ │ └── default.txt │ │ ├── crystal │ │ │ └── default.txt │ │ ├── cs │ │ │ └── default.txt │ │ ├── csp │ │ │ └── default.txt │ │ ├── css │ │ │ └── default.txt │ │ ├── d │ │ │ └── default.txt │ │ ├── dart │ │ │ └── default.txt │ │ ├── delphi │ │ │ └── default.txt │ │ ├── diff │ │ │ └── default.txt │ │ ├── django │ │ │ └── default.txt │ │ ├── dns │ │ │ └── default.txt │ │ ├── dockerfile │ │ │ └── default.txt │ │ ├── dos │ │ │ └── default.txt │ │ ├── dsconfig │ │ │ └── default.txt │ │ ├── dts │ │ │ └── default.txt │ │ ├── dust │ │ │ └── default.txt │ │ ├── ebnf │ │ │ └── default.txt │ │ ├── elixir │ │ │ └── default.txt │ │ ├── elm │ │ │ └── default.txt │ │ ├── erb │ │ │ └── default.txt │ │ ├── erlang-repl │ │ │ └── default.txt │ │ ├── erlang │ │ │ └── default.txt │ │ ├── excel │ │ │ └── default.txt │ │ ├── fix │ │ │ └── default.txt │ │ ├── flix │ │ │ └── default.txt │ │ ├── fortran │ │ │ └── default.txt │ │ ├── fsharp │ │ │ └── default.txt │ │ ├── gams │ │ │ └── default.txt │ │ ├── gauss │ │ │ └── default.txt │ │ ├── gcode │ │ │ └── default.txt │ │ ├── gherkin │ │ │ └── default.txt │ │ ├── glsl │ │ │ └── default.txt │ │ ├── go │ │ │ ├── default.txt │ │ │ └── swift-like.txt │ │ ├── golo │ │ │ └── default.txt │ │ ├── gradle │ │ │ └── default.txt │ │ ├── groovy │ │ │ └── default.txt │ │ ├── haml │ │ │ └── default.txt │ │ ├── handlebars │ │ │ └── default.txt │ │ ├── haskell │ │ │ └── default.txt │ │ ├── haxe │ │ │ └── default.txt │ │ ├── hsp │ │ │ └── default.txt │ │ ├── htmlbars │ │ │ └── default.txt │ │ ├── http │ │ │ └── default.txt │ │ ├── hy │ │ │ └── default.txt │ │ ├── inform7 │ │ │ └── default.txt │ │ ├── ini │ │ │ └── default.txt │ │ ├── irpf90 │ │ │ └── default.txt │ │ ├── java │ │ │ └── default.txt │ │ ├── javascript │ │ │ ├── default.txt │ │ │ ├── sample1.txt │ │ │ └── short-plain.txt │ │ ├── jboss-cli │ │ │ └── default.txt │ │ ├── json │ │ │ └── default.txt │ │ ├── julia-repl │ │ │ └── default.txt │ │ ├── julia │ │ │ └── default.txt │ │ ├── kotlin │ │ │ └── default.txt │ │ ├── lasso │ │ │ └── default.txt │ │ ├── ldif │ │ │ └── default.txt │ │ ├── leaf │ │ │ └── default.txt │ │ ├── less │ │ │ └── default.txt │ │ ├── lisp │ │ │ └── default.txt │ │ ├── livecodeserver │ │ │ └── default.txt │ │ ├── livescript │ │ │ └── default.txt │ │ ├── llvm │ │ │ └── default.txt │ │ ├── lsl │ │ │ └── default.txt │ │ ├── lua │ │ │ └── default.txt │ │ ├── makefile │ │ │ └── default.txt │ │ ├── markdown │ │ │ └── default.txt │ │ ├── mathematica │ │ │ └── default.txt │ │ ├── matlab │ │ │ └── default.txt │ │ ├── maxima │ │ │ └── default.txt │ │ ├── mel │ │ │ └── default.txt │ │ ├── mercury │ │ │ └── default.txt │ │ ├── mipsasm │ │ │ └── default.txt │ │ ├── mizar │ │ │ └── default.txt │ │ ├── mojolicious │ │ │ └── default.txt │ │ ├── monkey │ │ │ └── default.txt │ │ ├── moonscript │ │ │ └── default.txt │ │ ├── n1ql │ │ │ └── default.txt │ │ ├── nginx │ │ │ └── default.txt │ │ ├── nimrod │ │ │ └── default.txt │ │ ├── nix │ │ │ └── default.txt │ │ ├── nsis │ │ │ └── default.txt │ │ ├── objectivec │ │ │ └── default.txt │ │ ├── ocaml │ │ │ └── default.txt │ │ ├── openscad │ │ │ └── default.txt │ │ ├── oxygene │ │ │ └── default.txt │ │ ├── parser3 │ │ │ └── default.txt │ │ ├── perl │ │ │ └── default.txt │ │ ├── pf │ │ │ └── default.txt │ │ ├── php │ │ │ └── default.txt │ │ ├── pony │ │ │ └── default.txt │ │ ├── powershell │ │ │ └── default.txt │ │ ├── processing │ │ │ └── default.txt │ │ ├── prolog │ │ │ └── default.txt │ │ ├── protobuf │ │ │ └── default.txt │ │ ├── puppet │ │ │ └── default.txt │ │ ├── purebasic │ │ │ └── default.txt │ │ ├── python │ │ │ └── default.txt │ │ ├── q │ │ │ └── default.txt │ │ ├── qml │ │ │ └── default.txt │ │ ├── r │ │ │ └── default.txt │ │ ├── rib │ │ │ └── default.txt │ │ ├── roboconf │ │ │ └── default.txt │ │ ├── routeros │ │ │ └── default.txt │ │ ├── rsl │ │ │ └── default.txt │ │ ├── ruby │ │ │ ├── default.txt │ │ │ └── double-colon.txt │ │ ├── ruleslanguage │ │ │ └── default.txt │ │ ├── rust │ │ │ └── default.txt │ │ ├── scala │ │ │ └── default.txt │ │ ├── scheme │ │ │ └── default.txt │ │ ├── scilab │ │ │ └── default.txt │ │ ├── scss │ │ │ └── default.txt │ │ ├── shell │ │ │ └── default.txt │ │ ├── smali │ │ │ └── default.txt │ │ ├── smalltalk │ │ │ └── default.txt │ │ ├── sml │ │ │ └── default.txt │ │ ├── sqf │ │ │ └── default.txt │ │ ├── sql │ │ │ └── default.txt │ │ ├── stan │ │ │ └── default.txt │ │ ├── stata │ │ │ └── default.txt │ │ ├── step21 │ │ │ └── default.txt │ │ ├── stylus │ │ │ └── default.txt │ │ ├── subunit │ │ │ └── default.txt │ │ ├── swift │ │ │ └── default.txt │ │ ├── taggerscript │ │ │ └── default.txt │ │ ├── tap │ │ │ └── default.txt │ │ ├── tcl │ │ │ └── default.txt │ │ ├── tex │ │ │ └── default.txt │ │ ├── thrift │ │ │ └── default.txt │ │ ├── tp │ │ │ └── default.txt │ │ ├── twig │ │ │ └── default.txt │ │ ├── typescript │ │ │ └── default.txt │ │ ├── vala │ │ │ └── default.txt │ │ ├── vbnet │ │ │ └── default.txt │ │ ├── vbscript-html │ │ │ └── default.txt │ │ ├── vbscript │ │ │ └── default.txt │ │ ├── verilog │ │ │ └── default.txt │ │ ├── vhdl │ │ │ └── default.txt │ │ ├── vim │ │ │ └── default.txt │ │ ├── x86asm │ │ │ └── default.txt │ │ ├── xl │ │ │ └── default.txt │ │ ├── xml │ │ │ ├── default.txt │ │ │ └── groovy-julia.txt │ │ ├── xquery │ │ │ └── default.txt │ │ ├── yaml │ │ │ └── default.txt │ │ └── zephir │ │ │ └── default.txt │ └── sampleCode.txt ├── Highlightr_OSX_Example │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Base.lproj │ │ └── MainMenu.xib │ └── Info.plist └── Podfile ├── Highlightr-iOS copy-Info.plist ├── Highlightr-macOS ├── Highlightr-macOS.h └── Info.plist ├── Highlightr.podspec ├── Highlightr.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── xcshareddata │ └── xcschemes │ ├── Highlightr-iOS.xcscheme │ └── Highlightr-macOS.xcscheme ├── Highlightr ├── Highlightr.h └── Info.plist ├── LICENSE ├── Package.swift ├── Package@swift-5.10.swift ├── Pod ├── Assets │ ├── .gitkeep │ ├── Highlighter │ │ ├── LICENSE │ │ └── highlight.min.js │ └── styles │ │ ├── a11y-dark.min.css │ │ ├── a11y-light.min.css │ │ ├── agate.min.css │ │ ├── an-old-hope.min.css │ │ ├── androidstudio.min.css │ │ ├── arduino-light.min.css │ │ ├── arta.min.css │ │ ├── ascetic.min.css │ │ ├── atelier-cave-dark.min.css │ │ ├── atelier-cave-light.min.css │ │ ├── atelier-dune-dark.min.css │ │ ├── atelier-dune-light.min.css │ │ ├── atelier-estuary-dark.min.css │ │ ├── atelier-estuary-light.min.css │ │ ├── atelier-forest-dark.min.css │ │ ├── atelier-forest-light.min.css │ │ ├── atelier-heath-dark.min.css │ │ ├── atelier-heath-light.min.css │ │ ├── atelier-lakeside-dark.min.css │ │ ├── atelier-lakeside-light.min.css │ │ ├── atelier-plateau-dark.min.css │ │ ├── atelier-plateau-light.min.css │ │ ├── atelier-savanna-dark.min.css │ │ ├── atelier-savanna-light.min.css │ │ ├── atelier-seaside-dark.min.css │ │ ├── atelier-seaside-light.min.css │ │ ├── atelier-sulphurpool-dark.min.css │ │ ├── atelier-sulphurpool-light.min.css │ │ ├── atom-one-dark-reasonable.min.css │ │ ├── atom-one-dark.min.css │ │ ├── atom-one-light.min.css │ │ ├── brown-paper.min.css │ │ ├── codepen-embed.min.css │ │ ├── color-brewer.min.css │ │ ├── darcula.min.css │ │ ├── dark.min.css │ │ ├── darkula.min.css │ │ ├── default.min.css │ │ ├── docco.min.css │ │ ├── dracula.min.css │ │ ├── far.min.css │ │ ├── foundation.min.css │ │ ├── github-gist.min.css │ │ ├── github.min.css │ │ ├── gml.min.css │ │ ├── googlecode.min.css │ │ ├── grayscale.min.css │ │ ├── gruvbox-dark.min.css │ │ ├── gruvbox-light.min.css │ │ ├── hopscotch.min.css │ │ ├── hybrid.min.css │ │ ├── idea.min.css │ │ ├── ir-black.min.css │ │ ├── isbl-editor-dark.min.css │ │ ├── isbl-editor-light.min.css │ │ ├── kimbie.dark.min.css │ │ ├── kimbie.light.min.css │ │ ├── lightfair.min.css │ │ ├── magula.min.css │ │ ├── mono-blue.min.css │ │ ├── monokai-sublime.min.css │ │ ├── monokai.min.css │ │ ├── nord.min.css │ │ ├── obsidian.min.css │ │ ├── ocean.min.css │ │ ├── paraiso-dark.min.css │ │ ├── paraiso-light.min.css │ │ ├── pojoaque.min.css │ │ ├── purebasic.min.css │ │ ├── qtcreator_dark.min.css │ │ ├── qtcreator_light.min.css │ │ ├── railscasts.min.css │ │ ├── rainbow.min.css │ │ ├── routeros.min.css │ │ ├── school-book.min.css │ │ ├── shades-of-purple.min.css │ │ ├── solarized-dark.min.css │ │ ├── solarized-light.min.css │ │ ├── sunburst.min.css │ │ ├── tomorrow-night-blue.min.css │ │ ├── tomorrow-night-bright.min.css │ │ ├── tomorrow-night-eighties.min.css │ │ ├── tomorrow-night.min.css │ │ ├── tomorrow.min.css │ │ ├── vs.min.css │ │ ├── vs2015.min.css │ │ ├── xcode-dark.min.css │ │ ├── xcode.min.css │ │ ├── xt256.min.css │ │ └── zenburn.min.css └── Classes │ ├── .gitkeep │ ├── CodeAttributedString.swift │ ├── HTMLUtils.swift │ ├── Highlightr.swift │ ├── Shims.swift │ └── Theme.swift ├── README.md ├── _Pods.xcodeproj ├── coding.gif └── mix2.gif /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # Examples 26 | Example/**/Podfile.lock 27 | Example/Pods 28 | Example/**/Pods 29 | 30 | Carthage 31 | # We recommend against adding the Pods directory to your .gitignore. However 32 | # you should judge for yourself, the pros and cons are mentioned at: 33 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 34 | # 35 | # Note: if you ignore the Pods directory, make sure to uncomment 36 | # `pod install` in .travis.yml 37 | # 38 | # Pods/ 39 | 40 | # Swift Package Manager 41 | .build/ 42 | .swiftpm 43 | 44 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | language: objective-c 6 | # cache: cocoapods 7 | # podfile: Example/Podfile 8 | # before_install: 9 | # - gem install cocoapods # Since Travis is not always on latest version 10 | # - pod install --project-directory=Example 11 | script: 12 | - set -o pipefail && xcodebuild test -workspace Example/Highlightr.xcworkspace -scheme Highlightr-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty 13 | - pod lib lint 14 | -------------------------------------------------------------------------------- /Example/Highlightr.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Highlightr.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/Highlightr/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Example/Highlightr/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UIStatusBarHidden 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | UIViewControllerBasedStatusBarAppearance 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/abnf/default.txt: -------------------------------------------------------------------------------- 1 | ; line comment 2 | 3 | ruleset = [optional] *(group1 / group2 / SP) CRLF ; trailing comment 4 | 5 | group1 = alt1 6 | group1 =/ alt2 7 | 8 | alt1 = %x41-4D / %d78-90 9 | 10 | alt2 = %b00100001 11 | 12 | group2 = *1DIGIT / 2*HEXDIG / 3*4OCTET 13 | 14 | optional = hex-codes 15 | / literal 16 | / sensitive 17 | / insensitive 18 | 19 | hex-codes = %x68.65.6C.6C.6F 20 | literal = "string literal" 21 | sensitive = %s"case-sensitive string" 22 | insensitive = %i"case-insensitive string" 23 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/accesslog/default.txt: -------------------------------------------------------------------------------- 1 | 20.164.151.111 - - [20/Aug/2015:22:20:18 -0400] "GET /mywebpage/index.php HTTP/1.1" 403 772 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1" 2 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/actionscript/default.txt: -------------------------------------------------------------------------------- 1 | package org.example.dummy { 2 | import org.dummy.*; 3 | 4 | /*define package inline interface*/ 5 | public interface IFooBarzable { 6 | public function foo(... pairs):Array; 7 | } 8 | 9 | public class FooBar implements IFooBarzable { 10 | static private var cnt:uint = 0; 11 | private var bar:String; 12 | 13 | //constructor 14 | public function TestBar(bar:String):void { 15 | bar = bar; 16 | ++cnt; 17 | } 18 | 19 | public function foo(... pairs):Array { 20 | pairs.push(bar); 21 | return pairs; 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /Example/Highlightr/Samples/ada/default.txt: -------------------------------------------------------------------------------- 1 | package body Sqlite.Simple is 2 | 3 | Foo : int := int'Size; 4 | Bar : int := long'Size; 5 | 6 | Error_Message_C : chars_ptr := Sqlite_Errstr (Error); 7 | Error_Message : String := Null_Ignore_Value (Error_Message_C); 8 | begin 9 | 10 | Named : for Index in Foo..Bar loop 11 | Put ("Hi[]{}"); 12 | end loop Named; 13 | 14 | Foo := Bar; 15 | end Message; 16 | 17 | end Sqlite.Simple; 18 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/apache/default.txt: -------------------------------------------------------------------------------- 1 | # rewrite`s rules for wordpress pretty url 2 | LoadModule rewrite_module modules/mod_rewrite.so 3 | RewriteCond %{REQUEST_FILENAME} !-f 4 | RewriteCond %{REQUEST_FILENAME} !-d 5 | RewriteRule . index.php [NC,L] 6 | 7 | ExpiresActive On 8 | ExpiresByType application/x-javascript "access plus 1 days" 9 | 10 | Order Deny,Allow 11 | Allow from All 12 | 13 | 14 | RewriteMap map txt:map.txt 15 | RewriteMap lower int:tolower 16 | RewriteCond %{REQUEST_URI} ^/([^/.]+)\.html$ [NC] 17 | RewriteCond ${map:${lower:%1}|NOT_FOUND} !NOT_FOUND 18 | RewriteRule .? /index.php?q=${map:${lower:%1}} [NC,L] 19 | 20 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/applescript/default.txt: -------------------------------------------------------------------------------- 1 | repeat 5 times 2 | if foo is greater than bar then 3 | display dialog "Hello there" 4 | else 5 | beep 6 | end if 7 | end repeat 8 | 9 | (* comment (*nested comment*) *) 10 | on do_something(s, y) 11 | return {s + pi, y mod 4} 12 | end do_something 13 | 14 | do shell script "/bin/echo 'hello'" 15 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/arduino/default.txt: -------------------------------------------------------------------------------- 1 | /* 2 | Blink 3 | Turns on an LED on for one second, then off for one second, repeatedly. 4 | 5 | This example code is in the public domain. 6 | */ 7 | 8 | // Pin 13 has an LED connected on most Arduino boards. 9 | // give it a name: 10 | int led = 13; 11 | 12 | // the setup routine runs once when you press reset: 13 | void setup() { 14 | // initialize the digital pin as an output. 15 | pinMode(led, OUTPUT); 16 | } 17 | 18 | // the loop routine runs over and over again forever: 19 | void loop() { 20 | digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level) 21 | delay(1000); // wait for a second 22 | digitalWrite(led, LOW); // turn the LED off by making the voltage LOW 23 | delay(1000); // wait for a second 24 | } -------------------------------------------------------------------------------- /Example/Highlightr/Samples/armasm/default.txt: -------------------------------------------------------------------------------- 1 | .text 2 | 3 | .global connect 4 | connect: 5 | mov r3, #2 ; s->sin_family = AF_INET 6 | strh r3, [sp] 7 | ldr r3, =server_port ; s->sin_port = server_port 8 | ldr r3, [r3] 9 | strh r3, [sp, #2] 10 | ldr r3, =server_addr ; s->sin_addr = server_addr 11 | ldr r3, [r3] 12 | str r3, [sp, #4] 13 | mov r3, #0 ; bzero(&s->sin_zero) 14 | str r3, [sp, #8] 15 | str r3, [sp, #12] 16 | mov r1, sp ; const struct sockaddr *addr = sp 17 | 18 | ldr r7, =connect_call 19 | ldr r7, [r7] 20 | swi #0 21 | 22 | add sp, sp, #16 23 | pop {r0} ; pop sockfd 24 | 25 | pop {r7} 26 | pop {fp, ip, lr} 27 | mov sp, ip 28 | bx lr 29 | 30 | .data 31 | socket_call: .long 281 32 | connect_call: .long 283 33 | 34 | /* all addresses are network byte-order (big-endian) */ 35 | server_addr: .long 0x0100007f ; localhost 36 | server_port: .hword 0x0b1a 37 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/aspectj/default.txt: -------------------------------------------------------------------------------- 1 | package com.aspectj.syntax; 2 | import org.aspectj.lang.annotation.AdviceName; 3 | 4 | privileged public aspect LoggingAspect percflowbelow(ajia.services.*){ 5 | private pointcut getResult() : call(* *(..) throws SQLException) && args(Account, .., int); 6 | @AdviceName("CheckValidEmail") 7 | before (Customer hu) : getResult(hu){ 8 | System.out.println("Your mail address is valid!"); 9 | } 10 | Object around() throws InsufficientBalanceException: getResult() && call(Customer.new(String,String,int,int,int)){ 11 | return proceed(); 12 | } 13 | public Cache getCache() { 14 | return this.cache; 15 | } 16 | pointcut beanPropertyChange(BeanSupport bean, Object newValue): execution(void BeanSupport+.set*(*)) && args(newValue) && this(bean); 17 | declare parents: banking.entities.* implements BeanSupport; 18 | declare warning : call(void TestSoftening.perform()): "Please ensure you are not calling this from an AWT thread"; 19 | private String Identifiable.id; 20 | public void Identifiable.setId(String id) { 21 | this.id = id; 22 | } 23 | } -------------------------------------------------------------------------------- /Example/Highlightr/Samples/autohotkey/default.txt: -------------------------------------------------------------------------------- 1 | ; hotkeys and hotstrings 2 | #a::WinSet, AlwaysOnTop, Toggle, A 3 | #Space:: 4 | MsgBox, Percent sign (`%) need to be escaped. 5 | Run "C:\Program Files\some\program.exe" 6 | Gosub, label1 7 | return 8 | ::btw::by the way 9 | ; volume 10 | #Numpad8::Send {Volume_Up} 11 | #Numpad5::Send {Volume_Mute} 12 | #Numpad2::Send {Volume_Down} 13 | 14 | label1: 15 | if (Clipboard = "") 16 | { 17 | MsgBox, , Clipboard, Empty! 18 | } 19 | else 20 | { 21 | StringReplace, temp, Clipboard, old, new, All 22 | MsgBox, , Clipboard, %temp% 23 | } 24 | return 25 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/autoit/default.txt: -------------------------------------------------------------------------------- 1 | #NoTrayIcon 2 | #AutoIt3Wrapper_Run_Tidy=Y 3 | #include 4 | 5 | _Singleton(@ScriptName) ; Allow only one instance 6 | example(0, 10) 7 | 8 | Func example($min, $max) 9 | For $i = $min To $max 10 | If Mod($i, 2) == 0 Then 11 | MsgBox(64, "Message", $i & ' is even number!') 12 | Else 13 | MsgBox(64, "Message", $i & ' is odd number!') 14 | EndIf 15 | Next 16 | EndFunc ;==>example -------------------------------------------------------------------------------- /Example/Highlightr/Samples/avrasm/default.txt: -------------------------------------------------------------------------------- 1 | ;* Title: Block Copy Routines 2 | ;* Version: 1.1 3 | 4 | .include "8515def.inc" 5 | 6 | rjmp RESET ;reset handle 7 | 8 | .def flashsize=r16 ;size of block to be copied 9 | 10 | flash2ram: 11 | lpm ;get constant 12 | st Y+,r0 ;store in SRAM and increment Y-pointer 13 | adiw ZL,1 ;increment Z-pointer 14 | dec flashsize 15 | brne flash2ram ;if not end of table, loop more 16 | ret 17 | 18 | .def ramtemp =r1 ;temporary storage register 19 | .def ramsize =r16 ;size of block to be copied 20 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/awk/default.txt: -------------------------------------------------------------------------------- 1 | BEGIN { 2 | POPService = "/inet/tcp/0/emailhost/pop3" 3 | RS = ORS = "\r\n" 4 | print "user name" |& POPService 5 | POPService |& getline 6 | print "pass password" |& POPService 7 | POPService |& getline 8 | print "retr 1" |& POPService 9 | POPService |& getline 10 | if ($1 != "+OK") exit 11 | print "quit" |& POPService 12 | RS = "\r\n\\.\r\n" 13 | POPService |& getline 14 | print $0 15 | close(POPService) 16 | } 17 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/axapta/default.txt: -------------------------------------------------------------------------------- 1 | class ExchRateLoadBatch extends RunBaseBatch { 2 | ExchRateLoad rbc; 3 | container currencies; 4 | boolean actual; 5 | boolean overwrite; 6 | date beg; 7 | date end; 8 | 9 | #define.CurrentVersion(5) 10 | 11 | #localmacro.CurrentList 12 | currencies, 13 | actual, 14 | beg, 15 | end 16 | #endmacro 17 | } 18 | 19 | public boolean unpack(container packedClass) { 20 | container base; 21 | boolean ret; 22 | Integer version = runbase::getVersion(packedClass); 23 | 24 | switch (version) { 25 | case #CurrentVersion: 26 | [version, #CurrentList] = packedClass; 27 | return true; 28 | default: 29 | return false; 30 | } 31 | return ret; 32 | } 33 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/bash/default.txt: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ###### CONFIG 4 | ACCEPTED_HOSTS="/root/.hag_accepted.conf" 5 | BE_VERBOSE=false 6 | 7 | if [ "$UID" -ne 0 ] 8 | then 9 | echo "Superuser rights required" 10 | exit 2 11 | fi 12 | 13 | genApacheConf(){ 14 | echo -e "# Host ${HOME_DIR}$1/$2 :" 15 | } 16 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/basic/default.txt: -------------------------------------------------------------------------------- 1 | 10 CLS 2 | 20 FOR I = 0 TO 15 3 | 22 FOR J = 0 TO 7 4 | 30 COLOR I,J 5 | 40 PRINT " ** "; 6 | 45 NEXT J 7 | 46 COLOR I,0 8 | 47 GOSUB 100 9 | 48 PRINT 10 | 50 NEXT I 11 | 60 COLOR 15,0 12 | 99 END 13 | 100 FOR T = 65 TO 90 14 | 101 PRINT CHR$(T); 15 | 102 NEXT T 16 | 103 RETURN 17 | 200 REM Data types test 18 | 201 TOTAL# = 3.30# 'Double precision variable 19 | 202 BALANCE! = 3! 'Single precision variable 20 | 203 B2! = 12e5 '120000 21 | 204 ITEMS% = 10 'Integer variable 22 | 205 HEXTEST = &H12DB 'Hex value 23 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/bnf/default.txt: -------------------------------------------------------------------------------- 1 | ::= | 2 | ::= "<" ">" "::=" 3 | ::= " " | "" 4 | ::= | "|" 5 | ::= | 6 | ::= | 7 | ::= | "<" ">" 8 | ::= '"' '"' | "'" "'" 9 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/brainfuck/default.txt: -------------------------------------------------------------------------------- 1 | ++++++++++ 2 | [ 3*10 and 10*10 3 | ->+++>++++++++++<< 4 | ]>> 5 | [ filling cells 6 | ->++>>++>++>+>++>>++>++>++>++>++>++>++>++>++>++>++[]<[<]<[<]>> 7 | ]< 8 | +++++++++<< 9 | [ rough codes correction loop 10 | ->>>+>+>+>+++>+>+>+>+>+>+>+>+>+>+>+>+>+>+[<]< 11 | ] 12 | more accurate сodes correction 13 | >>>++> 14 | -->+++++++>------>++++++>++>+++++++++>++++++++++>++++++++>--->++++++++++>------>++++++> 15 | ++>+++++++++++>++++++++++++>------>+++ 16 | rewind and output 17 | [<]>[.>] 18 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/cal/default.txt: -------------------------------------------------------------------------------- 1 | OBJECT Codeunit 11 Gen. Jnl.-Check Line 2 | { 3 | OBJECT-PROPERTIES 4 | { 5 | Date=09-09-14; 6 | Time=12:00:00; 7 | Version List=NAVW18.00; 8 | } 9 | PROPERTIES 10 | { 11 | TableNo=81; 12 | Permissions=TableData 252=rimd; 13 | OnRun=BEGIN 14 | GLSetup.GET; 15 | RunCheck(Rec); 16 | END; 17 | 18 | } 19 | CODE 20 | { 21 | VAR 22 | Text000@1000 : TextConst 'ENU=can only be a closing date for G/L entries'; 23 | Text001@1001 : TextConst 'ENU=is not within your range of allowed posting dates'; 24 | 25 | PROCEDURE ErrorIfPositiveAmt@2(GenJnlLine@1000 : Record 81); 26 | BEGIN 27 | IF GenJnlLine.Amount > 0 THEN 28 | GenJnlLine.FIELDERROR(Amount,Text008); 29 | END; 30 | 31 | LOCAL PROCEDURE CheckGenJnlLineDocType@7(GenJnlLine@1001 : Record 81); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/capnproto/default.txt: -------------------------------------------------------------------------------- 1 | @0xdbb9ad1f14bf0b36; # unique file ID, generated by `capnp id` 2 | 3 | struct Person { 4 | name @0 :Text; 5 | birthdate @3 :Date; 6 | 7 | email @1 :Text; 8 | phones @2 :List(PhoneNumber); 9 | 10 | struct PhoneNumber { 11 | number @0 :Text; 12 | type @1 :Type; 13 | 14 | enum Type { 15 | mobile @0; 16 | home @1; 17 | work @2; 18 | } 19 | } 20 | } 21 | 22 | struct Date { 23 | year @0 :Int16; 24 | month @1 :UInt8; 25 | day @2 :UInt8; 26 | flags @3 :List(Bool) = [ true, false, false, true ]; 27 | } 28 | 29 | interface Node { 30 | isDirectory @0 () -> (result :Bool); 31 | } 32 | 33 | interface Directory extends(Node) { 34 | list @0 () -> (list: List(Entry)); 35 | struct Entry { 36 | name @0 :Text; 37 | node @1 :Node; 38 | } 39 | 40 | create @1 (name :Text) -> (file :File); 41 | mkdir @2 (name :Text) -> (directory :Directory) 42 | open @3 (name :Text) -> (node :Node); 43 | delete @4 (name :Text); 44 | link @5 (name :Text, node :Node); 45 | } 46 | 47 | interface File extends(Node) { 48 | size @0 () -> (size: UInt64); 49 | read @1 (startAt :UInt64 = 0, amount :UInt64 = 0xffffffffffffffff) 50 | -> (data: Data); 51 | # Default params = read entire file. 52 | 53 | write @2 (startAt :UInt64, data :Data); 54 | truncate @3 (size :UInt64); 55 | } -------------------------------------------------------------------------------- /Example/Highlightr/Samples/ceylon/default.txt: -------------------------------------------------------------------------------- 1 | shared void run() { 2 | print("Hello, `` process.arguments.first else "World" ``!"); 3 | } 4 | class Counter(count=0) { 5 | variable Integer count; 6 | shared Integer currentValue => count; 7 | shared void increment() => count++; 8 | } 9 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/clean/default.txt: -------------------------------------------------------------------------------- 1 | module fsieve 2 | 3 | import StdClass; // RWS 4 | import StdInt, StdReal 5 | 6 | NrOfPrimes :== 3000 7 | 8 | primes :: [Int] 9 | primes = pr where pr = [5 : sieve 7 4 pr] 10 | 11 | sieve :: Int !Int [Int] -> [Int] 12 | sieve g i prs 13 | | isPrime prs g (toInt (sqrt (toReal g))) = [g : sieve` g i prs] 14 | | otherwise = sieve (g + i) (6 - i) prs 15 | 16 | sieve` :: Int Int [Int] -> [Int] 17 | sieve` g i prs = sieve (g + i) (6 - i) prs 18 | 19 | isPrime :: [Int] !Int Int -> Bool 20 | isPrime [f:r] pr bd 21 | | f>bd = True 22 | | pr rem f==0 = False 23 | | otherwise = isPrime r pr bd 24 | 25 | select :: [x] Int -> x 26 | select [f:r] 1 = f 27 | select [f:r] n = select r (n - 1) 28 | 29 | Start :: Int 30 | Start = select [2, 3 : primes] NrOfPrimes 31 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/clojure-repl/default.txt: -------------------------------------------------------------------------------- 1 | user=> (defn f [x y] 2 | #_=> (+ x y)) 3 | #'user/f 4 | user=> (f 5 7) 5 | 12 6 | user=> nil 7 | nil 8 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/clojure/default.txt: -------------------------------------------------------------------------------- 1 | (def ^:dynamic chunk-size 17) 2 | 3 | (defn next-chunk [rdr] 4 | (let [buf (char-array chunk-size) 5 | s (.read rdr buf)] 6 | (when (pos? s) 7 | (java.nio.CharBuffer/wrap buf 0 s)))) 8 | 9 | (defn chunk-seq [rdr] 10 | (when-let [chunk (next-chunk rdr)] 11 | (cons chunk (lazy-seq (chunk-seq rdr))))) 12 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/cmake/default.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.8) 2 | project(cmake_example) 3 | 4 | # Show message on Linux platform 5 | if (${CMAKE_SYSTEM_NAME} MATCHES Linux) 6 | message("Good choice, bro!") 7 | endif() 8 | 9 | # Tell CMake to run moc when necessary: 10 | set(CMAKE_AUTOMOC ON) 11 | # As moc files are generated in the binary dir, 12 | # tell CMake to always look for includes there: 13 | set(CMAKE_INCLUDE_CURRENT_DIR ON) 14 | 15 | # Widgets finds its own dependencies. 16 | find_package(Qt5Widgets REQUIRED) 17 | 18 | add_executable(myproject main.cpp mainwindow.cpp) 19 | qt5_use_modules(myproject Widgets) 20 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/coffeescript/default.txt: -------------------------------------------------------------------------------- 1 | grade = (student, period=(if b? then 7 else 6)) -> 2 | if student.excellentWork 3 | "A+" 4 | else if student.okayStuff 5 | if student.triedHard then "B" else "B-" 6 | else 7 | "C" 8 | 9 | class Animal extends Being 10 | constructor: (@name) -> 11 | 12 | move: (meters) -> 13 | alert @name + " moved #{meters}m." 14 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/coq/default.txt: -------------------------------------------------------------------------------- 1 | Inductive seq : nat -> Set := 2 | | niln : seq 0 3 | | consn : forall n : nat, nat -> seq n -> seq (S n). 4 | 5 | Fixpoint length (n : nat) (s : seq n) {struct s} : nat := 6 | match s with 7 | | niln => 0 8 | | consn i _ s' => S (length i s') 9 | end. 10 | 11 | Theorem length_corr : forall (n : nat) (s : seq n), length n s = n. 12 | Proof. 13 | intros n s. 14 | 15 | (* reasoning by induction over s. Then, we have two new goals 16 | corresponding on the case analysis about s (either it is 17 | niln or some consn *) 18 | induction s. 19 | 20 | (* We are in the case where s is void. We can reduce the 21 | term: length 0 niln *) 22 | simpl. 23 | 24 | (* We obtain the goal 0 = 0. *) 25 | trivial. 26 | 27 | (* now, we treat the case s = consn n e s with induction 28 | hypothesis IHs *) 29 | simpl. 30 | 31 | (* The induction hypothesis has type length n s = n. 32 | So we can use it to perform some rewriting in the goal: *) 33 | rewrite IHs. 34 | 35 | (* Now the goal is the trivial equality: S n = S n *) 36 | trivial. 37 | 38 | (* Now all sub cases are closed, we perform the ultimate 39 | step: typing the term built using tactics and save it as 40 | a witness of the theorem. *) 41 | Qed. 42 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/cos/default.txt: -------------------------------------------------------------------------------- 1 | #dim test as %Library.Integer 2 | SET test = 123.099 3 | set ^global = %request.Content 4 | Write "Current date """, $ztimestamp, """, result: ", test + ^global = 125.099 5 | do ##class(Cinema.Utils).AddShow("test") // class method call 6 | do ##super() ; another one-line comment 7 | d:(^global = 2) ..thisClassMethod(1, 2, "test") 8 | /* 9 | * Sub-languages support: 10 | */ 11 | &sql( SELECT * FROM Cinema.Film WHERE Length > 2 ) 12 | &js 15 | &html< 16 | 17 | 18 | Test 19 | > 20 | 21 | quit $$$OK 22 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/cpp/comment.txt: -------------------------------------------------------------------------------- 1 | /* 2 | To use this program, compile it -- if you can -- and then type something like: 3 | 4 | chan -n 5000 -d 2 < input.txt 5 | 6 | In this case, it will produce 5000 words of output, checking two-word groups. 7 | (The explanation above describes two-word generation. If you type "-d 3", 8 | the program will find three-word groups, and so on. Greater depths make more 9 | sense, but they require more input text and take more time to process.) 10 | 11 | http://www.eblong.com/zarf/markov/ 12 | */ 13 | 14 | 15 | /* make cpp win deterministically over others with C block comments */ 16 | cout << endl; 17 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/cpp/default.txt: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(int argc, char *argv[]) { 4 | 5 | /* An annoying "Hello World" example */ 6 | for (auto i = 0; i < 0xFFFF; i++) 7 | cout << "Hello, World!" << endl; 8 | 9 | char c = '\n'; 10 | unordered_map > m; 11 | m["key"] = "\\\\"; // this is an error 12 | 13 | return -2e3 + 12l; 14 | } 15 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/crystal/default.txt: -------------------------------------------------------------------------------- 1 | class Person 2 | def initialize(@name : String) 3 | end 4 | 5 | def greet 6 | puts "Hi, I'm #{@name}" 7 | end 8 | end 9 | 10 | class Employee < Person 11 | end 12 | 13 | employee = Employee.new "John" 14 | employee.greet # => "Hi, I'm John" 15 | employee.is_a?(Person) # => true 16 | 17 | @[Link("m")] 18 | lib C 19 | # In C: double cos(double x) 20 | fun cos(value : Float64) : Float64 21 | end 22 | 23 | C.cos(1.5_f64) # => 0.0707372 24 | 25 | s = uninitialized String 26 | s = <<-'STR' 27 | \hello\world 28 | \hello\world 29 | STR 30 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/cs/default.txt: -------------------------------------------------------------------------------- 1 | using System.IO.Compression; 2 | 3 | #pragma warning disable 414, 3021 4 | 5 | namespace MyApplication 6 | { 7 | [Obsolete("...")] 8 | class Program : IInterface 9 | { 10 | public static List JustDoIt(int count) 11 | { 12 | Console.WriteLine($"Hello {Name}!"); 13 | return new List(new int[] { 1, 2, 3 }) 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/csp/default.txt: -------------------------------------------------------------------------------- 1 | Content-Security-Policy: 2 | default-src 'self'; 3 | style-src 'self' css.example.com; 4 | img-src *.example.com; 5 | script-src 'unsafe-eval' 'self' js.example.com 'nonce-Nc3n83cnSAd3wc3Sasdfn939hc3' 6 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/css/default.txt: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: Chunkfive; src: url('Chunkfive.otf'); 3 | } 4 | 5 | body, .usertext { 6 | color: #F0F0F0; background: #600; 7 | font-family: Chunkfive, sans; 8 | } 9 | 10 | @import url(print.css); 11 | @media print { 12 | a[href^=http]::after { 13 | content: attr(href) 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/d/default.txt: -------------------------------------------------------------------------------- 1 | #!/usr/bin/rdmd 2 | // Computes average line length for standard input. 3 | import std.stdio; 4 | 5 | /+ 6 | this is a /+ nesting +/ comment 7 | +/ 8 | 9 | enum COMPILED_ON = __TIMESTAMP__; // special token 10 | 11 | enum character = '©'; 12 | enum copy_valid = '©'; 13 | enum backslash_escaped = '\\'; 14 | 15 | // string literals 16 | enum str = `hello "world"!`; 17 | enum multiline = r"lorem 18 | ipsum 19 | dolor"; // wysiwyg string, no escapes here allowed 20 | enum multiline2 = "sit 21 | amet 22 | \"adipiscing\" 23 | elit."; 24 | enum hex = x"66 6f 6f"; // same as "foo" 25 | 26 | #line 5 27 | 28 | // float literals 29 | enum f = [3.14f, .1, 1., 1e100, 0xc0de.01p+100]; 30 | 31 | static if (something == true) { 32 | import std.algorithm; 33 | } 34 | 35 | void main() pure nothrow @safe { 36 | ulong lines = 0; 37 | double sumLength = 0; 38 | foreach (line; stdin.byLine()) { 39 | ++lines; 40 | sumLength += line.length; 41 | } 42 | writeln("Average line length: ", 43 | lines ? sumLength / lines : 0); 44 | } 45 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/dart/default.txt: -------------------------------------------------------------------------------- 1 | library app; 2 | import 'dart:html'; 3 | 4 | part 'app2.dart'; 5 | 6 | /** 7 | * Class description and [link](http://dartlang.org/). 8 | */ 9 | @Awesome('it works!') 10 | class SomeClass extends BaseClass implements Comparable { 11 | factory SomeClass(num param); 12 | SomeClass._internal(int q) : super() { 13 | assert(q != 1); 14 | double z = 0.0; 15 | } 16 | 17 | /// **Sum** function 18 | int sum(int a, int b) => a + b; 19 | 20 | ElementList els() => querySelectorAll('.dart'); 21 | } 22 | 23 | String str = ' (${'parameter' + 'zxc'})'; 24 | String str = " (${true ? 2 + 2 / 2 : null})"; 25 | String str = r'\nraw\'; 26 | String str = r"\nraw\"; 27 | var str = ''' 28 | Something ${2+3} 29 | '''; 30 | var str = r""" 31 | Something ${2+3} 32 | """; 33 | 34 | checkVersion() async { 35 | var version = await lookUpVersion(); 36 | } 37 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/delphi/default.txt: -------------------------------------------------------------------------------- 1 | TList = Class(TObject) 2 | Private 3 | Some: String; 4 | Public 5 | Procedure Inside; // Suxx 6 | End;{TList} 7 | 8 | Procedure CopyFile(InFileName, var OutFileName: String); 9 | Const 10 | BufSize = 4096; (* Huh? *) 11 | Var 12 | InFile, OutFile: TStream; 13 | Buffer: Array[1..BufSize] Of Byte; 14 | ReadBufSize: Integer; 15 | Begin 16 | InFile := Nil; 17 | OutFile := Nil; 18 | Try 19 | InFile := TFileStream.Create(InFileName, fmOpenRead); 20 | OutFile := TFileStream.Create(OutFileName, fmCreate); 21 | Repeat 22 | ReadBufSize := InFile.Read(Buffer, BufSize); 23 | OutFile.Write(Buffer, ReadBufSize); 24 | Until ReadBufSize<>BufSize; 25 | Log('File ''' + InFileName + ''' copied'#13#10); 26 | Finally 27 | InFile.Free; 28 | OutFile.Free; 29 | End;{Try} 30 | End;{CopyFile} 31 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/diff/default.txt: -------------------------------------------------------------------------------- 1 | Index: languages/ini.js 2 | =================================================================== 3 | --- languages/ini.js (revision 199) 4 | +++ languages/ini.js (revision 200) 5 | @@ -1,8 +1,7 @@ 6 | hljs.LANGUAGES.ini = 7 | { 8 | case_insensitive: true, 9 | - defaultMode: 10 | - { 11 | + defaultMode: { 12 | contains: ['comment', 'title', 'setting'], 13 | illegal: '[^\\s]' 14 | }, 15 | 16 | *** /path/to/original timestamp 17 | --- /path/to/new timestamp 18 | *************** 19 | *** 1,3 **** 20 | --- 1,9 ---- 21 | + This is an important 22 | + notice! It should 23 | + therefore be located at 24 | + the beginning of this 25 | + document! 26 | 27 | ! compress the size of the 28 | ! changes. 29 | 30 | It is important to spell 31 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/django/default.txt: -------------------------------------------------------------------------------- 1 | {% if articles|length %} 2 | {% for article in articles %} 3 | 4 | {% custom %} 5 | 6 | {# Striped table #} 7 | 8 | {{ article|default:"Hi... " }} 9 | 10 | Published on {{ article.date }} 11 | 12 | 13 | 14 | {% endfor %} 15 | {% endif %} 16 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/dos/default.txt: -------------------------------------------------------------------------------- 1 | cd \ 2 | copy a b 3 | ping 192.168.0.1 4 | @rem ping 192.168.0.1 5 | net stop sharedaccess 6 | del %tmp% /f /s /q 7 | del %temp% /f /s /q 8 | ipconfig /flushdns 9 | taskkill /F /IM JAVA.EXE /T 10 | 11 | cd Photoshop/Adobe Photoshop CS3/AMT/ 12 | if exist application.sif ( 13 | ren application.sif _application.sif 14 | ) else ( 15 | ren _application.sif application.sif 16 | ) 17 | 18 | taskkill /F /IM proquota.exe /T 19 | 20 | sfc /SCANNOW 21 | 22 | set path = test 23 | 24 | xcopy %1\*.* %2 25 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/dust/default.txt: -------------------------------------------------------------------------------- 1 | Hours 2 | 3 | 4 | {#users} 5 | {firstName}{~n} 6 | {/users} 7 | 8 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/ebnf/default.txt: -------------------------------------------------------------------------------- 1 | (* line comment *) 2 | 3 | rule = [optional] , symbol , { letters } , ( digit | symbol ) ; 4 | 5 | optional = ? something unnecessary ? ; (* trailing comment *) 6 | 7 | symbol = '!' | '@' | '#' | '$' | '%' | '&' | '*' ; 8 | digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ; 9 | letter = "A" | "B" | "C" | "D" | "E" | "F" | "G" 10 | | "H" | "I" | "J" | "K" | "L" | "M" | "N" 11 | | "O" | "P" | "Q" | "R" | "S" | "T" | "U" 12 | | "V" | "W" | "X" | "Y" | "Z" ; 13 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/elixir/default.txt: -------------------------------------------------------------------------------- 1 | defrecord Person, first_name: nil, last_name: "Dudington" do 2 | def name record do # huh ? 3 | "#{record.first_name} #{record.last_name}" 4 | end 5 | end 6 | 7 | defrecord User, name: "José", age: 25 8 | 9 | guy = Person.new first_name: "Guy" 10 | guy.name 11 | 12 | defmodule ListServer do 13 | @moduledoc """ 14 | This module provides an easy to use ListServer, useful for keeping 15 | lists of things. 16 | """ 17 | use GenServer.Behaviour 18 | alias Foo.Bar 19 | 20 | ### Public API 21 | @doc """ 22 | Starts and links a new ListServer, returning {:ok, pid} 23 | 24 | ## Example 25 | 26 | iex> {:ok, pid} = ListServer.start_link 27 | 28 | """ 29 | def start_link do 30 | :gen_server.start_link({:local, :list}, __MODULE__, [], []) 31 | end 32 | 33 | ### GenServer API 34 | def init(list) do 35 | {:ok, list} 36 | end 37 | 38 | # Clear the list 39 | def handle_cast :clear, list do 40 | {:noreply, []} 41 | end 42 | end 43 | 44 | {:ok, pid} = ListServer.start_link 45 | pid <- {:foo, "bar"} 46 | 47 | greeter = fn(x) -> IO.puts "hey #{x}" end 48 | greeter.("Bob") 49 | 50 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/elm/default.txt: -------------------------------------------------------------------------------- 1 | import Html exposing (div, button, text) 2 | import Html.App exposing (beginnerProgram) 3 | import Html.Events exposing (onClick) 4 | 5 | type Msg 6 | = Increment 7 | 8 | main = 9 | beginnerProgram 10 | { model = 0, view = view 11 | , update = \Increment model -> model + 1 } 12 | 13 | view model = 14 | div [] [ div [] [ text (toString model) ] 15 | , button [ onClick Increment ] [ text "+" ] ] 16 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/erb/default.txt: -------------------------------------------------------------------------------- 1 | <%# this is a comment %> 2 | 3 | <% @posts.each do |post| %> 4 | <%= link_to post.title, post %> 5 | <% end %> 6 | 7 | <%- available_things = things.select(&:available?) -%> 8 | <%%- x = 1 + 2 -%%> 9 | <%% value = 'real string #{@value}' %%> 10 | <%%= available_things.inspect %%> 11 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/erlang-repl/default.txt: -------------------------------------------------------------------------------- 1 | 1> Str = "abcd". 2 | "abcd" 3 | 2> L = test:length(Str). 4 | 4 5 | 3> Descriptor = {L, list_to_atom(Str)}. 6 | {4,abcd} 7 | 4> L. 8 | 4 9 | 5> b(). 10 | Descriptor = {4,abcd} 11 | L = 4 12 | Str = "abcd" 13 | ok 14 | 6> f(L). 15 | ok 16 | 7> b(). 17 | Descriptor = {4,abcd} 18 | Str = "abcd" 19 | ok 20 | 8> {L, _} = Descriptor. 21 | {4,abcd} 22 | 9> L. 23 | 4 24 | 10> 2#101. 25 | 5 26 | 11> 1.85e+3. 27 | 1850 28 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/excel/default.txt: -------------------------------------------------------------------------------- 1 | =IF(C10 <= 275.5, "Unprofitable", "Profitable") -------------------------------------------------------------------------------- /Example/Highlightr/Samples/fix/default.txt: -------------------------------------------------------------------------------- 1 | 8=FIX.4.2␁9=0␁35=8␁49=SENDERTEST␁56=TARGETTEST␁34=00000001526␁52=20120429-13:30:08.137␁1=ABC12345␁11=2012abc1234␁14=100␁17=201254321␁20=0␁30=NYSE␁31=108.20␁32=100␁38=100␁39=2␁40=1␁47=A␁54=5␁55=BRK␁59=2␁60=20120429-13:30:08.000␁65=B␁76=BROKER␁84=0␁100=NYSE␁111=100␁150=2␁151=0␁167=CS␁377=N␁10000=SampleCustomTag␁10=123␁ 2 | 3 | 8=FIX.4.29=035=849=SENDERTEST56=TARGETTEST34=0000000152652=20120429-13:30:08.1371=ABC1234511=2012abc123414=10017=20125432120=030=NYSE31=108.2032=10038=10039=240=147=A54=555=BRK59=260=20120429-13:30:08.00065=B76=BROKER84=0100=NYSE111=100150=2151=0167=CS377=N10000=SampleCustomTag10=123 4 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/flix/default.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * An example of Flix for syntax highlighting. 3 | */ 4 | 5 | // Here is a namespace. 6 | namespace a.b.c { 7 | 8 | // Here are some literals. 9 | def b: Bool = true 10 | def c: Char = 'a' 11 | def f: Float = 1.23 12 | def i: Int = 42 13 | def s: Str = "string" 14 | 15 | // Here are some relations. 16 | rel LitStm(r: Str, c: Int) 17 | rel AddStm(r: Str, x: Str, y: Str) 18 | rel DivStm(r: Str, x: Str, y: Str) 19 | 20 | // Here is a lattice. 21 | lat LocalVar(k: Str, v: Constant) 22 | 23 | // Here is an index. 24 | index LitStm{{r}, {r, c}} 25 | 26 | // Here is an enum. 27 | enum Constant { 28 | case Top, 29 | 30 | case Cst(Int), 31 | 32 | case Bot 33 | } 34 | 35 | // Here is a function. 36 | def leq(e1: Constant, e2: Constant): Bool = match (e1, e2) with { 37 | case (Constant.Bot, _) => true 38 | case (Constant.Cst(n1), Constant.Cst(n2)) => n1 == n2 39 | case (_, Constant.Top) => true 40 | case _ => false 41 | } 42 | 43 | // Here are some rules. 44 | LocalVar(r, alpha(c)) :- LitStm(r, c). 45 | 46 | LocalVar(r, sum(v1, v2)) :- AddStm(r, x, y), 47 | LocalVar(x, v1), 48 | LocalVar(y, v2). 49 | } 50 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/fortran/default.txt: -------------------------------------------------------------------------------- 1 | subroutine test_sub(k) 2 | implicit none 3 | 4 | !=============================== 5 | ! This is a test subroutine 6 | !=============================== 7 | 8 | integer, intent(in) :: k 9 | double precision, allocatable :: a(:) 10 | integer, parameter :: nmax=10 11 | integer :: i 12 | 13 | allocate (a(nmax)) 14 | 15 | do i=1,nmax 16 | a(i) = dble(i)*5.d0 17 | enddo 18 | 19 | print *, 'Hello world' 20 | write (*,*) a(:) 21 | 22 | end subroutine test_sub 23 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/fsharp/default.txt: -------------------------------------------------------------------------------- 1 | open System 2 | 3 | // Single line comment... 4 | (* 5 | This is a 6 | multiline comment. 7 | *) 8 | let checkList alist = 9 | match alist with 10 | | [] -> 0 11 | | [a] -> 1 12 | | [a; b] -> 2 13 | | [a; b; c] -> 3 14 | | _ -> failwith "List is too big!" 15 | 16 | 17 | let text = "Some text..." 18 | let text2 = @"A ""verbatim"" string..." 19 | let catalog = """ 20 | Some "long" string... 21 | """ 22 | 23 | let rec fib x = if x <= 2 then 1 else fib(x-1) + fib(x-2) 24 | 25 | let fibs = 26 | Async.Parallel [ for i in 0..40 -> async { return fib(i) } ] 27 | |> Async.RunSynchronously 28 | 29 | type Sprocket(gears) = 30 | member this.Gears : int = gears 31 | 32 | [] 33 | type Animal = 34 | abstract Speak : unit -> unit 35 | 36 | type Widget = 37 | | RedWidget 38 | | GreenWidget 39 | 40 | type Point = {X: float; Y: float;} 41 | 42 | [] 43 | type s 44 | let minutte = 60 45 | 46 | type DefaultMailbox<'a>() = 47 | let mutable inbox = ConcurrentQueue<'a>() 48 | let awaitMsg = new AutoResetEvent(false) 49 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/gams/default.txt: -------------------------------------------------------------------------------- 1 | SETS 2 | I canning plants / SEATTLE, SAN-DIEGO / 3 | J markets / NEW-YORK, CHICAGO, TOPEKA / ; 4 | PARAMETERS 5 | A(I) capacity of plant i in cases 6 | / SEATTLE 350 7 | SAN-DIEGO 600 / 8 | B(J) demand at market j in cases 9 | / NEW-YORK 325 10 | CHICAGO 300 11 | TOPEKA 275 / ; 12 | TABLE D(I,J) distance in thousands of miles 13 | NEW-YORK CHICAGO TOPEKA 14 | SEATTLE 2.5 1.7 1.8 15 | SAN-DIEGO 2.5 1.8 1.4 ; 16 | SCALAR F freight in dollars per case per thousand miles /90/ ; 17 | PARAMETER C(I,J) transport cost in thousands of dollars per case ; 18 | C(I,J) = F * D(I,J) / 1000 ; 19 | VARIABLES 20 | X(I,J) shipment quantities in cases 21 | Z total transportation costs in thousands of dollars ; 22 | POSITIVE VARIABLE X ; 23 | EQUATIONS 24 | COST define objective function 25 | SUPPLY(I) observe supply limit at plant i 26 | DEMAND(J) satisfy demand at market j ; 27 | COST .. Z =E= SUM((I,J), C(I,J)*X(I,J)) ; 28 | SUPPLY(I) .. SUM(J, X(I,J)) =L= A(I) ; 29 | DEMAND(J) .. SUM(I, X(I,J)) =G= B(J) ; 30 | MODEL TRANSPORT /ALL/ ; 31 | SOLVE TRANSPORT USING LP MINIMIZING Z ; 32 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/gauss/default.txt: -------------------------------------------------------------------------------- 1 | // This is a test 2 | #include pv.sdf 3 | 4 | proc (1) = calc(local__row, fin); 5 | if local__row; 6 | nr = local__row; 7 | else; 8 | k = colsf(fin); 9 | nr = floor(minc(maxbytes/(k*8*3.5)|maxvec/(k+1))); 10 | endif; 11 | retp(nr); 12 | endp; 13 | 14 | s = "{% test string %}"; 15 | 16 | fn twopi=pi*2; 17 | 18 | /* Takes in multiple numbers. 19 | Output sum */ 20 | keyword add(str); 21 | local tok,sum; 22 | sum = 0; 23 | do until str $== ""; 24 | { tok, str } = token(str); 25 | sum = sum + stof(tok); 26 | endo; 27 | print "Sum is: " sum; 28 | endp; 29 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/gcode/default.txt: -------------------------------------------------------------------------------- 1 | O003 (DIAMOND SQUARE) 2 | N2 G54 G90 G49 G80 3 | N3 M6 T1 (1.ENDMILL) 4 | N4 M3 S1800 5 | N5 G0 X-.6 Y2.050 6 | N6 G43 H1 Z.1 7 | N7 G1 Z-.3 F50. 8 | N8 G41 D1 Y1.45 9 | N9 G1 X0 F20. 10 | N10 G2 J-1.45 11 | (CUTTER COMP CANCEL) 12 | N11 G1 Z-.2 F50. 13 | N12 Y-.990 14 | N13 G40 15 | N14 G0 X-.6 Y1.590 16 | N15 G0 Z.1 17 | N16 M5 G49 G28 G91 Z0 18 | N17 CALL O9456 19 | N18 #500=0.004 20 | N19 #503=[#500+#501] 21 | N20 VC45=0.0006 22 | VS4=0.0007 23 | N21 G90 G10 L20 P3 X5.Y4. Z6.567 24 | N22 G0 X5000 25 | N23 IF [#1 LT 0.370] GOTO 49 26 | N24 X-0.678 Y+.990 27 | N25 G84.3 X-0.1 28 | N26 #4=#5*COS[45] 29 | N27 #4=#5*SIN[45] 30 | N28 VZOFZ=652.9658 31 | % 32 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/gherkin/default.txt: -------------------------------------------------------------------------------- 1 | # language: en 2 | Feature: Addition 3 | In order to avoid silly mistakes 4 | As a math idiot 5 | I want to be told the sum of two numbers 6 | 7 | @this_is_a_tag 8 | Scenario Outline: Add two numbers 9 | * I have a calculator 10 | Given I have entered into the calculator 11 | And I have entered into the calculator 12 | When I press 13 | Then the result should be on the screen 14 | And I have a string like 15 | """ 16 | Here is 17 | some 18 | multiline text 19 | """ 20 | 21 | Examples: 22 | | input_1 | input_2 | button | output | 23 | | 20 | 30 | add | 50 | 24 | | 2 | 5 | add | 7 | 25 | | 0 | 40 | add | 40 | 26 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/glsl/default.txt: -------------------------------------------------------------------------------- 1 | // vertex shader 2 | #version 150 3 | in vec2 in_Position; 4 | in vec3 in_Color; 5 | 6 | out vec3 ex_Color; 7 | void main(void) { 8 | gl_Position = vec4(in_Position.x, in_Position.y, 0.0, 1.0); 9 | ex_Color = in_Color; 10 | } 11 | 12 | 13 | // geometry shader 14 | #version 150 15 | 16 | layout(triangles) in; 17 | layout(triangle_strip, max_vertices = 3) out; 18 | 19 | void main() { 20 | for(int i = 0; i < gl_in.length(); i++) { 21 | gl_Position = gl_in[i].gl_Position; 22 | EmitVertex(); 23 | } 24 | EndPrimitive(); 25 | } 26 | 27 | 28 | // fragment shader 29 | #version 150 30 | precision highp float; 31 | 32 | in vec3 ex_Color; 33 | out vec4 gl_FragColor; 34 | 35 | void main(void) { 36 | gl_FragColor = vec4(ex_Color, 1.0); 37 | } 38 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/go/default.txt: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "fmt" 4 | 5 | func main() { 6 | ch := make(chan float64) 7 | ch <- 1.0e10 // magic number 8 | x, ok := <- ch 9 | defer fmt.Println(`exitting now\`) 10 | go println(len("hello world!")) 11 | return 12 | } 13 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/go/swift-like.txt: -------------------------------------------------------------------------------- 1 | func makeRequest(method string, url string, cb func(error, io.ReadCloser)) { 2 | req, _ := http.NewRequest(method, url, nil) 3 | resp, err := http.DefaultClient.Do(req) 4 | if err != nil { 5 | cb(err, nil) 6 | } else { 7 | cb(err, resp.Body) 8 | } 9 | } 10 | func main() { 11 | makeRequest("GET", "http://ipinfo.io/json", func(err error, body io.ReadCloser) { 12 | defer body.Close() 13 | io.Copy(os.Stdout, body) 14 | }) 15 | } 16 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/golo/default.txt: -------------------------------------------------------------------------------- 1 | module hello 2 | 3 | function dyno = -> DynamicObject() 4 | 5 | struct human = { name } 6 | 7 | @annotated 8 | function main = |args| { 9 | let a = 1 10 | var b = 2 11 | 12 | println("hello") 13 | 14 | let john = human("John Doe") 15 | } 16 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/haml/default.txt: -------------------------------------------------------------------------------- 1 | !!! XML 2 | %html 3 | %body 4 | %h1.jumbo{:id=>"a", :style=>'font-weight: normal', :title=>title} highlight.js 5 | /html comment 6 | -# ignore this line 7 | %ul(style='margin: 0') 8 | -items.each do |i| 9 | %i= i 10 | = variable 11 | =variable2 12 | ~ variable3 13 | ~variable4 14 | The current year is #{DataTime.now.year}. 15 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/handlebars/default.txt: -------------------------------------------------------------------------------- 1 | 2 | {{!-- only show if author exists --}} 3 | {{#if author}} 4 | {{firstName}} {{lastName}} 5 | {{/if}} 6 | 7 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/haskell/default.txt: -------------------------------------------------------------------------------- 1 | {-# LANGUAGE TypeSynonymInstances #-} 2 | module Network.UDP 3 | ( DataPacket(..) 4 | , openBoundUDPPort 5 | , openListeningUDPPort 6 | , pingUDPPort 7 | , sendUDPPacketTo 8 | , recvUDPPacket 9 | , recvUDPPacketFrom 10 | ) where 11 | 12 | import qualified Data.ByteString as Strict (ByteString, concat, singleton) 13 | import qualified Data.ByteString.Lazy as Lazy (ByteString, toChunks, fromChunks) 14 | import Data.ByteString.Char8 (pack, unpack) 15 | import Network.Socket hiding (sendTo, recv, recvFrom) 16 | import Network.Socket.ByteString (sendTo, recv, recvFrom) 17 | 18 | -- Type class for converting StringLike types to and from strict ByteStrings 19 | class DataPacket a where 20 | toStrictBS :: a -> Strict.ByteString 21 | fromStrictBS :: Strict.ByteString -> a 22 | 23 | instance DataPacket Strict.ByteString where 24 | toStrictBS = id 25 | {-# INLINE toStrictBS #-} 26 | fromStrictBS = id 27 | {-# INLINE fromStrictBS #-} 28 | 29 | openBoundUDPPort :: String -> Int -> IO Socket 30 | openBoundUDPPort uri port = do 31 | s <- getUDPSocket 32 | bindAddr <- inet_addr uri 33 | let a = SockAddrInet (toEnum port) bindAddr 34 | bindSocket s a 35 | return s 36 | 37 | pingUDPPort :: Socket -> SockAddr -> IO () 38 | pingUDPPort s a = sendTo s (Strict.singleton 0) a >> return () 39 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/hsp/default.txt: -------------------------------------------------------------------------------- 1 | #include "foo.hsp" 2 | 3 | // line comment 4 | message = "Hello, World!" 5 | message2 = {"Multi 6 | line 7 | string"} 8 | num = 0 9 | mes message 10 | 11 | input num : button "sqrt", *label 12 | stop 13 | 14 | *label 15 | /* 16 | block comment 17 | */ 18 | if(num >= 0) { 19 | dialog "sqrt(" + num + ") = " + sqrt(num) 20 | } else { 21 | dialog "error", 1 22 | } 23 | stop 24 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/htmlbars/default.txt: -------------------------------------------------------------------------------- 1 | 2 | {{!-- only output this author names if an author exists --}} 3 | {{#if author}} 4 | {{#playwright-wrapper playwright=author action=(mut author) as |playwright|}} 5 | {{playwright.firstName}} {{playwright.lastName}} 6 | {{/playwright-wrapper}} 7 | {{/if}} 8 | {{yield}} 9 | 10 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/http/default.txt: -------------------------------------------------------------------------------- 1 | POST /task?id=1 HTTP/1.1 2 | Host: example.org 3 | Content-Type: application/json; charset=utf-8 4 | Content-Length: 137 5 | 6 | { 7 | "status": "ok", 8 | "extended": true, 9 | "results": [ 10 | {"value": 0, "type": "int64"}, 11 | {"value": 1.0e+3, "type": "decimal"} 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/hy/default.txt: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env hy 2 | 3 | (import os.path) 4 | 5 | (import hy.compiler) 6 | (import hy.core) 7 | 8 | 9 | ;; absolute path for Hy core 10 | (setv *core-path* (os.path.dirname hy.core.--file--)) 11 | 12 | 13 | (defn collect-macros [collected-names opened-file] 14 | (while True 15 | (try 16 | (let [data (read opened-file)] 17 | (if (and (in (first data) 18 | '(defmacro defmacro/g! defn)) 19 | (not (.startswith (second data) "_"))) 20 | (.add collected-names (second data)))) 21 | (except [e EOFError] (break))))) 22 | 23 | 24 | (defmacro core-file [filename] 25 | `(open (os.path.join *core-path* ~filename))) 26 | 27 | 28 | (defmacro contrib-file [filename] 29 | `(open (os.path.join *core-path* ".." "contrib" ~filename))) 30 | 31 | 32 | (defn collect-core-names [] 33 | (doto (set) 34 | (.update hy.core.language.*exports*) 35 | (.update hy.core.shadow.*exports*) 36 | (collect-macros (core-file "macros.hy")) 37 | (collect-macros (core-file "bootstrap.hy")))) 38 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/inform7/default.txt: -------------------------------------------------------------------------------- 1 | Book 1 - Language Definition Testing File 2 | 3 | [Comments in Inform 7 can be [nested] inside one another] 4 | 5 | Syntax highlighting is an action applying to one thing. 6 | Understand "highlight [something preferably codeish]" as syntax highlighting. 7 | 8 | Code is a kind of thing. Code is usually plural-named. 9 | 10 | Code can be highlighted. Code is usually not highlighted. 11 | 12 | Check syntax highlighting: 13 | unless the noun is code: 14 | say "[The noun] isn't source code you can highlight."; 15 | rule fails. 16 | 17 | Carry out syntax highlighting: 18 | now the noun is highlighted. 19 | 20 | Table of Programming Languages 21 | language utility 22 | ruby "Web back-end development" 23 | lua "Embedded scripting" 24 | erlang "High-concurrency server applications" -------------------------------------------------------------------------------- /Example/Highlightr/Samples/ini/default.txt: -------------------------------------------------------------------------------- 1 | ; boilerplate 2 | [package] 3 | name = "some_name" 4 | authors = ["Author"] 5 | description = "This is \ 6 | a description" 7 | 8 | [[lib]] 9 | name = ${NAME} 10 | default = True 11 | auto = no 12 | counter = 1_000 13 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/irpf90/default.txt: -------------------------------------------------------------------------------- 1 | BEGIN_PROVIDER [ integer(bit_kind), psi_det_sorted_bit, (N_int,2,psi_det_size) ] 2 | &BEGIN_PROVIDER [ double precision, psi_coef_sorted_bit, (psi_det_size,N_states) ] 3 | implicit none 4 | BEGIN_DOC 5 | ! Determinants on which we apply for perturbation. 6 | ! They are sorted by determinants interpreted as integers. Useful 7 | ! to accelerate the search of a random determinant in the wave 8 | ! function. 9 | END_DOC 10 | integer :: i,j,k 11 | integer, allocatable :: iorder(:) 12 | integer*8, allocatable :: bit_tmp(:) 13 | integer*8, external :: det_search_key 14 | 15 | allocate ( iorder(N_det), bit_tmp(N_det) ) 16 | 17 | do i=1,N_det 18 | iorder(i) = i 19 | !DIR$ FORCEINLINE 20 | bit_tmp(i) = det_search_key(psi_det(1,1,i),N_int) 21 | enddo 22 | call isort(bit_tmp,iorder,N_det) 23 | !DIR$ IVDEP 24 | do i=1,N_det 25 | do j=1,N_int 26 | psi_det_sorted_bit(j,1,i) = psi_det(j,1,iorder(i)) 27 | psi_det_sorted_bit(j,2,i) = psi_det(j,2,iorder(i)) 28 | enddo 29 | do k=1,N_states 30 | psi_coef_sorted_bit(i,k) = psi_coef(iorder(i),k) 31 | enddo 32 | enddo 33 | 34 | deallocate(iorder, bit_tmp) 35 | 36 | END_PROVIDER 37 | 38 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/java/default.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * @author John Smith 3 | */ 4 | package l2f.gameserver.model; 5 | 6 | public abstract class L2Char extends L2Object { 7 | public static final Short ERROR = 0x0001; 8 | 9 | public void moveTo(int x, int y, int z) { 10 | _ai = null; 11 | log("Should not be called"); 12 | if (1 > 5) { // wtf!? 13 | return; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/javascript/default.txt: -------------------------------------------------------------------------------- 1 | function $initHighlight(block, cls) { 2 | try { 3 | if (cls.search(/\bno\-highlight\b/) != -1) 4 | return process(block, true, 0x0F) + 5 | ` class="${cls}"`; 6 | } catch (e) { 7 | /* handle exception */ 8 | } 9 | for (var i = 0 / 2; i < classes.length; i++) { 10 | if (checkCondition(classes[i]) === undefined) 11 | console.log('undefined'); 12 | } 13 | } 14 | 15 | export $initHighlight; 16 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/javascript/sample1.txt: -------------------------------------------------------------------------------- 1 | // This was mis-detected as HSP and Perl because parsing of 2 | // keywords in those languages allowed adjacent dots 3 | 4 | window.requestAnimationFrame(function render() { 5 | var pos = state.pos; 6 | 7 | canvasEl.width = 500; 8 | canvasEl.height = 300; 9 | 10 | if (dpad.right) { 11 | pos.x += 3; 12 | } else if (dpad.left) { 13 | pos.x -= 3; 14 | } 15 | 16 | ctx.fillStyle = '#AF8452'; 17 | ctx.fillRect(pos.x + 5, pos.y - 10, 10, 10); 18 | 19 | window.requestAnimationFrame(render); 20 | }); 21 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/javascript/short-plain.txt: -------------------------------------------------------------------------------- 1 | const cluster = require('cluster'); 2 | const numCPUs = require('os').cpus().length; 3 | 4 | if (cluster.isMaster) { 5 | for (var i = 0; i < numCPUs; i++) { 6 | cluster.fork(); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/jboss-cli/default.txt: -------------------------------------------------------------------------------- 1 | jms-queue add --queue-address=myQueue --entries=queue/myQueue 2 | 3 | deploy /path/to/file.war 4 | 5 | /system-property=prop1:add(value=value1) 6 | 7 | 8 | 9 | /extension=org.jboss.as.modcluster:add 10 | 11 | ./foo=bar:remove 12 | 13 | /subsystem=security/security-domain=demo-realm/authentication=classic:add 14 | 15 | /subsystem=security/security-domain=demo-realm/authentication=classic/login-module=UsersRoles:add( \ 16 | code=UsersRoles, \ 17 | flag=required, \ 18 | module-options= { \ 19 | usersProperties=auth/demo-users.properties, \ 20 | rolesProperties =auth/demo-roles.properties, \ 21 | hashAlgorithm= MD5, \ 22 | hashCharset="UTF-8" \ 23 | } \ 24 | ) 25 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/json/default.txt: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "title": "apples", 4 | "count": [12000, 20000], 5 | "description": {"text": "...", "sensitive": false} 6 | }, 7 | { 8 | "title": "oranges", 9 | "count": [17500, null], 10 | "description": {"text": "...", "sensitive": false} 11 | } 12 | ] 13 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/julia-repl/default.txt: -------------------------------------------------------------------------------- 1 | julia> function foo(x) x + 1 end 2 | foo (generic function with 1 method) 3 | 4 | julia> foo(42) 5 | 43 6 | 7 | julia> foo(42) === 43. 8 | false 9 | 10 | 11 | Here we match all three lines of code: 12 | 13 | julia> function foo(x::Float64) 14 | 42. - x 15 | end 16 | foo (generic function with 2 methods) 17 | 18 | julia> for x in Any[1, 2, 3.4] 19 | println("foo($x) = $(foo(x))") 20 | end 21 | foo(1) = 2 22 | foo(2) = 3 23 | foo(3.4) = 38.6 24 | 25 | 26 | ... unless it is not properly indented: 27 | 28 | julia> function foo(x) 29 | x + 1 30 | end 31 | 32 | 33 | Ordinary Julia code does not get highlighted: 34 | 35 | Pkg.add("Combinatorics") 36 | abstract type Foo end 37 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/kotlin/default.txt: -------------------------------------------------------------------------------- 1 | import kotlin.lang.test 2 | 3 | trait A { 4 | fun x() 5 | } 6 | 7 | fun xxx() : Int { 8 | return 888 9 | } 10 | 11 | public fun main(args : Array) { 12 | } 13 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/ldif/default.txt: -------------------------------------------------------------------------------- 1 | # Example LDAP user 2 | dn: uid=user.0,ou=People,dc=example,dc=com 3 | objectClass: top 4 | objectClass: person 5 | objectClass: organizationalPerson 6 | objectClass: inetOrgPerson 7 | givenName: Morris 8 | sn: Day 9 | cn: Morris Day 10 | initials: MD 11 | employeeNumber: 0 12 | uid: user.0 13 | mail: user.0@example.com 14 | userPassword: password 15 | telephoneNumber: +1 042 100 3866 16 | homePhone: +1 039 680 4135 17 | pager: +1 284 199 0966 18 | mobile: +1 793 707 0251 19 | street: 90280 Spruce Street 20 | l: Minneapolis 21 | st: MN 22 | postalCode: 50401 23 | postalAddress: Morris Day$90280 Spruce Street$Minneapolis, MN 50401 24 | description: This is the description for Morris Day. 25 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/leaf/default.txt: -------------------------------------------------------------------------------- 1 | #empty(friends) { 2 | Try adding some friends! 3 | } ##loop(friends, "friend") { 4 | #(friend.name) 5 | } 6 | 7 | #someTag(parameter.list, goes, "here") { 8 | This is an optional body here 9 | } 10 | 11 | #index(friends, "0") { 12 | Hello, #(self)! 13 | } ##else() { 14 | Nobody's there! 15 | } 16 | 17 | #() 18 | 19 | #raw() { 20 | Hello 21 | } 22 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/less/default.txt: -------------------------------------------------------------------------------- 1 | @import "fruits"; 2 | 3 | @rhythm: 1.5em; 4 | 5 | @media screen and (min-resolution: 2dppx) { 6 | body {font-size: 125%} 7 | } 8 | 9 | section > .foo + #bar:hover [href*="less"] { 10 | margin: @rhythm 0 0 @rhythm; 11 | padding: calc(5% + 20px); 12 | background: #f00ba7 url(http://placehold.alpha-centauri/42.png) no-repeat; 13 | background-image: linear-gradient(-135deg, wheat, fuchsia) !important ; 14 | background-blend-mode: multiply; 15 | } 16 | 17 | @font-face { 18 | font-family: /* ? */ 'Omega'; 19 | src: url('../fonts/omega-webfont.woff?v=2.0.2'); 20 | } 21 | 22 | .icon-baz::before { 23 | display: inline-block; 24 | font-family: "Omega", Alpha, sans-serif; 25 | content: "\f085"; 26 | color: rgba(98, 76 /* or 54 */, 231, .75); 27 | } 28 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/lisp/default.txt: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env csi 2 | 3 | (defun prompt-for-cd () 4 | "Prompts 5 | for CD" 6 | (prompt-read "Title" 1.53 1 2/4 1.7 1.7e0 2.9E-4 +42 -7 #b001 #b001/100 #o777 #O777 #xabc55 #c(0 -5.6)) 7 | (prompt-read "Artist" &rest) 8 | (or (parse-integer (prompt-read "Rating") :junk-allowed t) 0) 9 | (if x (format t "yes") (format t "no" nil) ;and here comment 10 | ) 11 | ;; second line comment 12 | '(+ 1 2) 13 | (defvar *lines*) ; list of all lines 14 | (position-if-not #'sys::whitespacep line :start beg)) 15 | (quote (privet 1 2 3)) 16 | '(hello world) 17 | (* 5 7) 18 | (1 2 34 5) 19 | (:use "aaaa") 20 | (let ((x 10) (y 20)) 21 | (print (+ x y)) 22 | ) -------------------------------------------------------------------------------- /Example/Highlightr/Samples/livecodeserver/default.txt: -------------------------------------------------------------------------------- 1 | 2000000000 then 21 | put "Welcome to the future!" 22 | else 23 | return "something" 24 | end if 25 | end myFunction 26 | 27 | 28 | --| END OF blog.lc 29 | --| Location: ./system/application/controllers/blog.lc 30 | ---------------------------------------------------------------------- 31 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/livescript/default.txt: -------------------------------------------------------------------------------- 1 | # take the first n objects from a list 2 | take = (n, [x, ...xs]:list) --> 3 | | n <= 0 => [] 4 | | empty list => [] 5 | | otherwise => [x] ++ take n - 1, xs 6 | 7 | take 2, [1, 2, 3, 4, 5] 8 | 9 | # Curried functions 10 | take-three = take 3 11 | take-three [6, 7, 8, 9, 10] 12 | 13 | # Function composition 14 | last-three = reverse >> take-three >> reverse 15 | last-three [1 to 8] 16 | 17 | # List comprehensions and piping 18 | t1 = 19 | * id: 1 20 | name: 'george' 21 | * id: 2 22 | name: 'mike' 23 | * id: 3 24 | name: 'donald' 25 | 26 | t2 = 27 | * id: 2 28 | age: 21 29 | * id: 1 30 | age: 20 31 | * id: 3 32 | age: 26 33 | [{id:id1, name, age} 34 | for {id:id1, name} in t1 35 | for {id:id2, age} in t2 36 | where id1 is id2] 37 | |> sort-by \id 38 | |> JSON.stringify 39 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/lsl/default.txt: -------------------------------------------------------------------------------- 1 | default 2 | { 3 | state_entry() 4 | { 5 | llSay(PUBLIC_CHANNEL, "Hello, Avatar!"); 6 | } 7 | 8 | touch_start(integer num_detected) 9 | { 10 | llSay(PUBLIC_CHANNEL, "Touched."); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/lua/default.txt: -------------------------------------------------------------------------------- 1 | --[[ 2 | Simple signal/slot implementation 3 | ]] 4 | local signal_mt = { 5 | __index = { 6 | register = table.insert 7 | } 8 | } 9 | function signal_mt.__index:emit(... --[[ Comment in params ]]) 10 | for _, slot in ipairs(self) do 11 | slot(self, ...) 12 | end 13 | end 14 | local function create_signal() 15 | return setmetatable({}, signal_mt) 16 | end 17 | 18 | -- Signal test 19 | local signal = create_signal() 20 | signal:register(function(signal, ...) 21 | print(...) 22 | end) 23 | signal:emit('Answer to Life, the Universe, and Everything:', 42) 24 | 25 | --[==[ [=[ [[ 26 | Nested ]] 27 | multi-line ]=] 28 | comment ]==] 29 | [==[ Nested 30 | [=[ multi-line 31 | [[ string 32 | ]] ]=] ]==] 33 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/makefile/default.txt: -------------------------------------------------------------------------------- 1 | # Makefile 2 | 3 | BUILDDIR = _build 4 | EXTRAS ?= $(BUILDDIR)/extras 5 | 6 | .PHONY: main clean 7 | 8 | main: 9 | @echo "Building main facility..." 10 | build_main $(BUILDDIR) 11 | 12 | clean: 13 | rm -rf $(BUILDDIR)/* 14 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/markdown/default.txt: -------------------------------------------------------------------------------- 1 | # hello world 2 | 3 | you can write text [with links](http://example.com) inline or [link references][1]. 4 | 5 | * one _thing_ has *em*phasis 6 | * two __things__ are **bold** 7 | 8 | [1]: http://example.com 9 | 10 | --- 11 | 12 | hello world 13 | =========== 14 | 15 | 16 | 17 | > markdown is so cool 18 | 19 | so are code segments 20 | 21 | 1. one thing (yeah!) 22 | 2. two thing `i can write code`, and `more` wipee! 23 | 24 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/mathematica/default.txt: -------------------------------------------------------------------------------- 1 | (* ::Package:: *) 2 | 3 | (* Mathematica Package *) 4 | 5 | BeginPackage["SomePkg`"] 6 | 7 | Begin["`Private`"] 8 | 9 | SomeFn[ns_List] := Fold[Function[{x, y}, x + y], 0, Map[# * 2 &, ns]]; 10 | Print[$ActivationKey]; 11 | 12 | End[] (* End Private Context *) 13 | 14 | EndPackage[] 15 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/matlab/default.txt: -------------------------------------------------------------------------------- 1 | n = 20; % number of points 2 | points = [random('unid', 100, n, 1), random('unid', 100, n, 1)]; 3 | len = zeros(1, n - 1); 4 | points = sortrows(points); 5 | %% Initial set of points 6 | plot(points(:,1),points(:,2)); 7 | for i = 1: n-1 8 | len(i) = points(i + 1, 1) - points(i, 1); 9 | end 10 | while(max(len) > 2 * min(len)) 11 | [d, i] = max(len); 12 | k = on_margin(points, i, d, -1); 13 | m = on_margin(points, i + 1, d, 1); 14 | xm = 0; ym = 0; 15 | %% New point 16 | if(i == 1 || i + 1 == n) 17 | xm = mean(points([i,i+1],1)) 18 | ym = mean(points([i,i+1],2)) 19 | else 20 | [xm, ym] = dlg1(points([k, i, i + 1, m], 1), ... 21 | points([k, i, i + 1, m], 2)) 22 | end 23 | 24 | points = [ points(1:i, :); [xm, ym]; points(i + 1:end, :)]; 25 | end 26 | 27 | %{ 28 | This is a block comment. Please ignore me. 29 | %} 30 | 31 | function [net] = get_fit_network(inputs, targets) 32 | % Create Network 33 | numHiddenNeurons = 20; % Adjust as desired 34 | net = newfit(inputs,targets,numHiddenNeurons); 35 | net.trainParam.goal = 0.01; 36 | net.trainParam.epochs = 1000; 37 | % Train and Apply Network 38 | [net,tr] = train(net,inputs,targets); 39 | end 40 | 41 | foo_matrix = [1, 2, 3; 4, 5, 6]'''; 42 | foo_cell = {1, 2, 3; 4, 5, 6}''.'.'; 43 | 44 | cell2flatten = {1,2,3,4,5}; 45 | flattenedcell = cat(1, cell2flatten{:}); 46 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/maxima/default.txt: -------------------------------------------------------------------------------- 1 | /* Maxima computer algebra system */ 2 | 3 | /* symbolic constants */ 4 | 5 | [true, false, unknown, inf, minf, ind, 6 | und, %e, %i, %pi, %phi, %gamma]; 7 | 8 | /* programming keywords */ 9 | 10 | if a then b elseif c then d else f; 11 | for x:1 thru 10 step 2 do print(x); 12 | for z:-2 while z < 0 do print(z); 13 | for m:0 unless m > 10 do print(m); 14 | for x in [1, 2, 3] do print(x); 15 | foo and bar or not baz; 16 | 17 | /* built-in variables */ 18 | 19 | [_, __, %, %%, linel, simp, dispflag, 20 | stringdisp, lispdisp, %edispflag]; 21 | 22 | /* built-in functions */ 23 | 24 | [sin, cosh, exp, atan2, sqrt, log, struve_h, 25 | sublist_indices, read_array]; 26 | 27 | /* user-defined symbols */ 28 | 29 | [foo, ?bar, baz%, quux_mumble_blurf]; 30 | 31 | /* symbols using Unicode characters */ 32 | 33 | [Љ, Щ, щ, Ӄ, ЩЩЩ, ӃӃЉЉщ]; 34 | 35 | /* numbers */ 36 | 37 | ibase : 18 $ 38 | [0, 1234, 1234., 0abcdefgh]; 39 | reset (ibase) $ 40 | [.54321, 3.21e+0, 12.34B56]; 41 | 42 | /* strings */ 43 | 44 | s1 : "\"now\" is"; 45 | s2 : "the 'time' for all good men"; 46 | print (s1, s2, "to come to the aid", 47 | "of their country"); 48 | 49 | /* expressions */ 50 | 51 | foo (x, y, z) := 52 | if x > 1 + y 53 | then z - x*y 54 | elseif y <= 100! 55 | then x/(y + z)^2 56 | else z - y . x . y; 57 | 58 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/mel/default.txt: -------------------------------------------------------------------------------- 1 | proc string[] getSelectedLights() 2 | 3 | { 4 | string $selectedLights[]; 5 | 6 | string $select[] = `ls -sl -dag -leaf`; 7 | 8 | for ( $shape in $select ) 9 | { 10 | // Determine if this is a light. 11 | // 12 | string $class[] = getClassification( `nodeType $shape` ); 13 | 14 | 15 | if ( ( `size $class` ) > 0 && ( "light" == $class[0] ) ) 16 | { 17 | $selectedLights[ `size $selectedLights` ] = $shape; 18 | } 19 | } 20 | 21 | // Result is an array of all lights included in 22 | 23 | // current selection list. 24 | return $selectedLights; 25 | } 26 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/mercury/default.txt: -------------------------------------------------------------------------------- 1 | % "Hello World" in Mercury. 2 | :- module hello. 3 | 4 | 5 | :- interface. 6 | :- import_module io. 7 | 8 | :- pred main(io::di, io::uo) is det. 9 | 10 | 11 | :- implementation. 12 | 13 | main(!IO) :- 14 | io.write_string("Hello, world\n", !IO). 15 | 16 | :- pred filter(pred(T), list(T), list(T), list(T) ). 17 | :- mode filter(in(pred(in) is semidet), in, out, out ) is det. 18 | 19 | filter(_, [], [], []). 20 | filter(P, [X | Xs], Ys, Zs) :- 21 | filter(P, Xs, Ys0, Zs0), 22 | ( if P(X) then Ys = [X | Ys0], Zs = Zs0 23 | else Ys = Ys0 , Zs = [X | Zs0] 24 | ). 25 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/mipsasm/default.txt: -------------------------------------------------------------------------------- 1 | .text 2 | .global AckermannFunc 3 | 4 | # Preconditions: 5 | # 1st parameter ($a0) m 6 | # 2nd parameter ($a1) n 7 | # Postconditions: 8 | # result in ($v0) = value of A(m,n) 9 | 10 | AckermannFunc: 11 | addi $sp, $sp, -8 12 | sw $s0, 4($sp) 13 | sw $ra, 0($sp) 14 | 15 | # move the parameter registers to temporary - no, only when nec. 16 | 17 | LABEL_IF: bne $a0, $zero, LABEL_ELSE_IF 18 | 19 | addi $v0, $a1, 1 20 | 21 | # jump to LABEL_DONE 22 | j LABEL_DONE 23 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/mojolicious/default.txt: -------------------------------------------------------------------------------- 1 | %layout 'bootstrap'; 2 | % title "Import your subs"; 3 | %= form_for '/settings/import' => (method => 'post', enctype => 'multipart/form-data') => begin 4 | %= file_field 'opmlfile' => multiple => 'true' 5 | %= submit_button 'Import', 'class' => 'btn' 6 | % end 7 | 8 | % if ($subs) { 9 | 10 | % for my $item (@$subs) { 11 | % my ($dir, $align) = ($item->{rtl}) ? ('rtl', 'right') : ('ltr', 'left'); 12 | rss 13 | <%== $item->{title} %> 14 | 15 | Categories 16 | %= join q{, }, sort @{ $item->{categories} || [] }; 17 | 18 | 19 | % } 20 | 21 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/monkey/default.txt: -------------------------------------------------------------------------------- 1 | #IMAGE_FILES="*.png|*.jpg" 2 | #SOUND_FILES="*.wav|*.ogg" 3 | #MUSIC_FILES="*.wav|*.ogg" 4 | #BINARY_FILES="*.bin|*.dat" 5 | 6 | Import mojo 7 | 8 | ' The main class which expends Mojo's 'App' class: 9 | Class GameApp Extends App 10 | Field player:Player 11 | 12 | Method OnCreate:Int() 13 | Local img:Image = LoadImage("player.png") 14 | Self.player = New Player() 15 | SetUpdateRate(60) 16 | 17 | Return 0 18 | End 19 | 20 | Method OnUpdate:Int() 21 | player.x += HALFPI 22 | 23 | If (player.x > 100) Then 24 | player.x = 0 25 | Endif 26 | 27 | Return 0 28 | End 29 | 30 | Method OnRender:Int() 31 | Cls(32, 64, 128) 32 | player.Draw() 33 | 34 | player = Null 35 | Return 0 36 | End 37 | End 38 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/moonscript/default.txt: -------------------------------------------------------------------------------- 1 | print "I am #{math.random! * 100}% sure." 2 | 3 | my_function = (name="something", height=100) -> 4 | print "Hello I am", name 5 | print "My height is", height 6 | 7 | my_function dance: "Tango", partner: "none" 8 | 9 | my_func 5,4,3, -- multi-line arguments 10 | 8,9,10 11 | 12 | table = { 13 | name: "Bill", 14 | age: 200, 15 | ["favorite food"]: "rice", 16 | :keyvalue, 17 | [1+7]: 'eight' 18 | } 19 | 20 | class Inventory 21 | new: => 22 | @items = {} 23 | 24 | add_item: (name) => 25 | if @items[name] 26 | @items[name] += 1 27 | else 28 | @items[name] = 1 29 | 30 | inv = Inventory! 31 | inv\add_item "t-shirt" 32 | inv\add_item "pants" 33 | 34 | import 35 | assert_csrf 36 | require_login 37 | from require "helpers" 38 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/n1ql/default.txt: -------------------------------------------------------------------------------- 1 | SELECT * 2 | FROM `beer-sample` 3 | WHERE brewery_id IS NOT MISSING AND type="beer" 4 | LIMIT 1; 5 | 6 | UPSERT INTO product (KEY, VALUE) VALUES ( 7 | "odwalla-juice1", { 8 | "productId": "odwalla-juice1", 9 | "unitPrice": 5.40, 10 | "type": "product", 11 | "color":"red" 12 | } 13 | ) RETURNING *; 14 | 15 | INFER `beer-sample` WITH { 16 | "sample_size": 10000, 17 | "num_sample_values": 1, 18 | "similarity_metric": 0.0 19 | }; 20 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/nginx/default.txt: -------------------------------------------------------------------------------- 1 | user www www; 2 | worker_processes 2; 3 | pid /var/run/nginx.pid; 4 | error_log /var/log/nginx.error_log debug | info | notice | warn | error | crit; 5 | 6 | events { 7 | connections 2000; 8 | use kqueue | rtsig | epoll | /dev/poll | select | poll; 9 | } 10 | 11 | http { 12 | log_format main '$remote_addr - $remote_user [$time_local] ' 13 | '"$request" $status $bytes_sent ' 14 | '"$http_referer" "$http_user_agent" ' 15 | '"$gzip_ratio"'; 16 | 17 | send_timeout 3m; 18 | client_header_buffer_size 1k; 19 | 20 | gzip on; 21 | gzip_min_length 1100; 22 | 23 | #lingering_time 30; 24 | 25 | server { 26 | server_name one.example.com www.one.example.com; 27 | access_log /var/log/nginx.access_log main; 28 | 29 | rewrite (.*) /index.php?page=$1 break; 30 | 31 | location / { 32 | proxy_pass http://127.0.0.1/; 33 | proxy_redirect off; 34 | proxy_set_header Host $host; 35 | proxy_set_header X-Real-IP $remote_addr; 36 | charset koi8-r; 37 | } 38 | 39 | location /api/ { 40 | fastcgi_pass 127.0.0.1:9000; 41 | } 42 | 43 | location ~* \.(jpg|jpeg|gif)$ { 44 | root /spool/www; 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/nimrod/default.txt: -------------------------------------------------------------------------------- 1 | import module1, module2, module3 2 | from module4 import nil 3 | 4 | type 5 | TFoo = object ## Doc comment 6 | a: int32 7 | PFoo = ref TFoo 8 | 9 | proc do_stuff314(param_1: TFoo, par2am: var PFoo): PFoo {.exportc: "dostuff" .} = 10 | # Regular comment 11 | discard """ 12 | dfag 13 | sdfg"" 14 | """ 15 | result = nil 16 | 17 | method abc(a: TFoo) = discard 1u32 + 0xabcdefABCDEFi32 + 0o01234567i8 + 0b010 18 | 19 | discard rawstring"asdf""adfa" 20 | var normalstring = "asdf" 21 | let a: uint32 = 0xFFaF'u32 22 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/nix/default.txt: -------------------------------------------------------------------------------- 1 | { stdenv, foo, bar ? false, ... }: 2 | 3 | /* 4 | * foo 5 | */ 6 | 7 | let 8 | a = 1; # just a comment 9 | b = null; 10 | c = toString 10; 11 | in stdenv.mkDerivation rec { 12 | name = "foo-${version}"; 13 | version = "1.3"; 14 | 15 | configureFlags = [ "--with-foo2" ] ++ stdenv.lib.optional bar "--with-foo=${ with stdenv.lib; foo }" 16 | 17 | postInstall = '' 18 | ${ if true then "--${test}" else false } 19 | ''; 20 | 21 | meta = with stdenv.lib; { 22 | homepage = https://nixos.org; 23 | }; 24 | } 25 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/nsis/default.txt: -------------------------------------------------------------------------------- 1 | /* 2 | NSIS Scheme 3 | for highlight.js 4 | */ 5 | 6 | ; Includes 7 | !include MUI2.nsh 8 | 9 | ; Defines 10 | !define x64 "true" 11 | 12 | ; Settings 13 | Name "installer_name" 14 | OutFile "installer_name.exe" 15 | RequestExecutionLevel user 16 | CRCCheck on 17 | 18 | !ifdef ${x64} 19 | InstallDir "$PROGRAMFILES64\installer_name" 20 | !else 21 | InstallDir "$PROGRAMFILES\installer_name" 22 | !endif 23 | 24 | ; Pages 25 | !insertmacro MUI_PAGE_INSTFILES 26 | 27 | ; Sections 28 | Section "section_name" section_index 29 | nsExec::ExecToLog "calc.exe" 30 | SectionEnd 31 | 32 | ; Functions 33 | Function .onInit 34 | DetailPrint "The install button reads $(^InstallBtn)" 35 | DetailPrint 'Here comes a$\n$\rline-break!' 36 | DetailPrint `Escape the dollar-sign: $$` 37 | FunctionEnd 38 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/objectivec/default.txt: -------------------------------------------------------------------------------- 1 | #import 2 | #import "Dependency.h" 3 | 4 | @protocol WorldDataSource 5 | @optional 6 | - (NSString*)worldName; 7 | @required 8 | - (BOOL)allowsToLive; 9 | @end 10 | 11 | @property (nonatomic, readonly) NSString *title; 12 | - (IBAction) show; 13 | @end 14 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/ocaml/default.txt: -------------------------------------------------------------------------------- 1 | (* This is a 2 | multiline, (* nested *) comment *) 3 | type point = { x: float; y: float };; 4 | let some_string = "this is a string";; 5 | let rec length lst = 6 | match lst with 7 | [] -> 0 8 | | head :: tail -> 1 + length tail 9 | ;; 10 | exception Test;; 11 | type expression = 12 | Const of float 13 | | Var of string 14 | | Sum of expression * expression (* e1 + e2 *) 15 | | Diff of expression * expression (* e1 - e2 *) 16 | | Prod of expression * expression (* e1 * e2 *) 17 | | Quot of expression * expression (* e1 / e2 *) 18 | class point = 19 | object 20 | val mutable x = 0 21 | method get_x = x 22 | method private move d = x <- x + d 23 | end;; 24 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/openscad/default.txt: -------------------------------------------------------------------------------- 1 | use 2 | include <../common/base.scad> 3 | 4 | //draw a foobar 5 | module foobar(){ 6 | translate([0,-10,0]) 7 | difference(){ 8 | cube([5,10.04,15]); 9 | sphere(r=10,$fn=100); 10 | } 11 | } 12 | 13 | foobar(); 14 | #cube ([5,5,5]); 15 | echo("done"); -------------------------------------------------------------------------------- /Example/Highlightr/Samples/oxygene/default.txt: -------------------------------------------------------------------------------- 1 | namespace LinkedList; 2 | 3 | interface 4 | 5 | uses 6 | System.Text; 7 | 8 | type 9 | List = public class 10 | where T is Object; 11 | private 12 | method AppendToString(aBuilder: StringBuilder); 13 | public 14 | constructor(aData: T); 15 | constructor(aData: T; aNext: List); 16 | property Next: List; 17 | property Data: T; 18 | 19 | method ToString: string; override; 20 | end; 21 | 22 | implementation 23 | 24 | constructor List(aData: T); 25 | begin 26 | Data := aData; 27 | end; 28 | 29 | constructor List(aData: T; aNext: List); 30 | begin 31 | constructor(aData); 32 | Next := aNext; 33 | end; 34 | 35 | method List.ToString: string; 36 | begin 37 | with lBuilder := new StringBuilder do begin 38 | AppendToString(lBuilder); 39 | result := lBuilder.ToString(); 40 | end; 41 | end; 42 | 43 | method List.AppendToString(aBuilder: StringBuilder); 44 | begin 45 | if assigned(Data) then 46 | aBuilder.Append(Data.ToString) 47 | else 48 | aBuilder.Append('nil'); 49 | 50 | if assigned(Next) then begin 51 | aBuilder.Append(', '); 52 | Next.AppendToString(aBuilder); 53 | end; 54 | end; 55 | 56 | end. 57 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/parser3/default.txt: -------------------------------------------------------------------------------- 1 | @CLASS 2 | base 3 | 4 | @USE 5 | module.p 6 | 7 | @BASE 8 | class 9 | 10 | # Comment for code 11 | @create[aParam1;aParam2][local1;local2] 12 | ^connect[mysql://host/database?ClientCharset=windows-1251] 13 | ^for[i](1;10){ 14 | ^eval($i+10) 15 | ^connect[mysql://host/database]{ 16 | $tab[^table::sql{select * from `table` where a='1'}] 17 | $var_Name[some${value}] 18 | } 19 | } 20 | 21 | ^rem{ 22 | Multiline comment with code: $var 23 | ^while(true){ 24 | ^for[i](1;10){ 25 | ^sleep[] 26 | } 27 | } 28 | } 29 | ^taint[^#0A] 30 | 31 | @GET_base[] 32 | ## Comment for code 33 | # Isn't comment 34 | $result[$.hash_item1[one] $.hash_item2[two]] 35 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/perl/default.txt: -------------------------------------------------------------------------------- 1 | # loads object 2 | sub load 3 | { 4 | my $flds = $c->db_load($id,@_) || do { 5 | Carp::carp "Can`t load (class: $c, id: $id): '$!'"; return undef 6 | }; 7 | my $o = $c->_perl_new(); 8 | $id12 = $id / 24 / 3600; 9 | $o->{'ID'} = $id12 + 123; 10 | #$o->{'SHCUT'} = $flds->{'SHCUT'}; 11 | my $p = $o->props; 12 | my $vt; 13 | $string =~ m/^sought_text$/; 14 | $items = split //, 'abc'; 15 | $string //= "bar"; 16 | for my $key (keys %$p) 17 | { 18 | if(${$vt.'::property'}) { 19 | $o->{$key . '_real'} = $flds->{$key}; 20 | tie $o->{$key}, 'CMSBuilder::Property', $o, $key; 21 | } 22 | } 23 | $o->save if delete $o->{'_save_after_load'}; 24 | 25 | # GH-117 26 | my $g = glob("/usr/bin/*"); 27 | 28 | return $o; 29 | } 30 | 31 | __DATA__ 32 | @@ layouts/default.html.ep 33 | 34 | 35 | <%= title %> 36 | <%= content %> 37 | 38 | __END__ 39 | 40 | =head1 NAME 41 | POD till the end of file 42 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/pf/default.txt: -------------------------------------------------------------------------------- 1 | # from the PF FAQ: http://www.openbsd.org/faq/pf/example1.html 2 | 3 | # macros 4 | 5 | int_if="xl0" 6 | 7 | tcp_services="{ 22, 113 }" 8 | icmp_types="echoreq" 9 | 10 | comp3="192.168.0.3" 11 | 12 | # options 13 | 14 | set block-policy return 15 | set loginterface egress 16 | set skip on lo 17 | 18 | # FTP Proxy rules 19 | 20 | anchor "ftp-proxy/*" 21 | 22 | pass in quick on $int_if inet proto tcp to any port ftp \ 23 | divert-to 127.0.0.1 port 8021 24 | 25 | # match rules 26 | 27 | match out on egress inet from !(egress:network) to any nat-to (egress:0) 28 | 29 | # filter rules 30 | 31 | block in log 32 | pass out quick 33 | 34 | antispoof quick for { lo $int_if } 35 | 36 | pass in on egress inet proto tcp from any to (egress) \ 37 | port $tcp_services 38 | 39 | pass in on egress inet proto tcp to (egress) port 80 rdr-to $comp3 40 | 41 | pass in inet proto icmp all icmp-type $icmp_types 42 | 43 | pass in on $int_if 44 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/php/default.txt: -------------------------------------------------------------------------------- 1 | require_once 'Zend/Uri/Http.php'; 2 | 3 | namespace Location\Web; 4 | 5 | interface Factory 6 | { 7 | static function _factory(); 8 | } 9 | 10 | abstract class URI extends BaseURI implements Factory 11 | { 12 | abstract function test(); 13 | 14 | public static $st1 = 1; 15 | const ME = "Yo"; 16 | var $list = NULL; 17 | private $var; 18 | 19 | /** 20 | * Returns a URI 21 | * 22 | * @return URI 23 | */ 24 | static public function _factory($stats = array(), $uri = 'http') 25 | { 26 | echo __METHOD__; 27 | $uri = explode(':', $uri, 0b10); 28 | $schemeSpecific = isset($uri[1]) ? $uri[1] : ''; 29 | $desc = 'Multi 30 | line description'; 31 | 32 | // Security check 33 | if (!ctype_alnum($scheme)) { 34 | throw new Zend_Uri_Exception('Illegal scheme'); 35 | } 36 | 37 | $this->var = 0 - self::$st; 38 | $this->list = list(Array("1"=> 2, 2=>self::ME, 3 => \Location\Web\URI::class)); 39 | 40 | return [ 41 | 'uri' => $uri, 42 | 'value' => null, 43 | ]; 44 | } 45 | } 46 | 47 | echo URI::ME . URI::$st1; 48 | 49 | __halt_compiler () ; datahere 50 | datahere 51 | datahere */ 52 | datahere 53 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/pony/default.txt: -------------------------------------------------------------------------------- 1 | use "collections" 2 | 3 | class StopWatch 4 | """ 5 | A simple stopwatch class for performance micro-benchmarking 6 | """ 7 | var _s: U64 = 0 8 | 9 | fun delta(): U64 => 10 | Time.nanos() - _s 11 | 12 | actor LonelyPony 13 | """ 14 | A simple manifestation of the lonely pony problem 15 | """ 16 | var env: Env 17 | let sw: StopWatch = StopWatch 18 | 19 | new create(env': Env) => 20 | env = env 21 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/powershell/default.txt: -------------------------------------------------------------------------------- 1 | $initialDate = [datetime]'2013/1/8' 2 | 3 | $rollingDate = $initialDate 4 | 5 | do { 6 | $client = New-Object System.Net.WebClient 7 | $results = $client.DownloadString("http://not.a.real.url") 8 | Write-Host "$rollingDate.ToShortDateString() - $results" 9 | $rollingDate = $rollingDate.AddDays(21) 10 | $username = [System.Environment]::UserName 11 | } until ($rollingDate -ge [datetime]'2013/12/31') 12 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/processing/default.txt: -------------------------------------------------------------------------------- 1 | import java.util.LinkedList; 2 | import java.awt.Point; 3 | 4 | PGraphics pg; 5 | String load; 6 | 7 | void setup() { 8 | size(displayWidth, displayHeight, P3D); 9 | pg = createGraphics(displayWidth*2,displayHeight,P2D); 10 | pg.beginDraw(); 11 | pg.background(255,255,255); 12 | //pg.smooth(8); 13 | pg.endDraw(); 14 | } 15 | void draw(){ 16 | background(255); 17 | } 18 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/prolog/default.txt: -------------------------------------------------------------------------------- 1 | mergesort([],[]). % special case 2 | mergesort([A],[A]). 3 | mergesort([A,B|R],S) :- 4 | split([A,B|R],L1,L2), 5 | mergesort(L1,S1), 6 | mergesort(L2,S2), 7 | merge(S1,S2,S). 8 | 9 | split([],[],[]). 10 | split([A],[A],[]). 11 | split([A,B|R],[A|Ra],[B|Rb]) :- split(R,Ra,Rb). 12 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/protobuf/default.txt: -------------------------------------------------------------------------------- 1 | package languages.protobuf; 2 | 3 | option java_package = "org.highlightjs.languages.protobuf"; 4 | 5 | message Customer { 6 | required int64 customer_id = 1; 7 | optional string name = 2; 8 | optional string real_name = 3 [default = "Anonymous"]; 9 | optional Gender gender = 4; 10 | repeated string email_addresses = 5; 11 | 12 | optional bool is_admin = 6 [default = false]; // or should this be a repeated field in Account? 13 | 14 | enum Gender { 15 | MALE = 1, 16 | FEMALE = 2 17 | } 18 | } 19 | 20 | service CustomerSearch { 21 | rpc FirstMatch(CustomerRequest) returns (CustomerResponse); 22 | rpc AllMatches(CustomerRequest) returns (CustomerResponse); 23 | } -------------------------------------------------------------------------------- /Example/Highlightr/Samples/puppet/default.txt: -------------------------------------------------------------------------------- 1 | # EC2 sample 2 | 3 | class ec2utils { 4 | 5 | # This must include the path to the Amazon EC2 tools 6 | $ec2path = ["/usr/bin", "/bin", "/usr/sbin", "/sbin", 7 | "/opt/ec2/ec2-api-tools/bin", 8 | "/opt/ec2/aws-elb-tools/bin"] 9 | 10 | define elasticip ($instanceid, $ip) 11 | { 12 | exec { "ec2-associate-address-$name": 13 | logoutput => on_failure, 14 | environment => $ec2utils::ec2env, 15 | path => $ec2utils::ec2path, 16 | command => "ec2assocaddr $ip \ 17 | -i $instanceid", 18 | # Only do this when necessary 19 | unless => "test `ec2daddr $ip | awk '{print \$3}'` == $instanceid", 20 | } 21 | } 22 | 23 | mount { "$mountpoint": 24 | device => $devicetomount, 25 | ensure => mounted, 26 | fstype => $fstype, 27 | options => $mountoptions, 28 | require => [ Exec["ec2-attach-volume-$name"], 29 | File["$mountpoint"] 30 | ], 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/purebasic/default.txt: -------------------------------------------------------------------------------- 1 | ; PureBASIC 5 - Syntax Highlighting Example 2 | 3 | Enumeration Test 3 Step 10 4 | #Constant_One ; Will be 3 5 | #Constant_Two ; Will be 13 6 | EndEnumeration 7 | 8 | A.i = #Constant_One 9 | B = A + 3 10 | 11 | STRING.s = SomeProcedure("Hello World", 2, #Empty$, #Null$) 12 | ESCAPED_STRING$ = ~"An escaped (\\) string!\nNewline..." 13 | 14 | FixedString.s{5} = "12345" 15 | 16 | Macro XCase(Type, Text) 17 | Type#Case(Text) 18 | EndMacro 19 | 20 | StrangeProcedureCall ("This command is split " + 21 | "over two lines") ; Line continuation example 22 | 23 | If B > 3 : X$ = "Concatenation of commands" : Else : X$ = "Using colons" : EndIf 24 | 25 | Declare.s Attach(String1$, String2$) 26 | 27 | Procedure.s Attach(String1$, String2$) 28 | ProcedureReturn String1$+" "+String2$ 29 | EndProcedure 30 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/python/default.txt: -------------------------------------------------------------------------------- 1 | @requires_authorization 2 | def somefunc(param1='', param2=0): 3 | r'''A docstring''' 4 | if param1 > param2: # interesting 5 | print 'Gre\'ater' 6 | return (param2 - param1 + 1 + 0b10l) or None 7 | 8 | class SomeClass: 9 | pass 10 | 11 | >>> message = '''interpreter 12 | ... prompt''' 13 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/q/default.txt: -------------------------------------------------------------------------------- 1 | select time, price by date,stock from quote where price=(max;price)fby stock 2 | data:raze value flip trade 3 | select vwap:size wavg price by 5 xbar time.minute from aapl where date within (.z.d-10;.z.d) 4 | f1:{[x;y;z] show (x;y+z);sum 1 2 3} 5 | .z.pc:{[handle] show -3!(`long$.z.p;"Closed";handle)} 6 | // random normal distribution, e.g. nor 10 7 | nor:{$[x=2*n:x div 2;raze sqrt[-2*log n?1f]*/:(sin;cos)@\:(2*pi)*n?1f;-1_.z.s 1+x]} 8 | 9 | mode:{where g=max g:count each group x} // mode function -------------------------------------------------------------------------------- /Example/Highlightr/Samples/rib/default.txt: -------------------------------------------------------------------------------- 1 | FrameBegin 0 2 | Display "Scene" "framebuffer" "rgb" 3 | Option "searchpath" "shader" "+&:/home/kew" 4 | Option "trace" "int maxdepth" [4] 5 | Attribute "visibility" "trace" [1] 6 | Attribute "irradiance" "maxerror" [0.1] 7 | Attribute "visibility" "transmission" "opaque" 8 | Format 640 480 1.0 9 | ShadingRate 2 10 | PixelFilter "catmull-rom" 1 1 11 | PixelSamples 4 4 12 | Projection "perspective" "fov" 49.5502811377 13 | Scale 1 1 -1 14 | 15 | WorldBegin 16 | 17 | ReadArchive "Lamp.002_Light/instance.rib" 18 | Surface "plastic" 19 | ReadArchive "Cube.004_Mesh/instance.rib" 20 | # ReadArchive "Sphere.010_Mesh/instance.rib" 21 | # ReadArchive "Sphere.009_Mesh/instance.rib" 22 | ReadArchive "Sphere.006_Mesh/instance.rib" 23 | 24 | WorldEnd 25 | FrameEnd 26 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/roboconf/default.txt: -------------------------------------------------------------------------------- 1 | # This is a comment 2 | import toto.graph; 3 | 4 | ## 5 | # Facet 6 | ## 7 | facet VM { 8 | installer: iaas; 9 | } 10 | 11 | # Components 12 | VM_ec2 { 13 | facets: VM; 14 | children: cluster-node, mysql; 15 | } 16 | 17 | VM_openstack { 18 | facets: VM; 19 | children: cluster-node, mysql; 20 | } 21 | 22 | cluster-node { 23 | alias: a cluster node; 24 | installer: puppet; 25 | exports: ip, port, optional-property1, optional_property2; 26 | imports: cluster-node.ip (optional), cluster-node.port (optional), mysql.ip, mysql.port; 27 | } 28 | 29 | mysql { 30 | alias: a MySQL database; 31 | installer: puppet; 32 | exports: ip, port; 33 | } 34 | 35 | ## 36 | # Normally, instances are defined in another file... 37 | ## 38 | instance of VM_ec2 { 39 | name: VM_; 40 | count: 3; 41 | my-instance-property: whatever; 42 | 43 | instance of cluster-node { 44 | name: cluster node; # An in-line comment 45 | } 46 | } 47 | 48 | instance of VM_openstack { 49 | name: VM_database; 50 | 51 | instance of mysql { 52 | name: mysql; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/routeros/default.txt: -------------------------------------------------------------------------------- 1 | # Берем список DNS серверов из /ip dns 2 | # Проверяем их доступность, 3 | # и только рабочие прописываем в настройки DHCP сервера 4 | :global ActiveDNSServers [] 5 | :local PingResult 0 6 | :foreach serv in=[/ip dns get servers] do={ 7 | :do {:set PingResult [ping $serv count=3]} on-error={:set PingResult 0} 8 | :if ($PingResult=3) do={ :set ActiveDNSServers ($ActiveDNSServers,$serv) } 9 | # отладочный вывод в журнал 10 | :log info "Server: $serv, Ping-result: $PingResult"; 11 | } 12 | 13 | /ip dhcp-server network set [find address=192.168.254.0/24] dns-server=$ActiveDNSServers 14 | 15 | #--- FIX TTL ---- 16 | /ip firewall mangle chain=postrouting action=change-ttl new-ttl=set:128 comment="NAT hide" 17 | 18 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/rsl/default.txt: -------------------------------------------------------------------------------- 1 | #define TEST_DEFINE 3.14 2 | /* plastic surface shader 3 | * 4 | * Pixie is: 5 | * (c) Copyright 1999-2003 Okan Arikan. All rights reserved. 6 | */ 7 | 8 | surface plastic (float Ka = 1, Kd = 0.5, Ks = 0.5, roughness = 0.1; 9 | color specularcolor = 1;) { 10 | normal Nf = faceforward (normalize(N),I); 11 | Ci = Cs * (Ka*ambient() + Kd*diffuse(Nf)) + specularcolor * Ks * 12 | specular(Nf,-normalize(I),roughness); 13 | Oi = Os; 14 | Ci *= Oi; 15 | } 16 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/ruby/default.txt: -------------------------------------------------------------------------------- 1 | # The Greeter class 2 | class Greeter 3 | def initialize(name) 4 | @name = name.capitalize 5 | end 6 | 7 | def salute 8 | puts "Hello #{@name}!" 9 | end 10 | end 11 | 12 | g = Greeter.new("world") 13 | g.salute 14 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/ruby/double-colon.txt: -------------------------------------------------------------------------------- 1 | def f(a = self.attr) 2 | A::B.new(a) 3 | end 4 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/ruleslanguage/default.txt: -------------------------------------------------------------------------------- 1 | //This is a comment 2 | ABORT "You experienced an abort."; 3 | WARN "THIS IS A WARNING"; 4 | CALL "RIDER_X"; 5 | DONE; 6 | FOR EACH X IN CSV_FILE "d:\lodestar\user\d377.lse" 7 | LEAVE FOR; 8 | END FOR; 9 | IF ((BILL_KW = 0) AND (KW > 0)) THEN 10 | END IF; 11 | INCLUDE "R1"; 12 | LEAVE RIDER; 13 | SELECT BILL_PERIOD 14 | WHEN "WINTER" 15 | BLOCK KWH 16 | FROM 0 TO 400 CHARGE $0.03709 17 | FROM 400 CHARGE $0.03000 18 | TOTAL $ENERGY_CHARGE_WIN; 19 | WHEN "SUMMER" 20 | $VOLTAGE_DISCOUNT_SUM = $0.00 21 | OTHERWISE 22 | $VOLTAGE_DISCOUNT_SUM = $1.00 23 | END SELECT; 24 | /* Report top five peaks */ 25 | LABEL PK.NM "Peak Number"; 26 | SAVE_UPDATE MV TO TABLE "METERVALUE"; 27 | 28 | FOR EACH INX IN ARRAYUPPERBOUND(#MYARRAY[]) 29 | #MYARRAY[INX].VALUE = 2; 30 | CLEAR #MYARRAY[]; 31 | END FOR 32 | 33 | //Interval Data 34 | HNDL_1_ADD_EDI = INTDADDATTRIBUTE(HNDL_1, "EDI_TRANSACTION", EDI_ID); 35 | HNDL_1_ADD_VAL_MSG = INTDADDVMSG(HNDL_1,"Missing (Status Code 9) values found"); 36 | EMPTY_HNDL = INTDCREATEHANDLE('05/03/2006 00:00:00', '05/03/2006 23:59:59', 3600, "Y", "0", " "); 37 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/rust/default.txt: -------------------------------------------------------------------------------- 1 | #[derive(Debug)] 2 | pub enum State { 3 | Start, 4 | Transient, 5 | Closed, 6 | } 7 | 8 | impl From<&'a str> for State { 9 | fn from(s: &'a str) -> Self { 10 | match s { 11 | "start" => State::Start, 12 | "closed" => State::Closed, 13 | _ => unreachable!(), 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/scala/default.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * A person has a name and an age. 3 | */ 4 | case class Person(name: String, age: Int) 5 | 6 | abstract class Vertical extends CaseJeu 7 | case class Haut(a: Int) extends Vertical 8 | case class Bas(name: String, b: Double) extends Vertical 9 | 10 | sealed trait Ior[+A, +B] 11 | case class Left[A](a: A) extends Ior[A, Nothing] 12 | case class Right[B](b: B) extends Ior[Nothing, B] 13 | case class Both[A, B](a: A, b: B) extends Ior[A, B] 14 | 15 | trait Functor[F[_]] { 16 | def map[A, B](fa: F[A], f: A => B): F[B] 17 | } 18 | 19 | // beware Int.MinValue 20 | def absoluteValue(n: Int): Int = 21 | if (n < 0) -n else n 22 | 23 | def interp(n: Int): String = 24 | s"there are $n ${color} balloons.\n" 25 | 26 | type ξ[A] = (A, A) 27 | 28 | trait Hist { lhs => 29 | def ⊕(rhs: Hist): Hist 30 | } 31 | 32 | def gsum[A: Ring](as: Seq[A]): A = 33 | as.foldLeft(Ring[A].zero)(_ + _) 34 | 35 | val actions: List[Symbol] = 36 | 'init :: 'read :: 'write :: 'close :: Nil 37 | 38 | trait Cake { 39 | type T; 40 | type Q 41 | val things: Seq[T] 42 | 43 | abstract class Spindler 44 | 45 | def spindle(s: Spindler, ts: Seq[T], reversed: Boolean = false): Seq[Q] 46 | } 47 | 48 | val colors = Map( 49 | "red" -> 0xFF0000, 50 | "turquoise" -> 0x00FFFF, 51 | "black" -> 0x000000, 52 | "orange" -> 0xFF8040, 53 | "brown" -> 0x804000) 54 | 55 | lazy val ns = for { 56 | x <- 0 until 100 57 | y <- 0 until 100 58 | } yield (x + y) * 33.33 59 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/scheme/default.txt: -------------------------------------------------------------------------------- 1 | ;; Calculation of Hofstadter's male and female sequences as a list of pairs 2 | 3 | (define (hofstadter-male-female n) 4 | (letrec ((female (lambda (n) 5 | (if (= n 0) 6 | 1 7 | (- n (male (female (- n 1))))))) 8 | (male (lambda (n) 9 | (if (= n 0) 10 | 0 11 | (- n (female (male (- n 1)))))))) 12 | (let loop ((i 0)) 13 | (if (> i n) 14 | '() 15 | (cons (cons (female i) 16 | (male i)) 17 | (loop (+ i 1))))))) 18 | 19 | (hofstadter-male-female 8) 20 | 21 | (define (find-first func lst) 22 | (call-with-current-continuation 23 | (lambda (return-immediately) 24 | (for-each (lambda (x) 25 | (if (func x) 26 | (return-immediately x))) 27 | lst) 28 | #f))) 29 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/scilab/default.txt: -------------------------------------------------------------------------------- 1 | // A comment 2 | function I = foo(dims, varargin) 3 | d=[1; matrix(dims(1:$-1),-1,1)] 4 | for i=1:size(varargin) 5 | if varargin(i)==[] then 6 | I=[], 7 | return; 8 | end 9 | end 10 | endfunction 11 | 12 | b = cos(a) + cosh(a); 13 | bar_matrix = [ "Hello", "world" ]; 14 | foo_matrix = [1, 2, 3; 4, 5, 6]; 15 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/scss/default.txt: -------------------------------------------------------------------------------- 1 | @import "compass/reset"; 2 | 3 | // variables 4 | $colorGreen: #008000; 5 | $colorGreenDark: darken($colorGreen, 10); 6 | 7 | @mixin container { 8 | max-width: 980px; 9 | } 10 | 11 | // mixins with parameters 12 | @mixin button($color:green) { 13 | @if ($color == green) { 14 | background-color: #008000; 15 | } 16 | @else if ($color == red) { 17 | background-color: #B22222; 18 | } 19 | } 20 | 21 | button { 22 | @include button(red); 23 | } 24 | 25 | div, 26 | .navbar, 27 | #header, 28 | input[type="input"] { 29 | font-family: "Helvetica Neue", Arial, sans-serif; 30 | width: auto; 31 | margin: 0 auto; 32 | display: block; 33 | } 34 | 35 | .row-12 > [class*="spans"] { 36 | border-left: 1px solid #B5C583; 37 | } 38 | 39 | // nested definitions 40 | ul { 41 | width: 100%; 42 | padding: { 43 | left: 5px; right: 5px; 44 | } 45 | li { 46 | float: left; margin-right: 10px; 47 | .home { 48 | background: url('http://placehold.it/20') scroll no-repeat 0 0; 49 | } 50 | } 51 | } 52 | 53 | .banner { 54 | @extend .container; 55 | } 56 | 57 | a { 58 | color: $colorGreen; 59 | &:hover { color: $colorGreenDark; } 60 | &:visited { color: #c458cb; } 61 | } 62 | 63 | @for $i from 1 through 5 { 64 | .span#{$i} { 65 | width: 20px*$i; 66 | } 67 | } 68 | 69 | @mixin mobile { 70 | @media screen and (max-width : 600px) { 71 | @content; 72 | } 73 | } -------------------------------------------------------------------------------- /Example/Highlightr/Samples/shell/default.txt: -------------------------------------------------------------------------------- 1 | $ echo $EDITOR 2 | vim 3 | $ git checkout master 4 | Switched to branch 'master' 5 | Your branch is up-to-date with 'origin/master'. 6 | $ git push 7 | Everything up-to-date 8 | $ echo 'All 9 | > done!' 10 | All 11 | done! 12 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/smalltalk/default.txt: -------------------------------------------------------------------------------- 1 | Object>>method: num 2 | "comment 123" 3 | | var1 var2 | 4 | (1 to: num) do: [:i | |var| ^i]. 5 | Klass with: var1. 6 | Klass new. 7 | arr := #('123' 123.345 #hello Transcript var $@). 8 | arr := #(). 9 | var2 = arr at: 3. 10 | ^ self abc 11 | 12 | heapExample 13 | "HeapTest new heapExample" 14 | "Multiline 15 | decription" 16 | | n rnd array time sorted | 17 | n := 5000. 18 | "# of elements to sort" 19 | rnd := Random new. 20 | array := (1 to: n) 21 | collect: [:i | rnd next]. 22 | "First, the heap version" 23 | time := Time 24 | millisecondsToRun: [sorted := Heap withAll: array. 25 | 1 26 | to: n 27 | do: [:i | 28 | sorted removeFirst. 29 | sorted add: rnd next]]. 30 | Transcript cr; show: 'Time for Heap: ' , time printString , ' msecs'. 31 | "The quicksort version" 32 | time := Time 33 | millisecondsToRun: [sorted := SortedCollection withAll: array. 34 | 1 35 | to: n 36 | do: [:i | 37 | sorted removeFirst. 38 | sorted add: rnd next]]. 39 | Transcript cr; show: 'Time for SortedCollection: ' , time printString , ' msecs' 40 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/sml/default.txt: -------------------------------------------------------------------------------- 1 | structure List : LIST = 2 | struct 3 | 4 | val op + = InlineT.DfltInt.+ 5 | 6 | datatype list = datatype list 7 | 8 | exception Empty = Empty 9 | 10 | fun last [] = raise Empty 11 | | last [x] = x 12 | | last (_::r) = last r 13 | 14 | fun loop ([], []) = EQUAL 15 | | loop ([], _) = LESS 16 | | loop (_, []) = GREATER 17 | | loop (x :: xs, y :: ys) = 18 | (case compare (x, y) of 19 | EQUAL => loop (xs, ys) 20 | | unequal => unequal) 21 | in 22 | loop 23 | end 24 | 25 | end (* structure List *) 26 | 27 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/sqf/default.txt: -------------------------------------------------------------------------------- 1 | /*** 2 | Arma Scripting File 3 | Edition: 1.66 4 | ***/ 5 | 6 | // Enable eating to improve health. 7 | _unit addAction ["Eat Energy Bar", { 8 | if (_this getVariable ["EB_NumActivation", 0] > 0) then { 9 | _this setDamage (0 max (damage _this - 0.25)); 10 | } else { 11 | hint "You have eaten it all"; 12 | }; 13 | // 4 - means something... 14 | Z_obj_vip = nil; 15 | [_boat, ["Black", 1], true] call BIS_fnc_initVehicle; 16 | }]; 17 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/sql/default.txt: -------------------------------------------------------------------------------- 1 | CREATE TABLE "topic" ( 2 | "id" serial NOT NULL PRIMARY KEY, 3 | "forum_id" integer NOT NULL, 4 | "subject" varchar(255) NOT NULL 5 | ); 6 | ALTER TABLE "topic" 7 | ADD CONSTRAINT forum_id FOREIGN KEY ("forum_id") 8 | REFERENCES "forum" ("id"); 9 | 10 | -- Initials 11 | insert into "topic" ("forum_id", "subject") 12 | values (2, 'D''artagnian'); 13 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/stan/default.txt: -------------------------------------------------------------------------------- 1 | // Multivariate Regression Example 2 | // Taken from stan-reference-2.8.0.pdf p.66 3 | 4 | data { 5 | int N; // num individuals 6 | int K; // num ind predictors 7 | int J; // num groups 8 | int L; // num group predictors 9 | int jj[N]; // group for individual 10 | matrix[N,K] x; // individual predictors 11 | row_vector[L] u[J]; // group predictors 12 | vector[N] y; // outcomes 13 | } 14 | parameters { 15 | corr_matrix[K] Omega; // prior correlation 16 | vector[K] tau; // prior scale 17 | matrix[L,K] gamma; // group coeffs 18 | vector[K] beta[J]; // indiv coeffs by group 19 | real sigma; // prediction error scale 20 | } 21 | model { 22 | tau ~ cauchy(0,2.5); 23 | Omega ~ lkj_corr(2); 24 | to_vector(gamma) ~ normal(0, 5); 25 | { 26 | row_vector[K] u_gamma[J]; 27 | for (j in 1:J) 28 | u_gamma[j] <- u[j] * gamma; 29 | beta ~ multi_normal(u_gamma, quad_form_diag(Omega, tau)); 30 | } 31 | { 32 | vector[N] x_beta_jj; 33 | for (n in 1:N) 34 | x_beta_jj[n] <- x[n] * beta[jj[n]]; 35 | y ~ normal(x_beta_jj, sigma); 36 | } 37 | } 38 | 39 | # Note: Octothorpes indicate comments, too! 40 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/stata/default.txt: -------------------------------------------------------------------------------- 1 | program define gr_log 2 | version 6.0 3 | 4 | local or = `2' 5 | local xunits = `3' 6 | local b1 = ln(`or') 7 | 8 | * make summary of logistic data from equation 9 | set obs `xunits' 10 | generate pgty = 1 - 1/(1 + exp(score)) 11 | /** 12 | * Comment 1 13 | */ 14 | reg y x 15 | * Comment 2 16 | reg y2 x //comment 3 17 | This is a `loc' $glob ${glob2} 18 | This is a `"string " "' "string`1'two${hi}" bad `"string " "' good `"string " "' 19 | 20 | //Limit to just the project ados 21 | cap adopath - SITE 22 | cap adopath - PLUS 23 | /*cap adopath - PERSONAL 24 | cap adopath - OLDPLACE*/ 25 | adopath ++ "${dir_base}/code/ado/" 26 | A string `"Wow"'. `""one" "two""' 27 | A `local' em`b'ed 28 | a global ${dir_base} $dir_base em${b}ed 29 | 30 | forval i=1/4{ 31 | if `i'==2{ 32 | cap reg y x1, robust 33 | local x = ln(4) 34 | local x =ln(4) 35 | local ln = ln 36 | } 37 | } 38 | 39 | * add mlibs in the new adopath to the index 40 | mata: mata mlib index -------------------------------------------------------------------------------- /Example/Highlightr/Samples/step21/default.txt: -------------------------------------------------------------------------------- 1 | ISO-10303-21; 2 | HEADER; 3 | FILE_DESCRIPTION((''),'2;1'); 4 | FILE_NAME('CUBE_4SQUARE','2013-11-29T',('acook'),(''), 5 | 'SOMETHINGCAD BY SOME CORPORATION, 2012130', 6 | 'SOMETHINGCAD BY SOME CORPORATION, 2012130',''); 7 | FILE_SCHEMA(('CONFIG_CONTROL_DESIGN')); 8 | ENDSEC; 9 | /* file written by SomethingCAD */ 10 | DATA; 11 | #1=DIRECTION('',(1.E0,0.E0,0.E0)); 12 | #2=VECTOR('',#1,4.E0); 13 | #3=CARTESIAN_POINT('',(-2.E0,-2.E0,-2.E0)); 14 | #4=LINE('',#3,#2); 15 | #5=DIRECTION('',(0.E0,1.E0,0.E0)); 16 | #6=VECTOR('',#5,4.E0); 17 | #7=CARTESIAN_POINT('',(2.E0,-2.E0,-2.E0)); 18 | #8=LINE('',#7,#6); 19 | #9=DIRECTION('',(-1.E0,0.E0,0.E0)); 20 | #10=VECTOR('',#9,4.E0); 21 | #11=CARTESIAN_POINT('',(2.E0,2.E0,-2.E0)); 22 | #12=LINE('',#11,#10); 23 | #13=DIRECTION('',(0.E0,-1.E0,0.E0)); 24 | #14=VECTOR('',#13,4.E0); 25 | #15=CARTESIAN_POINT('',(-2.E0,2.E0,-2.E0)); 26 | #16=LINE('',#15,#14); 27 | #17=DIRECTION('',(0.E0,0.E0,1.E0)); 28 | #18=VECTOR('',#17,4.E0); 29 | #19=CARTESIAN_POINT('',(-2.E0,-2.E0,-2.E0)); 30 | #20=LINE('',#19,#18); 31 | #21=DIRECTION('',(0.E0,0.E0,1.E0)); 32 | ENDSEC; 33 | END-ISO-10303-21; 34 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/stylus/default.txt: -------------------------------------------------------------------------------- 1 | @import "nib" 2 | 3 | // variables 4 | $green = #008000 5 | $green_dark = darken($green, 10) 6 | 7 | // mixin/function 8 | container() 9 | max-width 980px 10 | 11 | // mixin/function with parameters 12 | buttonBG($color = green) 13 | if $color == green 14 | background-color #008000 15 | else if $color == red 16 | background-color #B22222 17 | 18 | button 19 | buttonBG(red) 20 | 21 | #content, .content 22 | font Tahoma, Chunkfive, sans-serif 23 | background url('hatch.png') 24 | color #F0F0F0 !important 25 | width 100% 26 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/subunit/default.txt: -------------------------------------------------------------------------------- 1 | progress: 28704 2 | time: 2016-07-05 12:17:02.290433Z 3 | test: bzrlib.doc.api.DocFileTest(/usr/lib64/python2.7/site-packages/bzrlib/doc/api/branch.txt) 4 | time: 2016-07-05 12:17:02.314892Z 5 | successful: bzrlib.doc.api.DocFileTest(/usr/lib64/python2.7/site-packages/bzrlib/doc/api/branch.txt) 6 | time: 2016-07-05 12:17:02.314939Z 7 | time: 2016-07-05 12:17:02.314991Z 8 | test: bzrlib.doc.api.DocFileTest(/usr/lib64/python2.7/site-packages/bzrlib/doc/api/transport.txt) 9 | time: 2016-07-05 12:17:02.315665Z 10 | successful: bzrlib.doc.api.DocFileTest(/usr/lib64/python2.7/site-packages/bzrlib/doc/api/transport.txt) 11 | time: 2016-07-05 12:17:02.315691Z 12 | time: 2016-07-05 12:17:02.315770Z 13 | test: bzrlib.tests.blackbox.test_add.TestAdd.test_add_control_dir(pre-views) 14 | time: 2016-07-05 12:17:02.368936Z 15 | successful: bzrlib.tests.blackbox.test_add.TestAdd.test_add_control_dir(pre-views) [ multipart 16 | ] 17 | time: 2016-07-05 12:17:02.368993Z 18 | time: 2016-07-05 12:17:02.369079Z 19 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/swift/default.txt: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | @objc class Person: Entity { 4 | var name: String! 5 | var age: Int! 6 | 7 | init(name: String, age: Int) { 8 | /* /* ... */ */ 9 | } 10 | 11 | // Return a descriptive string for this person 12 | func description(offset: Int = 0) -> String { 13 | return "\(name) is \(age + offset) years old" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/taggerscript/default.txt: -------------------------------------------------------------------------------- 1 | $if($is_video(),video,$if($is_lossless(),lossless,lossy))/ 2 | $if($is_video(), 3 | $noop(Video track) 4 | $if($ne(%album%,[non-album tracks]), 5 | $if2(%albumartist%,%artist%) - %album%$if(%discsubtitle%, - %discsubtitle%)/%_discandtracknumber%%title%, 6 | Music Videos/%artist%/%artist% - %title%), 7 | $if($eq(%compilation%,1), 8 | $noop(Various Artist albums) 9 | $firstalphachar($if2(%albumartistsort%,%artistsort%))/$if2(%albumartist%,%artist%)/%album%$if(%_releasecomment%, \(%_releasecomment%\),)/%_discandtracknumber%%artist% - %title%, 10 | $noop(Single Artist Albums) 11 | $firstalphachar($if2(%albumartistsort%,%artistsort%))/$if2(%albumartist%,%artist%)/%album%$if(%_releasecomment%, \(%_releasecomment%\),)/%_discandtracknumber%%title% 12 | )) 13 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/tap/default.txt: -------------------------------------------------------------------------------- 1 | # Hardware architecture: x86_64 2 | # Timestamp: 2016-06-16 06:23 (GMT+1) 3 | # 4 | TAP version 13 5 | 1..19 6 | ok 1 - zdtm/static/conntracks # SKIP manual run only 7 | ok 2 - zdtm/static/maps03 # SKIP manual run only 8 | ok 3 - zdtm/static/mlock_setuid 9 | ok 4 - zdtm/static/groups 10 | ok 5 - zdtm/static/maps05 11 | ok 6 - zdtm/static/pdeath_sig 12 | ok 7 - zdtm/static/xids00 13 | ok 8 - zdtm/static/proc-self 14 | ok 9 - zdtm/static/file_fown 15 | ok 10 - zdtm/static/eventfs00 16 | ok 11 - zdtm/static/uptime_grow # SKIP manual run only 17 | ok 12 - zdtm/static/signalfd00 18 | ok 13 - zdtm/static/inotify_irmap 19 | ok 14 - zdtm/static/fanotify00 20 | ok 15 - zdtm/static/session00 21 | ok 16 - zdtm/static/rlimits00 22 | ok 17 - zdtm/static/maps04 23 | ok 18 - zdtm/static/pty03 24 | ok 19 - zdtm/static/pty02 25 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/tcl/default.txt: -------------------------------------------------------------------------------- 1 | package json 2 | 3 | source helper.tcl 4 | # randomness verified by a die throw 5 | set ::rand 4 6 | 7 | proc give::recursive::count {base p} { ; # 2 mandatory params 8 | while {$p > 0} { 9 | set result [expr $result * $base]; incr p -1 10 | } 11 | return $result 12 | } 13 | 14 | set a 'a'; set b "bcdef"; set lst [list "item"] 15 | puts [llength $a$b] 16 | 17 | set ::my::tid($id) $::my::tid(def) 18 | lappend lst $arr($idx) $::my::arr($idx) $ar(key) 19 | lreplace ::my::tid($id) 4 4 20 | puts $::rand ${::rand} ${::AWESOME::component::variable} 21 | 22 | puts "$x + $y is\t [expr $x + $y]" 23 | 24 | proc isprime x { 25 | expr {$x>1 && ![regexp {^(oo+?)\1+$} [string repeat o $x]]} 26 | } 27 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/tex/default.txt: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage[koi8-r]{inputenc} 3 | \hoffset=0pt 4 | \voffset=.3em 5 | \tolerance=400 6 | \newcommand{\eTiX}{\TeX} 7 | \begin{document} 8 | \section*{Highlight.js} 9 | \begin{table}[c|c] 10 | $\frac 12\, + \, \frac 1{x^3}\text{Hello \! world}$ & \textbf{Goodbye\~ world} \\\eTiX $ \pi=400 $ 11 | \end{table} 12 | Ch\'erie, \c{c}a ne me pla\^\i t pas! % comment \b 13 | G\"otterd\"ammerung~45\%=34. 14 | $$ 15 | \int\limits_{0}^{\pi}\frac{4}{x-7}=3 16 | $$ 17 | \end{document} 18 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/thrift/default.txt: -------------------------------------------------------------------------------- 1 | namespace * thrift.test 2 | 3 | /** 4 | * Docstring! 5 | */ 6 | enum Numberz 7 | { 8 | ONE = 1, 9 | TWO, 10 | THREE, 11 | FIVE = 5, 12 | SIX, 13 | EIGHT = 8 14 | } 15 | 16 | const Numberz myNumberz = Numberz.ONE; 17 | // the following is expected to fail: 18 | // const Numberz urNumberz = ONE; 19 | 20 | typedef i64 UserId 21 | 22 | struct Msg 23 | { 24 | 1: string message, 25 | 2: i32 type 26 | } 27 | struct NestedListsI32x2 28 | { 29 | 1: list> integerlist 30 | } 31 | struct NestedListsI32x3 32 | { 33 | 1: list>> integerlist 34 | } 35 | service ThriftTest 36 | { 37 | void testVoid(), 38 | string testString(1: string thing), 39 | oneway void testInit() 40 | } -------------------------------------------------------------------------------- /Example/Highlightr/Samples/twig/default.txt: -------------------------------------------------------------------------------- 1 | {% if posts|length %} 2 | {% for article in articles %} 3 | <div> 4 | {{ article.title|upper() }} 5 | 6 | {# outputs 'WELCOME' #} 7 | </div> 8 | {% endfor %} 9 | {% endif %} 10 | 11 | {% set user = json_encode(user) %} 12 | 13 | {{ random(['apple', 'orange', 'citrus']) }} 14 | 15 | {{ include(template_from_string("Hello {{ name }}")) }} 16 | 17 | 18 | {# 19 | Comments may be long and multiline. 20 | Markup is <em>not</em> highlighted within comments. 21 | #} 22 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/typescript/default.txt: -------------------------------------------------------------------------------- 1 | class MyClass { 2 | public static myValue: string; 3 | constructor(init: string) { 4 | this.myValue = init; 5 | } 6 | } 7 | import fs = require("fs"); 8 | module MyModule { 9 | export interface MyInterface extends Other { 10 | myProperty: any; 11 | } 12 | } 13 | declare magicNumber number; 14 | myArray.forEach(() => { }); // fat arrow syntax 15 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/vala/default.txt: -------------------------------------------------------------------------------- 1 | using DBus; 2 | 3 | namespace Test { 4 | class Foo : Object { 5 | public signal void some_event (); // definition of the signal 6 | public void method () { 7 | some_event (); // emitting the signal (callbacks get invoked) 8 | } 9 | } 10 | } 11 | 12 | /* defining a class */ 13 | class Track : GLib.Object, Test.Foo { /* subclassing 'GLib.Object' */ 14 | public double mass; /* a public field */ 15 | public double name { get; set; } /* a public property */ 16 | private bool terminated = false; /* a private field */ 17 | public void terminate() { /* a public method */ 18 | terminated = true; 19 | } 20 | } 21 | 22 | const ALL_UPPER_CASE = "you should follow this convention"; 23 | 24 | var t = new Track(); // same as: Track t = new Track(); 25 | var s = "hello"; // same as: string s = "hello"; 26 | var l = new List(); // same as: List l = new List(); 27 | var i = 10; // same as: int i = 10; 28 | 29 | 30 | #if (ololo) 31 | Regex regex = /foo/; 32 | #endif 33 | 34 | /* 35 | * Entry point can be outside class 36 | */ 37 | void main () { 38 | var long_string = """ 39 | Example of "verbatim string". 40 | Same as in @"string" in C# 41 | """ 42 | var foo = new Foo (); 43 | foo.some_event.connect (callback_a); // connecting the callback functions 44 | foo.some_event.connect (callback_b); 45 | foo.method (); 46 | } 47 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/vbnet/default.txt: -------------------------------------------------------------------------------- 1 | Import System 2 | Import System.IO 3 | #Const DEBUG = True 4 | 5 | Namespace Highlighter.Test 6 | ''' This is an example class. 7 | Public Class Program 8 | Protected Shared hello As Integer = 3 9 | Private Const ABC As Boolean = False 10 | 11 | #Region "Code" 12 | ' Cheers! 13 | _ 14 | Public Shared Sub Main(ByVal args() As String, ParamArray arr As Object) Handles Form1.Click 15 | On Error Resume Next 16 | If ABC Then 17 | While ABC : Console.WriteLine() : End While 18 | For i As Long = 0 To 1000 Step 123 19 | Try 20 | System.Windows.Forms.MessageBox.Show(CInt("1").ToString()) 21 | Catch ex As Exception ' What are you doing? Well... 22 | Dim exp = CType(ex, IOException) 23 | REM ORZ 24 | Return 25 | End Try 26 | Next 27 | Else 28 | Dim l As New System.Collections.List() 29 | SyncLock l 30 | If TypeOf l Is Decimal And l IsNot Nothing Then 31 | RemoveHandler button1.Paint, delegate 32 | End If 33 | Dim d = New System.Threading.Thread(AddressOf ThreadProc) 34 | Dim a = New Action(Sub(x, y) x + y) 35 | Static u = From x As String In l Select x.Substring(2, 4) Where x.Length > 0 36 | End SyncLock 37 | Do : Laugh() : Loop Until hello = 4 38 | End If 39 | End Sub 40 | #End Region 41 | End Class 42 | End Namespace 43 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/vbscript-html/default.txt: -------------------------------------------------------------------------------- 1 | 2 | <% 3 | If i < 10 Then 4 | response.write("Good morning!") 5 | End If 6 | %> 7 | 8 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/vbscript/default.txt: -------------------------------------------------------------------------------- 1 | ' creating configuration storage and initializing with default values 2 | Set cfg = CreateObject("Scripting.Dictionary") 3 | 4 | ' reading ini file 5 | for i = 0 to ubound(ini_strings) 6 | s = trim(ini_strings(i)) 7 | 8 | ' skipping empty strings and comments 9 | if mid(s, 1, 1) <> "#" and len(s) > 0 then 10 | ' obtaining key and value 11 | parts = split(s, "=", -1, 1) 12 | 13 | if ubound(parts)+1 = 2 then 14 | parts(0) = trim(parts(0)) 15 | parts(1) = trim(parts(1)) 16 | 17 | ' reading configuration and filenames 18 | select case lcase(parts(0)) 19 | case "uncompressed""_postfix" cfg.item("uncompressed""_postfix") = parts(1) 20 | case "f" 21 | options = split(parts(1), "|", -1, 1) 22 | if ubound(options)+1 = 2 then 23 | ' 0: filename, 1: options 24 | ff.add trim(options(0)), trim(options(1)) 25 | end if 26 | end select 27 | end if 28 | end if 29 | next -------------------------------------------------------------------------------- /Example/Highlightr/Samples/verilog/default.txt: -------------------------------------------------------------------------------- 1 | `timescale 1ns / 1ps 2 | 3 | /** 4 | * counter: a generic clearable up-counter 5 | */ 6 | 7 | module counter 8 | #(parameter WIDTH=64, NAME="world") 9 | ( 10 | input clk, 11 | input ce, 12 | input arst_n, 13 | output reg [WIDTH-1:0] q 14 | ); 15 | 16 | string name = "counter"; 17 | localparam val0 = 12'ha1f; 18 | localparam val1 = 12'h1fa; 19 | localparam val2 = 12'hfa1; 20 | 21 | // some child 22 | clock_buffer #(WIDTH) buffer_inst ( 23 | .clk(clk), 24 | .ce(ce), 25 | .reset(arst_n) 26 | ); 27 | 28 | // Simple gated up-counter with async clear 29 | 30 | always @(posedge clk or negedge arst_n) begin 31 | if (arst_n == 1'b0) begin 32 | q <= {WIDTH {1'b0}}; 33 | end 34 | else begin 35 | q <= q; 36 | if (ce == 1'b1) begin 37 | q <= q + 1; 38 | end 39 | end 40 | end 41 | 42 | function int add_one(int x); 43 | return x + 1; 44 | endfunction : add_one 45 | 46 | `ifdef SIMULATION 47 | initial $display("Hello %s", NAME); 48 | `endif 49 | endmodule : counter 50 | 51 | class my_data extends uvm_data; 52 | int x, y; 53 | 54 | function add_one(); 55 | x++; 56 | y++; 57 | endfunction : add_one 58 | endclass : my_data 59 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/vhdl/default.txt: -------------------------------------------------------------------------------- 1 | /* 2 | * RS-trigger with assynch. reset 3 | */ 4 | 5 | library ieee; 6 | use ieee.std_logic_1164.all; 7 | 8 | entity RS_trigger is 9 | generic (T: Time := 0ns); 10 | port ( R, S : in std_logic; 11 | Q, nQ : out std_logic; 12 | reset, clock : in std_logic ); 13 | end RS_trigger; 14 | 15 | architecture behaviour of RS_trigger is 16 | signal QT: std_logic; -- Q(t) 17 | begin 18 | process(clock, reset) is 19 | subtype RS is std_logic_vector (1 downto 0); 20 | begin 21 | if reset = '0' then 22 | QT <= '0'; 23 | else 24 | if rising_edge(C) then 25 | if not (R'stable(T) and S'stable(T)) then 26 | QT <= 'X'; 27 | else 28 | case RS'(R&S) is 29 | when "01" => QT <= '1'; 30 | when "10" => QT <= '0'; 31 | when "11" => QT <= 'X'; 32 | when others => null; 33 | end case; 34 | end if; 35 | end if; 36 | end if; 37 | end process; 38 | 39 | Q <= QT; 40 | nQ <= not QT; 41 | end architecture behaviour; 42 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/vim/default.txt: -------------------------------------------------------------------------------- 1 | if foo > 2 || has("gui_running") 2 | syntax on 3 | set hlsearch 4 | endif 5 | 6 | set autoindent 7 | 8 | " switch on highlighting 9 | function UnComment(fl, ll) 10 | while idx >= a:ll 11 | let srclines=getline(idx) 12 | let dstlines=substitute(srclines, b:comment, "", "") 13 | call setline(idx, dstlines) 14 | endwhile 15 | endfunction 16 | 17 | let conf = {'command': 'git'} 18 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/x86asm/default.txt: -------------------------------------------------------------------------------- 1 | section .text 2 | extern _MessageBoxA@16 3 | %if __NASM_VERSION_ID__ >= 0x02030000 4 | safeseh handler ; register handler as "safe handler" 5 | %endif 6 | 7 | handler: 8 | push dword 1 ; MB_OKCANCEL 9 | push dword caption 10 | push dword text 11 | push dword 0 12 | call _MessageBoxA@16 13 | sub eax,1 ; incidentally suits as return value 14 | ; for exception handler 15 | ret 16 | 17 | global _main 18 | _main: push dword handler 19 | push dword [fs:0] 20 | mov dword [fs:0], esp 21 | xor eax,eax 22 | mov eax, dword[eax] ; cause exception 23 | pop dword [fs:0] ; disengage exception handler 24 | add esp, 4 25 | ret 26 | 27 | avx2: vzeroupper 28 | push rbx 29 | mov rbx, rsp 30 | sub rsp, 0h20 31 | vmovdqa ymm0, [rcx] 32 | vpaddb ymm0, [rdx] 33 | leave 34 | ret 35 | 36 | text: db 'OK to rethrow, CANCEL to generate core dump',0 37 | caption:db 'SEGV',0 38 | 39 | section .drectve info 40 | db '/defaultlib:user32.lib /defaultlib:msvcrt.lib ' 41 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/xl/default.txt: -------------------------------------------------------------------------------- 1 | import Animate 2 | import SeasonsGreetingsTheme 3 | import "myhelper.xl" 4 | theme "SeasonsGreetings" 5 | function X:real -> sin(X*0.5) + 16#0.002 6 | page "A nice car", 7 | // -------------------------------------- 8 | // Display car model on a pedestal 9 | // -------------------------------------- 10 | clear_color 0, 0, 0, 1 11 | hand_scale -> 0.3 12 | 13 | // Display the background image 14 | background -4000, 15 | locally 16 | disable_depth_test 17 | corridor N:integer -> 18 | locally 19 | rotatez 60 * N 20 | translatex 1000 21 | rotatey 90 22 | color "white" 23 | texture "stars.png" 24 | texture_wrap true, true 25 | texture_transform 26 | translate (time + N) * 0.02 mod 1, 0, 0 27 | scale 0.2, 0.3, 0.3 28 | rectangle 0, 0, 100000, 1154 29 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/xml/default.txt: -------------------------------------------------------------------------------- 1 | 2 | Title 3 | 4 | 5 | 6 | 9 | 10 | 11 | Title 12 | 13 | 14 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/xml/groovy-julia.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/xquery/default.txt: -------------------------------------------------------------------------------- 1 | declare option output:method 'json'; 2 | 3 | ( 4 | let $map := map { 'R': 'red', 'G': 'green', 'B': 'blue' } 5 | return ( 6 | $map?* (: 1. returns all values; same as: map:keys($map) ! $map(.) :), 7 | $map?R (: 2. returns the value associated with the key 'R'; same as: $map('R') :), 8 | $map?('G','B') (: 3. returns the values associated with the key 'G' and 'B' :) 9 | ), 10 | 11 | ('A', 'B', 'C') => count(), 12 | 13 | for $country in db:open('factbook')//country 14 | where $country/@population > 100000000 15 | let $name := $country/name[1] 16 | for $city in $country//city[population > 1000000] 17 | group by $name 18 | return { $city/name } 19 | 20 | ) 21 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/yaml/default.txt: -------------------------------------------------------------------------------- 1 | --- 2 | # comment 3 | string_1: "Bar" 4 | string_2: 'bar' 5 | string_3: bar 6 | inline_keys_ignored: sompath/name/file.jpg 7 | keywords_in_yaml: 8 | - true 9 | - false 10 | - TRUE 11 | - FALSE 12 | - 21 13 | - 21.0 14 | - !!str 123 15 | "quoted_key": &foobar 16 | bar: foo 17 | foo: 18 | "foo": bar 19 | 20 | reference: *foobar 21 | 22 | multiline_1: | 23 | Multiline 24 | String 25 | multiline_2: > 26 | Multiline 27 | String 28 | multiline_3: " 29 | Multiline string 30 | " 31 | 32 | ansible_variables: "foo {{variable}}" 33 | 34 | array_nested: 35 | - a 36 | - b: 1 37 | c: 2 38 | - b 39 | - comment 40 | -------------------------------------------------------------------------------- /Example/Highlightr/Samples/zephir/default.txt: -------------------------------------------------------------------------------- 1 | function testBefore( a, var b = 5, int c = 10) 2 | { 3 | a->method1(); 4 | 5 | return b + c; 6 | } 7 | 8 | namespace Test; 9 | 10 | use RuntimeException as RE; 11 | 12 | /** 13 | * Example comment 14 | */ 15 | class Test extends CustomClass implements TestInterface 16 | { 17 | const C1 = null; 18 | 19 | // Magic constant: http://php.net/manual/ru/language.constants.predefined.php 20 | const className = __CLASS__; 21 | 22 | public function method1() 23 | { 24 | int a = 1, b = 2; 25 | return a + b; 26 | } 27 | 28 | // See fn is allowed like shortcut 29 | public fn method2() -> 30 | { 31 | call_user_func(function() { echo "hello"; }); 32 | 33 | 34 | [1, 2, 3, 4, 5]->walk( 35 | function(int! x) { 36 | return x * x; 37 | } 38 | ); 39 | 40 | [1, 2, 3, 4, 5]->walk( 41 | function(_, int key) { echo key; } 42 | ); 43 | 44 | array input = [1, 2, 3, 4, 5]; 45 | 46 | input->walk( 47 | function(_, int key) { echo key; } 48 | ); 49 | 50 | 51 | input->map(x => x * x); 52 | 53 | return this; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /Example/Highlightr_OSX_Example/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "mac", 5 | "size" : "16x16", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "mac", 10 | "size" : "16x16", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "mac", 15 | "size" : "32x32", 16 | "scale" : "1x" 17 | }, 18 | { 19 | "idiom" : "mac", 20 | "size" : "32x32", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "idiom" : "mac", 25 | "size" : "128x128", 26 | "scale" : "1x" 27 | }, 28 | { 29 | "idiom" : "mac", 30 | "size" : "128x128", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "idiom" : "mac", 35 | "size" : "256x256", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "mac", 40 | "size" : "256x256", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "mac", 45 | "size" : "512x512", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "mac", 50 | "size" : "512x512", 51 | "scale" : "2x" 52 | } 53 | ], 54 | "info" : { 55 | "version" : 1, 56 | "author" : "xcode" 57 | } 58 | } -------------------------------------------------------------------------------- /Example/Highlightr_OSX_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSMinimumSystemVersion 26 | $(MACOSX_DEPLOYMENT_TARGET) 27 | NSHumanReadableCopyright 28 | Copyright © 2016 CocoaPods. All rights reserved. 29 | NSMainNibFile 30 | MainMenu 31 | NSPrincipalClass 32 | NSApplication 33 | 34 | 35 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | use_frameworks! 3 | 4 | target 'Highlightr_Example' do 5 | platform :ios, '8.3' 6 | 7 | pod 'Highlightr', :path => '../' 8 | pod 'ActionSheetPicker-3.0', :inhibit_warnings => true 9 | end 10 | 11 | target 'Highlightr_OSX_Example' do 12 | platform :osx, '10.11' 13 | 14 | pod 'Highlightr', :path => '../' 15 | end 16 | -------------------------------------------------------------------------------- /Highlightr-iOS copy-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Highlightr-macOS/Highlightr-macOS.h: -------------------------------------------------------------------------------- 1 | // 2 | // Highlightr-macOS.h 3 | // Highlightr-macOS 4 | // 5 | // Created by Illanes, Juan Pablo on 8/7/17. 6 | // Copyright © 2017 Illanes, Juan Pablo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for Highlightr-macOS. 12 | FOUNDATION_EXPORT double Highlightr_macOSVersionNumber; 13 | 14 | //! Project version string for Highlightr-macOS. 15 | FOUNDATION_EXPORT const unsigned char Highlightr_macOSVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /Highlightr-macOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSHumanReadableCopyright 22 | Copyright © 2017 Illanes, Juan Pablo. All rights reserved. 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Highlightr.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint Highlightr.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = "Highlightr" 11 | s.version = "2.1.0" 12 | s.summary = "iOS & macOS Syntax Highlighter." 13 | 14 | s.description = <<-DESC 15 | Highlightr is an iOS & macOS syntax highlighter built with Swift. It uses highlight.js as it core, supports 176 languages and comes with 79 styles. 16 | DESC 17 | 18 | s.homepage = "http://github.com/raspu/Highlightr" 19 | s.screenshots = "http://raw.githubusercontent.com/raspu/Highlightr/master/mix2.gif", "http://raw.githubusercontent.com/raspu/Highlightr/master/coding.gif" 20 | s.license = 'MIT' 21 | s.author = { "J.P. Illanes" => "jpillaness@gmail.com" } 22 | s.source = { :git => "https://github.com/raspu/Highlightr.git", :tag => s.version.to_s, :submodules => true} 23 | 24 | s.osx.deployment_target = '10.11' 25 | s.ios.deployment_target = '8.0' 26 | 27 | s.swift_version = '4.2' 28 | 29 | s.requires_arc = true 30 | 31 | s.source_files = 'Pod/Classes/**/*.{swift}' 32 | 33 | s.resources = 'Pod/Assets/**/*.{css,js}' 34 | 35 | s.ios.frameworks = 'UIKit' 36 | s.osx.frameworks = 'AppKit' 37 | end 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /Highlightr.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Highlightr.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Highlightr/Highlightr.h: -------------------------------------------------------------------------------- 1 | // 2 | // Highlightr.h 3 | // Highlightr 4 | // 5 | // Created by Illanes, Juan Pablo on 8/7/17. 6 | // Copyright © 2017 Illanes, Juan Pablo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for Highlightr. 12 | FOUNDATION_EXPORT double HighlightrVersionNumber; 13 | 14 | //! Project version string for Highlightr. 15 | FOUNDATION_EXPORT const unsigned char HighlightrVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /Highlightr/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 Illanes, Juan Pablo 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /Pod/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspu/Highlightr/bcf2d0590f32ac2528feb72d7e34f5b463801a47/Pod/Assets/.gitkeep -------------------------------------------------------------------------------- /Pod/Assets/styles/a11y-dark.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-deletion{color:#ffa07a}.hljs-number,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params,.hljs-meta,.hljs-link{color:#f5ab35}.hljs-attribute{color:#ffd700}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#abe338}.hljs-title,.hljs-section{color:#00e0e0}.hljs-keyword,.hljs-selector-tag{color:#dcc6e0}.hljs{display:block;overflow-x:auto;background:#2b2b2b;color:#f8f8f2;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}@media screen and (-ms-high-contrast:active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-builtin-name,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-string,.hljs-symbol,.hljs-type,.hljs-quote{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:bold}} -------------------------------------------------------------------------------- /Pod/Assets/styles/a11y-light.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#696969}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-deletion{color:#d91e18}.hljs-number,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params,.hljs-meta,.hljs-link{color:#aa5d00}.hljs-attribute{color:#aa5d00}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#008000}.hljs-title,.hljs-section{color:#007faa}.hljs-keyword,.hljs-selector-tag{color:#7928a1}.hljs{display:block;overflow-x:auto;background:#fefefe;color:#545454;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}@media screen and (-ms-high-contrast:active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-builtin-name,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-string,.hljs-symbol,.hljs-type,.hljs-quote{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:bold}} -------------------------------------------------------------------------------- /Pod/Assets/styles/agate.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Agate by Taufik Nurrohman 3 | * ---------------------------------------------------- 4 | * 5 | * #ade5fc 6 | * #a2fca2 7 | * #c6b4f0 8 | * #d36363 9 | * #fcc28c 10 | * #fc9b9b 11 | * #ffa 12 | * #fff 13 | * #333 14 | * #62c8f3 15 | * #888 16 | * 17 | */.hljs{display:block;overflow-x:auto;padding:0.5em;background:#333;color:white}.hljs-name,.hljs-strong{font-weight:bold}.hljs-code,.hljs-emphasis{font-style:italic}.hljs-tag{color:#62c8f3}.hljs-variable,.hljs-template-variable,.hljs-selector-id,.hljs-selector-class{color:#ade5fc}.hljs-string,.hljs-bullet{color:#a2fca2}.hljs-type,.hljs-title,.hljs-section,.hljs-attribute,.hljs-quote,.hljs-built_in,.hljs-builtin-name{color:#ffa}.hljs-number,.hljs-symbol,.hljs-bullet{color:#d36363}.hljs-keyword,.hljs-selector-tag,.hljs-literal{color:#fcc28c}.hljs-comment,.hljs-deletion,.hljs-code{color:#888}.hljs-regexp,.hljs-link{color:#c6b4f0}.hljs-meta{color:#fc9b9b}.hljs-deletion{background-color:#fc9b9b;color:#333}.hljs-addition{background-color:#a2fca2;color:#333}.hljs a{color:inherit}.hljs a:focus,.hljs a:hover{color:inherit;text-decoration:underline} -------------------------------------------------------------------------------- /Pod/Assets/styles/an-old-hope.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#B6B18B}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-deletion{color:#EB3C54}.hljs-number,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params,.hljs-meta,.hljs-link{color:#E7CE56}.hljs-attribute{color:#EE7C2B}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#4FB4D7}.hljs-title,.hljs-section{color:#78BB65}.hljs-keyword,.hljs-selector-tag{color:#B45EA4}.hljs{display:block;overflow-x:auto;background:#1C1D21;color:#c0c5ce;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/androidstudio.min.css: -------------------------------------------------------------------------------- 1 | .hljs{color:#a9b7c6;background:#282b2e;display:block;overflow-x:auto;padding:0.5em}.hljs-number,.hljs-literal,.hljs-symbol,.hljs-bullet{color:#6897BB}.hljs-keyword,.hljs-selector-tag,.hljs-deletion{color:#cc7832}.hljs-variable,.hljs-template-variable,.hljs-link{color:#629755}.hljs-comment,.hljs-quote{color:#808080}.hljs-meta{color:#bbb529}.hljs-string,.hljs-attribute,.hljs-addition{color:#6A8759}.hljs-section,.hljs-title,.hljs-type{color:#ffc66d}.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#e8bf6a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/arduino-light.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#FFFFFF}.hljs,.hljs-subst{color:#434f54}.hljs-keyword,.hljs-attribute,.hljs-selector-tag,.hljs-doctag,.hljs-name{color:#00979D}.hljs-built_in,.hljs-literal,.hljs-bullet,.hljs-code,.hljs-addition{color:#D35400}.hljs-regexp,.hljs-symbol,.hljs-variable,.hljs-template-variable,.hljs-link,.hljs-selector-attr,.hljs-selector-pseudo{color:#00979D}.hljs-type,.hljs-string,.hljs-selector-id,.hljs-selector-class,.hljs-quote,.hljs-template-tag,.hljs-deletion{color:#005C5F}.hljs-title,.hljs-section{color:#880000;font-weight:bold}.hljs-comment{color:rgba(149,165,166,0.8)}.hljs-meta-keyword{color:#728E00}.hljs-meta{color:#728E00;color:#434f54}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.hljs-function{color:#728E00}.hljs-number{color:#8A7B52} -------------------------------------------------------------------------------- /Pod/Assets/styles/arta.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#222}.hljs,.hljs-subst{color:#aaa}.hljs-section{color:#fff}.hljs-comment,.hljs-quote,.hljs-meta{color:#444}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-regexp{color:#ffcc33}.hljs-number,.hljs-addition{color:#00cc66}.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-template-variable,.hljs-attribute,.hljs-link{color:#32aaee}.hljs-keyword,.hljs-selector-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#6644aa}.hljs-title,.hljs-variable,.hljs-deletion,.hljs-template-tag{color:#bb1166}.hljs-section,.hljs-doctag,.hljs-strong{font-weight:bold}.hljs-emphasis{font-style:italic} -------------------------------------------------------------------------------- /Pod/Assets/styles/ascetic.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:white;color:black}.hljs-string,.hljs-variable,.hljs-template-variable,.hljs-symbol,.hljs-bullet,.hljs-section,.hljs-addition,.hljs-attribute,.hljs-link{color:#888}.hljs-comment,.hljs-quote,.hljs-meta,.hljs-deletion{color:#ccc}.hljs-keyword,.hljs-selector-tag,.hljs-section,.hljs-name,.hljs-type,.hljs-strong{font-weight:bold}.hljs-emphasis{font-style:italic} -------------------------------------------------------------------------------- /Pod/Assets/styles/atelier-cave-dark.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#7e7887}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-regexp,.hljs-link,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#be4678}.hljs-number,.hljs-meta,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#aa573c}.hljs-string,.hljs-symbol,.hljs-bullet{color:#2a9292}.hljs-title,.hljs-section{color:#576ddb}.hljs-keyword,.hljs-selector-tag{color:#955ae7}.hljs-deletion,.hljs-addition{color:#19171c;display:inline-block;width:100%}.hljs-deletion{background-color:#be4678}.hljs-addition{background-color:#2a9292}.hljs{display:block;overflow-x:auto;background:#19171c;color:#8b8792;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/atelier-cave-light.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#655f6d}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-regexp,.hljs-link,.hljs-name,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#be4678}.hljs-number,.hljs-meta,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#aa573c}.hljs-string,.hljs-symbol,.hljs-bullet{color:#2a9292}.hljs-title,.hljs-section{color:#576ddb}.hljs-keyword,.hljs-selector-tag{color:#955ae7}.hljs-deletion,.hljs-addition{color:#19171c;display:inline-block;width:100%}.hljs-deletion{background-color:#be4678}.hljs-addition{background-color:#2a9292}.hljs{display:block;overflow-x:auto;background:#efecf4;color:#585260;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/atelier-dune-dark.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#999580}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-regexp,.hljs-link,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#d73737}.hljs-number,.hljs-meta,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#b65611}.hljs-string,.hljs-symbol,.hljs-bullet{color:#60ac39}.hljs-title,.hljs-section{color:#6684e1}.hljs-keyword,.hljs-selector-tag{color:#b854d4}.hljs{display:block;overflow-x:auto;background:#20201d;color:#a6a28c;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/atelier-dune-light.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#7d7a68}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-regexp,.hljs-link,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#d73737}.hljs-number,.hljs-meta,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#b65611}.hljs-string,.hljs-symbol,.hljs-bullet{color:#60ac39}.hljs-title,.hljs-section{color:#6684e1}.hljs-keyword,.hljs-selector-tag{color:#b854d4}.hljs{display:block;overflow-x:auto;background:#fefbec;color:#6e6b5e;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/atelier-estuary-dark.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#878573}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-regexp,.hljs-link,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#ba6236}.hljs-number,.hljs-meta,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#ae7313}.hljs-string,.hljs-symbol,.hljs-bullet{color:#7d9726}.hljs-title,.hljs-section{color:#36a166}.hljs-keyword,.hljs-selector-tag{color:#5f9182}.hljs-deletion,.hljs-addition{color:#22221b;display:inline-block;width:100%}.hljs-deletion{background-color:#ba6236}.hljs-addition{background-color:#7d9726}.hljs{display:block;overflow-x:auto;background:#22221b;color:#929181;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/atelier-estuary-light.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#6c6b5a}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-regexp,.hljs-link,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#ba6236}.hljs-number,.hljs-meta,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#ae7313}.hljs-string,.hljs-symbol,.hljs-bullet{color:#7d9726}.hljs-title,.hljs-section{color:#36a166}.hljs-keyword,.hljs-selector-tag{color:#5f9182}.hljs-deletion,.hljs-addition{color:#22221b;display:inline-block;width:100%}.hljs-deletion{background-color:#ba6236}.hljs-addition{background-color:#7d9726}.hljs{display:block;overflow-x:auto;background:#f4f3ec;color:#5f5e4e;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/atelier-forest-dark.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#9c9491}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-regexp,.hljs-link,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#f22c40}.hljs-number,.hljs-meta,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#df5320}.hljs-string,.hljs-symbol,.hljs-bullet{color:#7b9726}.hljs-title,.hljs-section{color:#407ee7}.hljs-keyword,.hljs-selector-tag{color:#6666ea}.hljs{display:block;overflow-x:auto;background:#1b1918;color:#a8a19f;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/atelier-forest-light.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#766e6b}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-regexp,.hljs-link,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#f22c40}.hljs-number,.hljs-meta,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#df5320}.hljs-string,.hljs-symbol,.hljs-bullet{color:#7b9726}.hljs-title,.hljs-section{color:#407ee7}.hljs-keyword,.hljs-selector-tag{color:#6666ea}.hljs{display:block;overflow-x:auto;background:#f1efee;color:#68615e;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/atelier-heath-dark.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#9e8f9e}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-regexp,.hljs-link,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#ca402b}.hljs-number,.hljs-meta,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#a65926}.hljs-string,.hljs-symbol,.hljs-bullet{color:#918b3b}.hljs-title,.hljs-section{color:#516aec}.hljs-keyword,.hljs-selector-tag{color:#7b59c0}.hljs{display:block;overflow-x:auto;background:#1b181b;color:#ab9bab;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/atelier-heath-light.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#776977}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-regexp,.hljs-link,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#ca402b}.hljs-number,.hljs-meta,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#a65926}.hljs-string,.hljs-symbol,.hljs-bullet{color:#918b3b}.hljs-title,.hljs-section{color:#516aec}.hljs-keyword,.hljs-selector-tag{color:#7b59c0}.hljs{display:block;overflow-x:auto;background:#f7f3f7;color:#695d69;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/atelier-lakeside-dark.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#7195a8}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-regexp,.hljs-link,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#d22d72}.hljs-number,.hljs-meta,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#935c25}.hljs-string,.hljs-symbol,.hljs-bullet{color:#568c3b}.hljs-title,.hljs-section{color:#257fad}.hljs-keyword,.hljs-selector-tag{color:#6b6bb8}.hljs{display:block;overflow-x:auto;background:#161b1d;color:#7ea2b4;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/atelier-lakeside-light.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#5a7b8c}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-regexp,.hljs-link,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#d22d72}.hljs-number,.hljs-meta,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#935c25}.hljs-string,.hljs-symbol,.hljs-bullet{color:#568c3b}.hljs-title,.hljs-section{color:#257fad}.hljs-keyword,.hljs-selector-tag{color:#6b6bb8}.hljs{display:block;overflow-x:auto;background:#ebf8ff;color:#516d7b;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/atelier-plateau-dark.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#7e7777}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-regexp,.hljs-link,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#ca4949}.hljs-number,.hljs-meta,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#b45a3c}.hljs-string,.hljs-symbol,.hljs-bullet{color:#4b8b8b}.hljs-title,.hljs-section{color:#7272ca}.hljs-keyword,.hljs-selector-tag{color:#8464c4}.hljs-deletion,.hljs-addition{color:#1b1818;display:inline-block;width:100%}.hljs-deletion{background-color:#ca4949}.hljs-addition{background-color:#4b8b8b}.hljs{display:block;overflow-x:auto;background:#1b1818;color:#8a8585;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/atelier-plateau-light.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#655d5d}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-regexp,.hljs-link,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#ca4949}.hljs-number,.hljs-meta,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#b45a3c}.hljs-string,.hljs-symbol,.hljs-bullet{color:#4b8b8b}.hljs-title,.hljs-section{color:#7272ca}.hljs-keyword,.hljs-selector-tag{color:#8464c4}.hljs-deletion,.hljs-addition{color:#1b1818;display:inline-block;width:100%}.hljs-deletion{background-color:#ca4949}.hljs-addition{background-color:#4b8b8b}.hljs{display:block;overflow-x:auto;background:#f4ecec;color:#585050;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/atelier-savanna-dark.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#78877d}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-regexp,.hljs-link,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#b16139}.hljs-number,.hljs-meta,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#9f713c}.hljs-string,.hljs-symbol,.hljs-bullet{color:#489963}.hljs-title,.hljs-section{color:#478c90}.hljs-keyword,.hljs-selector-tag{color:#55859b}.hljs-deletion,.hljs-addition{color:#171c19;display:inline-block;width:100%}.hljs-deletion{background-color:#b16139}.hljs-addition{background-color:#489963}.hljs{display:block;overflow-x:auto;background:#171c19;color:#87928a;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/atelier-savanna-light.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#5f6d64}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-regexp,.hljs-link,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#b16139}.hljs-number,.hljs-meta,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#9f713c}.hljs-string,.hljs-symbol,.hljs-bullet{color:#489963}.hljs-title,.hljs-section{color:#478c90}.hljs-keyword,.hljs-selector-tag{color:#55859b}.hljs-deletion,.hljs-addition{color:#171c19;display:inline-block;width:100%}.hljs-deletion{background-color:#b16139}.hljs-addition{background-color:#489963}.hljs{display:block;overflow-x:auto;background:#ecf4ee;color:#526057;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/atelier-seaside-dark.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#809980}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-regexp,.hljs-link,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#e6193c}.hljs-number,.hljs-meta,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#87711d}.hljs-string,.hljs-symbol,.hljs-bullet{color:#29a329}.hljs-title,.hljs-section{color:#3d62f5}.hljs-keyword,.hljs-selector-tag{color:#ad2bee}.hljs{display:block;overflow-x:auto;background:#131513;color:#8ca68c;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/atelier-seaside-light.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#687d68}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-regexp,.hljs-link,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#e6193c}.hljs-number,.hljs-meta,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#87711d}.hljs-string,.hljs-symbol,.hljs-bullet{color:#29a329}.hljs-title,.hljs-section{color:#3d62f5}.hljs-keyword,.hljs-selector-tag{color:#ad2bee}.hljs{display:block;overflow-x:auto;background:#f4fbf4;color:#5e6e5e;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/atelier-sulphurpool-dark.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#898ea4}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-regexp,.hljs-link,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#c94922}.hljs-number,.hljs-meta,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#c76b29}.hljs-string,.hljs-symbol,.hljs-bullet{color:#ac9739}.hljs-title,.hljs-section{color:#3d8fd1}.hljs-keyword,.hljs-selector-tag{color:#6679cc}.hljs{display:block;overflow-x:auto;background:#202746;color:#979db4;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/atelier-sulphurpool-light.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#6b7394}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-regexp,.hljs-link,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#c94922}.hljs-number,.hljs-meta,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#c76b29}.hljs-string,.hljs-symbol,.hljs-bullet{color:#ac9739}.hljs-title,.hljs-section{color:#3d8fd1}.hljs-keyword,.hljs-selector-tag{color:#6679cc}.hljs{display:block;overflow-x:auto;background:#f5f7ff;color:#5e6687;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/atom-one-dark-reasonable.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;line-height:1.3em;color:#abb2bf;background:#282c34;border-radius:5px}.hljs-keyword,.hljs-operator{color:#F92672}.hljs-pattern-match{color:#F92672}.hljs-pattern-match .hljs-constructor{color:#61aeee}.hljs-function{color:#61aeee}.hljs-function .hljs-params{color:#A6E22E}.hljs-function .hljs-params .hljs-typing{color:#FD971F}.hljs-module-access .hljs-module{color:#7e57c2}.hljs-constructor{color:#e2b93d}.hljs-constructor .hljs-string{color:#9CCC65}.hljs-comment,.hljs-quote{color:#b18eb1;font-style:italic}.hljs-doctag,.hljs-formula{color:#c678dd}.hljs-section,.hljs-name,.hljs-selector-tag,.hljs-deletion,.hljs-subst{color:#e06c75}.hljs-literal{color:#56b6c2}.hljs-string,.hljs-regexp,.hljs-addition,.hljs-attribute,.hljs-meta-string{color:#98c379}.hljs-built_in,.hljs-class .hljs-title{color:#e6c07b}.hljs-attr,.hljs-variable,.hljs-template-variable,.hljs-type,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-number{color:#d19a66}.hljs-symbol,.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-title{color:#61aeee}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.hljs-link{text-decoration:underline} -------------------------------------------------------------------------------- /Pod/Assets/styles/atom-one-dark.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;color:#abb2bf;background:#282c34}.hljs-comment,.hljs-quote{color:#5c6370;font-style:italic}.hljs-doctag,.hljs-keyword,.hljs-formula{color:#c678dd}.hljs-section,.hljs-name,.hljs-selector-tag,.hljs-deletion,.hljs-subst{color:#e06c75}.hljs-literal{color:#56b6c2}.hljs-string,.hljs-regexp,.hljs-addition,.hljs-attribute,.hljs-meta-string{color:#98c379}.hljs-built_in,.hljs-class .hljs-title{color:#e6c07b}.hljs-attr,.hljs-variable,.hljs-template-variable,.hljs-type,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-number{color:#d19a66}.hljs-symbol,.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-title{color:#61aeee}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.hljs-link{text-decoration:underline} -------------------------------------------------------------------------------- /Pod/Assets/styles/atom-one-light.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;color:#383a42;background:#fafafa}.hljs-comment,.hljs-quote{color:#a0a1a7;font-style:italic}.hljs-doctag,.hljs-keyword,.hljs-formula{color:#a626a4}.hljs-section,.hljs-name,.hljs-selector-tag,.hljs-deletion,.hljs-subst{color:#e45649}.hljs-literal{color:#0184bb}.hljs-string,.hljs-regexp,.hljs-addition,.hljs-attribute,.hljs-meta-string{color:#50a14f}.hljs-built_in,.hljs-class .hljs-title{color:#c18401}.hljs-attr,.hljs-variable,.hljs-template-variable,.hljs-type,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-number{color:#986801}.hljs-symbol,.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-title{color:#4078f2}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.hljs-link{text-decoration:underline} -------------------------------------------------------------------------------- /Pod/Assets/styles/brown-paper.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#b7a68e url(brown-papersq.png)}.hljs-keyword,.hljs-selector-tag,.hljs-literal{color:#005599;font-weight:bold}.hljs,.hljs-subst{color:#363c69}.hljs-string,.hljs-title,.hljs-section,.hljs-type,.hljs-attribute,.hljs-symbol,.hljs-bullet,.hljs-built_in,.hljs-addition,.hljs-variable,.hljs-template-tag,.hljs-template-variable,.hljs-link,.hljs-name{color:#2c009f}.hljs-comment,.hljs-quote,.hljs-meta,.hljs-deletion{color:#802022}.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-doctag,.hljs-title,.hljs-section,.hljs-type,.hljs-name,.hljs-strong{font-weight:bold}.hljs-emphasis{font-style:italic} -------------------------------------------------------------------------------- /Pod/Assets/styles/codepen-embed.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#222;color:#fff}.hljs-comment,.hljs-quote{color:#777}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-regexp,.hljs-meta,.hljs-number,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-params,.hljs-symbol,.hljs-bullet,.hljs-link,.hljs-deletion{color:#ab875d}.hljs-section,.hljs-title,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-type,.hljs-attribute{color:#9b869b}.hljs-string,.hljs-keyword,.hljs-selector-tag,.hljs-addition{color:#8f9c6c}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/color-brewer.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#fff}.hljs,.hljs-subst{color:#000}.hljs-string,.hljs-meta,.hljs-symbol,.hljs-template-tag,.hljs-template-variable,.hljs-addition{color:#756bb1}.hljs-comment,.hljs-quote{color:#636363}.hljs-number,.hljs-regexp,.hljs-literal,.hljs-bullet,.hljs-link{color:#31a354}.hljs-deletion,.hljs-variable{color:#88f}.hljs-keyword,.hljs-selector-tag,.hljs-title,.hljs-section,.hljs-built_in,.hljs-doctag,.hljs-type,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-strong{color:#3182bd}.hljs-emphasis{font-style:italic}.hljs-attribute{color:#e6550d} -------------------------------------------------------------------------------- /Pod/Assets/styles/darcula.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#2b2b2b}.hljs{color:#bababa}.hljs-strong,.hljs-emphasis{color:#a8a8a2}.hljs-bullet,.hljs-quote,.hljs-link,.hljs-number,.hljs-regexp,.hljs-literal{color:#6896ba}.hljs-code,.hljs-selector-class{color:#a6e22e}.hljs-emphasis{font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-section,.hljs-attribute,.hljs-name,.hljs-variable{color:#cb7832}.hljs-params{color:#b9b9b9}.hljs-string{color:#6a8759}.hljs-subst,.hljs-type,.hljs-built_in,.hljs-builtin-name,.hljs-symbol,.hljs-selector-id,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-template-tag,.hljs-template-variable,.hljs-addition{color:#e0c46c}.hljs-comment,.hljs-deletion,.hljs-meta{color:#7f7f7f} -------------------------------------------------------------------------------- /Pod/Assets/styles/dark.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#444}.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-section,.hljs-link{color:white}.hljs,.hljs-subst{color:#ddd}.hljs-string,.hljs-title,.hljs-name,.hljs-type,.hljs-attribute,.hljs-symbol,.hljs-bullet,.hljs-built_in,.hljs-addition,.hljs-variable,.hljs-template-tag,.hljs-template-variable{color:#d88}.hljs-comment,.hljs-quote,.hljs-deletion,.hljs-meta{color:#777}.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-title,.hljs-section,.hljs-doctag,.hljs-type,.hljs-name,.hljs-strong{font-weight:bold}.hljs-emphasis{font-style:italic} -------------------------------------------------------------------------------- /Pod/Assets/styles/darkula.min.css: -------------------------------------------------------------------------------- 1 | @import url('darcula.css'); -------------------------------------------------------------------------------- /Pod/Assets/styles/default.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#F0F0F0}.hljs,.hljs-subst{color:#444}.hljs-comment{color:#888888}.hljs-keyword,.hljs-attribute,.hljs-selector-tag,.hljs-meta-keyword,.hljs-doctag,.hljs-name{font-weight:bold}.hljs-type,.hljs-string,.hljs-number,.hljs-selector-id,.hljs-selector-class,.hljs-quote,.hljs-template-tag,.hljs-deletion{color:#880000}.hljs-title,.hljs-section{color:#880000;font-weight:bold}.hljs-regexp,.hljs-symbol,.hljs-variable,.hljs-template-variable,.hljs-link,.hljs-selector-attr,.hljs-selector-pseudo{color:#BC6060}.hljs-literal{color:#78A960}.hljs-built_in,.hljs-bullet,.hljs-code,.hljs-addition{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta-string{color:#4d99bf}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/docco.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;color:#000;background:#f8f8ff}.hljs-comment,.hljs-quote{color:#408080;font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-subst{color:#954121}.hljs-number{color:#40a070}.hljs-string,.hljs-doctag{color:#219161}.hljs-selector-id,.hljs-selector-class,.hljs-section,.hljs-type{color:#19469d}.hljs-params{color:#00f}.hljs-title{color:#458;font-weight:bold}.hljs-tag,.hljs-name,.hljs-attribute{color:#000080;font-weight:normal}.hljs-variable,.hljs-template-variable{color:#008080}.hljs-regexp,.hljs-link{color:#b68}.hljs-symbol,.hljs-bullet{color:#990073}.hljs-built_in,.hljs-builtin-name{color:#0086b3}.hljs-meta{color:#999;font-weight:bold}.hljs-deletion{background:#fdd}.hljs-addition{background:#dfd}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/dracula.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#282a36}.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-section,.hljs-link{color:#8be9fd}.hljs-function .hljs-keyword{color:#ff79c6}.hljs,.hljs-subst{color:#f8f8f2}.hljs-string,.hljs-title,.hljs-name,.hljs-type,.hljs-attribute,.hljs-symbol,.hljs-bullet,.hljs-addition,.hljs-variable,.hljs-template-tag,.hljs-template-variable{color:#f1fa8c}.hljs-comment,.hljs-quote,.hljs-deletion,.hljs-meta{color:#6272a4}.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-title,.hljs-section,.hljs-doctag,.hljs-type,.hljs-name,.hljs-strong{font-weight:bold}.hljs-emphasis{font-style:italic} -------------------------------------------------------------------------------- /Pod/Assets/styles/far.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#000080}.hljs,.hljs-subst{color:#0ff}.hljs-string,.hljs-attribute,.hljs-symbol,.hljs-bullet,.hljs-built_in,.hljs-builtin-name,.hljs-template-tag,.hljs-template-variable,.hljs-addition{color:#ff0}.hljs-keyword,.hljs-selector-tag,.hljs-section,.hljs-type,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-variable{color:#fff}.hljs-comment,.hljs-quote,.hljs-doctag,.hljs-deletion{color:#888}.hljs-number,.hljs-regexp,.hljs-literal,.hljs-link{color:#0f0}.hljs-meta{color:#008080}.hljs-keyword,.hljs-selector-tag,.hljs-title,.hljs-section,.hljs-name,.hljs-strong{font-weight:bold}.hljs-emphasis{font-style:italic} -------------------------------------------------------------------------------- /Pod/Assets/styles/foundation.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#eee;color:black}.hljs-link,.hljs-emphasis,.hljs-attribute,.hljs-addition{color:#070}.hljs-emphasis{font-style:italic}.hljs-strong,.hljs-string,.hljs-deletion{color:#d14}.hljs-strong{font-weight:bold}.hljs-quote,.hljs-comment{color:#998;font-style:italic}.hljs-section,.hljs-title{color:#900}.hljs-class .hljs-title,.hljs-type{color:#458}.hljs-variable,.hljs-template-variable{color:#336699}.hljs-bullet{color:#997700}.hljs-meta{color:#3344bb}.hljs-code,.hljs-number,.hljs-literal,.hljs-keyword,.hljs-selector-tag{color:#099}.hljs-regexp{background-color:#fff0ff;color:#880088}.hljs-symbol{color:#990073}.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#007700} -------------------------------------------------------------------------------- /Pod/Assets/styles/github-gist.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;background:white;padding:0.5em;color:#333333;overflow-x:auto}.hljs-comment,.hljs-meta{color:#969896}.hljs-string,.hljs-variable,.hljs-template-variable,.hljs-strong,.hljs-emphasis,.hljs-quote{color:#df5000}.hljs-keyword,.hljs-selector-tag,.hljs-type{color:#a71d5d}.hljs-literal,.hljs-symbol,.hljs-bullet,.hljs-attribute{color:#0086b3}.hljs-section,.hljs-name{color:#63a35c}.hljs-tag{color:#333333}.hljs-title,.hljs-attr,.hljs-selector-id,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo{color:#795da3}.hljs-addition{color:#55a532;background-color:#eaffea}.hljs-deletion{color:#bd2c00;background-color:#ffecec}.hljs-link{text-decoration:underline} -------------------------------------------------------------------------------- /Pod/Assets/styles/github.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;color:#333;background:#f8f8f8}.hljs-comment,.hljs-quote{color:#998;font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-subst{color:#333;font-weight:bold}.hljs-number,.hljs-literal,.hljs-variable,.hljs-template-variable,.hljs-tag .hljs-attr{color:#008080}.hljs-string,.hljs-doctag{color:#d14}.hljs-title,.hljs-section,.hljs-selector-id{color:#900;font-weight:bold}.hljs-subst{font-weight:normal}.hljs-type,.hljs-class .hljs-title{color:#458;font-weight:bold}.hljs-tag,.hljs-name,.hljs-attribute{color:#000080;font-weight:normal}.hljs-regexp,.hljs-link{color:#009926}.hljs-symbol,.hljs-bullet{color:#990073}.hljs-built_in,.hljs-builtin-name{color:#0086b3}.hljs-meta{color:#999;font-weight:bold}.hljs-deletion{background:#fdd}.hljs-addition{background:#dfd}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/gml.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#222222;color:#C0C0C0}.hljs-keywords{color:#FFB871;font-weight:bold}.hljs-built_in{color:#FFB871}.hljs-literal{color:#FF8080}.hljs-symbol{color:#58E55A}.hljs-comment{color:#5B995B}.hljs-string{color:#FFFF00}.hljs-number{color:#FF8080}.hljs-attribute,.hljs-selector-tag,.hljs-doctag,.hljs-name,.hljs-bullet,.hljs-code,.hljs-addition,.hljs-regexp,.hljs-variable,.hljs-template-variable,.hljs-link,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-type,.hljs-selector-id,.hljs-selector-class,.hljs-quote,.hljs-template-tag,.hljs-deletion,.hljs-title,.hljs-section,.hljs-function,.hljs-meta-keyword,.hljs-meta,.hljs-subst{color:#C0C0C0}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/googlecode.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:white;color:black}.hljs-comment,.hljs-quote{color:#800}.hljs-keyword,.hljs-selector-tag,.hljs-section,.hljs-title,.hljs-name{color:#008}.hljs-variable,.hljs-template-variable{color:#660}.hljs-string,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-regexp{color:#080}.hljs-literal,.hljs-symbol,.hljs-bullet,.hljs-meta,.hljs-number,.hljs-link{color:#066}.hljs-title,.hljs-doctag,.hljs-type,.hljs-attr,.hljs-built_in,.hljs-builtin-name,.hljs-params{color:#606}.hljs-attribute,.hljs-subst{color:#000}.hljs-formula{background-color:#eee;font-style:italic}.hljs-selector-id,.hljs-selector-class{color:#9b703f}.hljs-addition{background-color:#baeeba}.hljs-deletion{background-color:#ffc8bd}.hljs-doctag,.hljs-strong{font-weight:bold}.hljs-emphasis{font-style:italic} -------------------------------------------------------------------------------- /Pod/Assets/styles/gruvbox-dark.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#282828}.hljs,.hljs-subst{color:#ebdbb2}.hljs-deletion,.hljs-formula,.hljs-keyword,.hljs-link,.hljs-selector-tag{color:#fb4934}.hljs-built_in,.hljs-emphasis,.hljs-name,.hljs-quote,.hljs-strong,.hljs-title,.hljs-variable{color:#83a598}.hljs-attr,.hljs-params,.hljs-template-tag,.hljs-type{color:#fabd2f}.hljs-builtin-name,.hljs-doctag,.hljs-literal,.hljs-number{color:#8f3f71}.hljs-code,.hljs-meta,.hljs-regexp,.hljs-selector-id,.hljs-template-variable{color:#fe8019}.hljs-addition,.hljs-meta-string,.hljs-section,.hljs-selector-attr,.hljs-selector-class,.hljs-string,.hljs-symbol{color:#b8bb26}.hljs-attribute,.hljs-bullet,.hljs-class,.hljs-function,.hljs-function .hljs-keyword,.hljs-meta-keyword,.hljs-selector-pseudo,.hljs-tag{color:#8ec07c}.hljs-comment{color:#928374}.hljs-link_label,.hljs-literal,.hljs-number{color:#d3869b}.hljs-comment,.hljs-emphasis{font-style:italic}.hljs-section,.hljs-strong,.hljs-tag{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/gruvbox-light.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#fbf1c7}.hljs,.hljs-subst{color:#3c3836}.hljs-deletion,.hljs-formula,.hljs-keyword,.hljs-link,.hljs-selector-tag{color:#9d0006}.hljs-built_in,.hljs-emphasis,.hljs-name,.hljs-quote,.hljs-strong,.hljs-title,.hljs-variable{color:#076678}.hljs-attr,.hljs-params,.hljs-template-tag,.hljs-type{color:#b57614}.hljs-builtin-name,.hljs-doctag,.hljs-literal,.hljs-number{color:#8f3f71}.hljs-code,.hljs-meta,.hljs-regexp,.hljs-selector-id,.hljs-template-variable{color:#af3a03}.hljs-addition,.hljs-meta-string,.hljs-section,.hljs-selector-attr,.hljs-selector-class,.hljs-string,.hljs-symbol{color:#79740e}.hljs-attribute,.hljs-bullet,.hljs-class,.hljs-function,.hljs-function .hljs-keyword,.hljs-meta-keyword,.hljs-selector-pseudo,.hljs-tag{color:#427b58}.hljs-comment{color:#928374}.hljs-link_label,.hljs-literal,.hljs-number{color:#8f3f71}.hljs-comment,.hljs-emphasis{font-style:italic}.hljs-section,.hljs-strong,.hljs-tag{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/hopscotch.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#989498}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-link,.hljs-deletion{color:#dd464c}.hljs-number,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#fd8b19}.hljs-class .hljs-title{color:#fdcc59}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#8fc13e}.hljs-meta{color:#149b93}.hljs-function,.hljs-section,.hljs-title{color:#1290bf}.hljs-keyword,.hljs-selector-tag{color:#c85e7c}.hljs{display:block;background:#322931;color:#b9b5b8;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/hybrid.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#1d1f21}.hljs::selection,.hljs span::selection{background:#373b41}.hljs::-moz-selection,.hljs span::-moz-selection{background:#373b41}.hljs{color:#c5c8c6}.hljs-title,.hljs-name{color:#f0c674}.hljs-comment,.hljs-meta,.hljs-meta .hljs-keyword{color:#707880}.hljs-number,.hljs-symbol,.hljs-literal,.hljs-deletion,.hljs-link{color:#c66}.hljs-string,.hljs-doctag,.hljs-addition,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo{color:#b5bd68}.hljs-attribute,.hljs-code,.hljs-selector-id{color:#b294bb}.hljs-keyword,.hljs-selector-tag,.hljs-bullet,.hljs-tag{color:#81a2be}.hljs-subst,.hljs-variable,.hljs-template-tag,.hljs-template-variable{color:#8abeb7}.hljs-type,.hljs-built_in,.hljs-builtin-name,.hljs-quote,.hljs-section,.hljs-selector-class{color:#de935f}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/idea.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;color:#000;background:#fff}.hljs-subst,.hljs-title{font-weight:normal;color:#000}.hljs-comment,.hljs-quote{color:#808080;font-style:italic}.hljs-meta{color:#808000}.hljs-tag{background:#efefef}.hljs-section,.hljs-name,.hljs-literal,.hljs-keyword,.hljs-selector-tag,.hljs-type,.hljs-selector-id,.hljs-selector-class{font-weight:bold;color:#000080}.hljs-attribute,.hljs-number,.hljs-regexp,.hljs-link{font-weight:bold;color:#0000ff}.hljs-number,.hljs-regexp,.hljs-link{font-weight:normal}.hljs-string{color:#008000;font-weight:bold}.hljs-symbol,.hljs-bullet,.hljs-formula{color:#000;background:#d0eded;font-style:italic}.hljs-doctag{text-decoration:underline}.hljs-variable,.hljs-template-variable{color:#660e7a}.hljs-addition{background:#baeeba}.hljs-deletion{background:#ffc8bd}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/ir-black.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#000;color:#f8f8f8}.hljs-comment,.hljs-quote,.hljs-meta{color:#7c7c7c}.hljs-keyword,.hljs-selector-tag,.hljs-tag,.hljs-name{color:#96cbfe}.hljs-attribute,.hljs-selector-id{color:#ffffb6}.hljs-string,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-addition{color:#a8ff60}.hljs-subst{color:#daefa3}.hljs-regexp,.hljs-link{color:#e9c062}.hljs-title,.hljs-section,.hljs-type,.hljs-doctag{color:#ffffb6}.hljs-symbol,.hljs-bullet,.hljs-variable,.hljs-template-variable,.hljs-literal{color:#c6c5fe}.hljs-number,.hljs-deletion{color:#ff73fd}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/isbl-editor-dark.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#404040;color:#f0f0f0}.hljs,.hljs-subst{color:#f0f0f0}.hljs-comment{color:#b5b5b5;font-style:italic}.hljs-keyword,.hljs-attribute,.hljs-selector-tag,.hljs-meta-keyword,.hljs-doctag,.hljs-name{color:#f0f0f0;font-weight:bold}.hljs-string{color:#97bf0d}.hljs-type,.hljs-number,.hljs-selector-id,.hljs-selector-class,.hljs-quote,.hljs-template-tag,.hljs-deletion{color:#f0f0f0}.hljs-title,.hljs-section{color:#df471e}.hljs-title>.hljs-built_in{color:#81bce9;font-weight:normal}.hljs-regexp,.hljs-symbol,.hljs-variable,.hljs-template-variable,.hljs-link,.hljs-selector-attr,.hljs-selector-pseudo{color:#e2c696}.hljs-built_in,.hljs-literal{color:#97bf0d;font-weight:bold}.hljs-bullet,.hljs-code,.hljs-addition{color:#397300}.hljs-class{color:#ce9d4d;font-weight:bold}.hljs-meta{color:#1f7199}.hljs-meta-string{color:#4d99bf}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/isbl-editor-light.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:white;color:black}.hljs,.hljs-subst{color:#000000}.hljs-comment{color:#555555;font-style:italic}.hljs-keyword,.hljs-attribute,.hljs-selector-tag,.hljs-meta-keyword,.hljs-doctag,.hljs-name{color:#000000;font-weight:bold}.hljs-string{color:#000080}.hljs-type,.hljs-number,.hljs-selector-id,.hljs-selector-class,.hljs-quote,.hljs-template-tag,.hljs-deletion{color:#000000}.hljs-title,.hljs-section{color:#fb2c00}.hljs-title>.hljs-built_in{color:#008080;font-weight:normal}.hljs-regexp,.hljs-symbol,.hljs-variable,.hljs-template-variable,.hljs-link,.hljs-selector-attr,.hljs-selector-pseudo{color:#5e1700}.hljs-built_in,.hljs-literal{color:#000080;font-weight:bold}.hljs-bullet,.hljs-code,.hljs-addition{color:#397300}.hljs-class{color:#6f1C00;font-weight:bold}.hljs-meta{color:#1f7199}.hljs-meta-string{color:#4d99bf}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/kimbie.dark.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#d6baad}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-meta{color:#dc3958}.hljs-number,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params,.hljs-deletion,.hljs-link{color:#f79a32}.hljs-title,.hljs-section,.hljs-attribute{color:#f06431}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#889b4a}.hljs-keyword,.hljs-selector-tag,.hljs-function{color:#98676a}.hljs{display:block;overflow-x:auto;background:#221a0f;color:#d3af86;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/kimbie.light.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#a57a4c}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-meta{color:#dc3958}.hljs-number,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params,.hljs-deletion,.hljs-link{color:#f79a32}.hljs-title,.hljs-section,.hljs-attribute{color:#f06431}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#889b4a}.hljs-keyword,.hljs-selector-tag,.hljs-function{color:#98676a}.hljs{display:block;overflow-x:auto;background:#fbebd4;color:#84613d;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/lightfair.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em}.hljs-name{color:#01a3a3}.hljs-tag,.hljs-meta{color:#778899}.hljs,.hljs-subst{color:#444}.hljs-comment{color:#888}.hljs-keyword,.hljs-attribute,.hljs-selector-tag,.hljs-meta-keyword,.hljs-doctag,.hljs-name{font-weight:bold}.hljs-type,.hljs-string,.hljs-number,.hljs-selector-id,.hljs-selector-class,.hljs-quote,.hljs-template-tag,.hljs-deletion{color:#4286f4}.hljs-title,.hljs-section{color:#4286f4;font-weight:bold}.hljs-regexp,.hljs-symbol,.hljs-variable,.hljs-template-variable,.hljs-link,.hljs-selector-attr,.hljs-selector-pseudo{color:#bc6060}.hljs-literal{color:#62bcbc}.hljs-built_in,.hljs-bullet,.hljs-code,.hljs-addition{color:#25c6c6}.hljs-meta-string{color:#4d99bf}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/magula.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background-color:#f4f4f4}.hljs,.hljs-subst{color:black}.hljs-string,.hljs-title,.hljs-symbol,.hljs-bullet,.hljs-attribute,.hljs-addition,.hljs-variable,.hljs-template-tag,.hljs-template-variable{color:#050}.hljs-comment,.hljs-quote{color:#777}.hljs-number,.hljs-regexp,.hljs-literal,.hljs-type,.hljs-link{color:#800}.hljs-deletion,.hljs-meta{color:#00e}.hljs-keyword,.hljs-selector-tag,.hljs-doctag,.hljs-title,.hljs-section,.hljs-built_in,.hljs-tag,.hljs-name{font-weight:bold;color:navy}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/mono-blue.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#eaeef3}.hljs{color:#00193a}.hljs-keyword,.hljs-selector-tag,.hljs-title,.hljs-section,.hljs-doctag,.hljs-name,.hljs-strong{font-weight:bold}.hljs-comment{color:#738191}.hljs-string,.hljs-title,.hljs-section,.hljs-built_in,.hljs-literal,.hljs-type,.hljs-addition,.hljs-tag,.hljs-quote,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#0048ab}.hljs-meta,.hljs-subst,.hljs-symbol,.hljs-regexp,.hljs-attribute,.hljs-deletion,.hljs-variable,.hljs-template-variable,.hljs-link,.hljs-bullet{color:#4c81c9}.hljs-emphasis{font-style:italic} -------------------------------------------------------------------------------- /Pod/Assets/styles/monokai-sublime.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#23241f}.hljs,.hljs-tag,.hljs-subst{color:#f8f8f2}.hljs-strong,.hljs-emphasis{color:#a8a8a2}.hljs-bullet,.hljs-quote,.hljs-number,.hljs-regexp,.hljs-literal,.hljs-link{color:#ae81ff}.hljs-code,.hljs-title,.hljs-section,.hljs-selector-class{color:#a6e22e}.hljs-strong{font-weight:bold}.hljs-emphasis{font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-name,.hljs-attr{color:#f92672}.hljs-symbol,.hljs-attribute{color:#66d9ef}.hljs-params,.hljs-class .hljs-title{color:#f8f8f2}.hljs-string,.hljs-type,.hljs-built_in,.hljs-builtin-name,.hljs-selector-id,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-addition,.hljs-variable,.hljs-template-variable{color:#e6db74}.hljs-comment,.hljs-deletion,.hljs-meta{color:#75715e} -------------------------------------------------------------------------------- /Pod/Assets/styles/monokai.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#272822;color:#ddd}.hljs-tag,.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-strong,.hljs-name{color:#f92672}.hljs-code{color:#66d9ef}.hljs-class .hljs-title{color:white}.hljs-attribute,.hljs-symbol,.hljs-regexp,.hljs-link{color:#bf79db}.hljs-string,.hljs-bullet,.hljs-subst,.hljs-title,.hljs-section,.hljs-emphasis,.hljs-type,.hljs-built_in,.hljs-builtin-name,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-addition,.hljs-variable,.hljs-template-tag,.hljs-template-variable{color:#a6e22e}.hljs-comment,.hljs-quote,.hljs-deletion,.hljs-meta{color:#75715e}.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-doctag,.hljs-title,.hljs-section,.hljs-type,.hljs-selector-id{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/obsidian.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#282b2e}.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-selector-id{color:#93c763}.hljs-number{color:#ffcd22}.hljs{color:#e0e2e4}.hljs-attribute{color:#668bb0}.hljs-code,.hljs-class .hljs-title,.hljs-section{color:white}.hljs-regexp,.hljs-link{color:#d39745}.hljs-meta{color:#557182}.hljs-tag,.hljs-name,.hljs-bullet,.hljs-subst,.hljs-emphasis,.hljs-type,.hljs-built_in,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-addition,.hljs-variable,.hljs-template-tag,.hljs-template-variable{color:#8cbbad}.hljs-string,.hljs-symbol{color:#ec7600}.hljs-comment,.hljs-quote,.hljs-deletion{color:#818e96}.hljs-selector-class{color:#a082bd}.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-doctag,.hljs-title,.hljs-section,.hljs-type,.hljs-name,.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/ocean.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#65737e}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-deletion{color:#bf616a}.hljs-number,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params,.hljs-meta,.hljs-link{color:#d08770}.hljs-attribute{color:#ebcb8b}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#a3be8c}.hljs-title,.hljs-section{color:#8fa1b3}.hljs-keyword,.hljs-selector-tag{color:#b48ead}.hljs{display:block;overflow-x:auto;background:#2b303b;color:#c0c5ce;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/paraiso-dark.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#8d8687}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-link,.hljs-meta{color:#ef6155}.hljs-number,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params,.hljs-deletion{color:#f99b15}.hljs-title,.hljs-section,.hljs-attribute{color:#fec418}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#48b685}.hljs-keyword,.hljs-selector-tag{color:#815ba4}.hljs{display:block;overflow-x:auto;background:#2f1e2e;color:#a39e9b;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/paraiso-light.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#776e71}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-link,.hljs-meta{color:#ef6155}.hljs-number,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params,.hljs-deletion{color:#f99b15}.hljs-title,.hljs-section,.hljs-attribute{color:#fec418}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#48b685}.hljs-keyword,.hljs-selector-tag{color:#815ba4}.hljs{display:block;overflow-x:auto;background:#e7e9db;color:#4f424c;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/pojoaque.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;color:#dccf8f;background:url(pojoaque.jpg) repeat scroll left top #181914}.hljs-comment,.hljs-quote{color:#586e75;font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-addition{color:#b64926}.hljs-number,.hljs-string,.hljs-doctag,.hljs-regexp{color:#468966}.hljs-title,.hljs-section,.hljs-built_in,.hljs-name{color:#ffb03b}.hljs-variable,.hljs-template-variable,.hljs-class .hljs-title,.hljs-type,.hljs-tag{color:#b58900}.hljs-attribute{color:#b89859}.hljs-symbol,.hljs-bullet,.hljs-link,.hljs-subst,.hljs-meta{color:#cb4b16}.hljs-deletion{color:#dc322f}.hljs-selector-id,.hljs-selector-class{color:#d3a60c}.hljs-formula{background:#073642}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/purebasic.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#FFFFDF}.hljs,.hljs-type,.hljs-function,.hljs-name,.hljs-number,.hljs-attr,.hljs-params,.hljs-subst{color:#000000}.hljs-comment,.hljs-regexp,.hljs-section,.hljs-selector-pseudo,.hljs-addition{color:#00AAAA}.hljs-title,.hljs-tag,.hljs-variable,.hljs-code{color:#006666}.hljs-keyword,.hljs-class,.hljs-meta-keyword,.hljs-selector-class,.hljs-built_in,.hljs-builtin-name{color:#006666;font-weight:bold}.hljs-string,.hljs-selector-attr{color:#0080FF}.hljs-symbol,.hljs-link,.hljs-deletion,.hljs-attribute{color:#924B72}.hljs-meta,.hljs-literal,.hljs-selector-id{color:#924B72;font-weight:bold}.hljs-strong,.hljs-name{font-weight:bold}.hljs-emphasis{font-style:italic} -------------------------------------------------------------------------------- /Pod/Assets/styles/qtcreator_dark.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#000000}.hljs,.hljs-subst,.hljs-tag,.hljs-title{color:#aaaaaa}.hljs-strong,.hljs-emphasis{color:#a8a8a2}.hljs-bullet,.hljs-quote,.hljs-number,.hljs-regexp,.hljs-literal{color:#ff55ff}.hljs-code .hljs-selector-class{color:#aaaaff}.hljs-emphasis,.hljs-stronge,.hljs-type{font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-function,.hljs-section,.hljs-symbol,.hljs-name{color:#ffff55}.hljs-attribute{color:#ff5555}.hljs-variable,.hljs-params,.hljs-class .hljs-title{color:#8888ff}.hljs-string,.hljs-selector-id,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-type,.hljs-built_in,.hljs-builtin-name,.hljs-template-tag,.hljs-template-variable,.hljs-addition,.hljs-link{color:#ff55ff}.hljs-comment,.hljs-meta,.hljs-deletion{color:#55ffff} -------------------------------------------------------------------------------- /Pod/Assets/styles/qtcreator_light.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#ffffff}.hljs,.hljs-subst,.hljs-tag,.hljs-title{color:#000000}.hljs-strong,.hljs-emphasis{color:#000000}.hljs-bullet,.hljs-quote,.hljs-number,.hljs-regexp,.hljs-literal{color:#000080}.hljs-code .hljs-selector-class{color:#800080}.hljs-emphasis,.hljs-stronge,.hljs-type{font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-function,.hljs-section,.hljs-symbol,.hljs-name{color:#808000}.hljs-attribute{color:#800000}.hljs-variable,.hljs-params,.hljs-class .hljs-title{color:#0055AF}.hljs-string,.hljs-selector-id,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-type,.hljs-built_in,.hljs-builtin-name,.hljs-template-tag,.hljs-template-variable,.hljs-addition,.hljs-link{color:#008000}.hljs-comment,.hljs-meta,.hljs-deletion{color:#008000} -------------------------------------------------------------------------------- /Pod/Assets/styles/railscasts.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#232323;color:#e6e1dc}.hljs-comment,.hljs-quote{color:#bc9458;font-style:italic}.hljs-keyword,.hljs-selector-tag{color:#c26230}.hljs-string,.hljs-number,.hljs-regexp,.hljs-variable,.hljs-template-variable{color:#a5c261}.hljs-subst{color:#519f50}.hljs-tag,.hljs-name{color:#e8bf6a}.hljs-type{color:#da4939}.hljs-symbol,.hljs-bullet,.hljs-built_in,.hljs-builtin-name,.hljs-attr,.hljs-link{color:#6d9cbe}.hljs-params{color:#d0d0ff}.hljs-attribute{color:#cda869}.hljs-meta{color:#9b859d}.hljs-title,.hljs-section{color:#ffc66d}.hljs-addition{background-color:#144212;color:#e6e1dc;display:inline-block;width:100%}.hljs-deletion{background-color:#600;color:#e6e1dc;display:inline-block;width:100%}.hljs-selector-class{color:#9b703f}.hljs-selector-id{color:#8b98ab}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.hljs-link{text-decoration:underline} -------------------------------------------------------------------------------- /Pod/Assets/styles/rainbow.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#474949;color:#d1d9e1}.hljs-comment,.hljs-quote{color:#969896;font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-type,.hljs-addition{color:#cc99cc}.hljs-number,.hljs-selector-attr,.hljs-selector-pseudo{color:#f99157}.hljs-string,.hljs-doctag,.hljs-regexp{color:#8abeb7}.hljs-title,.hljs-name,.hljs-section,.hljs-built_in{color:#b5bd68}.hljs-variable,.hljs-template-variable,.hljs-selector-id,.hljs-class .hljs-title{color:#ffcc66}.hljs-section,.hljs-name,.hljs-strong{font-weight:bold}.hljs-symbol,.hljs-bullet,.hljs-subst,.hljs-meta,.hljs-link{color:#f99157}.hljs-deletion{color:#dc322f}.hljs-formula{background:#eee8d5}.hljs-attr,.hljs-attribute{color:#81a2be}.hljs-emphasis{font-style:italic} -------------------------------------------------------------------------------- /Pod/Assets/styles/routeros.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#F0F0F0}.hljs,.hljs-subst{color:#444}.hljs-comment{color:#888888}.hljs-keyword,.hljs-selector-tag,.hljs-meta-keyword,.hljs-doctag,.hljs-name{font-weight:bold}.hljs-attribute{color:#0E9A00}.hljs-function{color:#99069A}.hljs-builtin-name{color:#99069A}.hljs-type,.hljs-string,.hljs-number,.hljs-selector-id,.hljs-selector-class,.hljs-quote,.hljs-template-tag,.hljs-deletion{color:#880000}.hljs-title,.hljs-section{color:#880000;font-weight:bold}.hljs-regexp,.hljs-symbol,.hljs-variable,.hljs-template-variable,.hljs-link,.hljs-selector-attr,.hljs-selector-pseudo{color:#BC6060}.hljs-literal{color:#78A960}.hljs-built_in,.hljs-bullet,.hljs-code,.hljs-addition{color:#0C9A9A}.hljs-meta{color:#1f7199}.hljs-meta-string{color:#4d99bf}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/school-book.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:15px 0.5em 0.5em 30px;font-size:11px;line-height:16px}pre{background:#f6f6ae url(school-book.png);border-top:solid 2px #d2e8b9;border-bottom:solid 1px #d2e8b9}.hljs-keyword,.hljs-selector-tag,.hljs-literal{color:#005599;font-weight:bold}.hljs,.hljs-subst{color:#3e5915}.hljs-string,.hljs-title,.hljs-section,.hljs-type,.hljs-symbol,.hljs-bullet,.hljs-attribute,.hljs-built_in,.hljs-builtin-name,.hljs-addition,.hljs-variable,.hljs-template-tag,.hljs-template-variable,.hljs-link{color:#2c009f}.hljs-comment,.hljs-quote,.hljs-deletion,.hljs-meta{color:#e60415}.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-doctag,.hljs-title,.hljs-section,.hljs-type,.hljs-name,.hljs-selector-id,.hljs-strong{font-weight:bold}.hljs-emphasis{font-style:italic} -------------------------------------------------------------------------------- /Pod/Assets/styles/shades-of-purple.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;line-height:1.45;padding:2rem;background:#2d2b57;font-weight:normal}.hljs-title{color:#fad000;font-weight:normal}.hljs-name{color:#a1feff}.hljs-tag{color:#ffffff}.hljs-attr{color:#f8d000;font-style:italic}.hljs-built_in,.hljs-selector-tag,.hljs-section{color:#fb9e00}.hljs-keyword{color:#fb9e00}.hljs,.hljs-subst{color:#e3dfff}.hljs-string,.hljs-attribute,.hljs-symbol,.hljs-bullet,.hljs-addition,.hljs-code,.hljs-regexp,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-template-tag,.hljs-quote,.hljs-deletion{color:#4cd213}.hljs-meta,.hljs-meta-string{color:#fb9e00}.hljs-comment{color:#ac65ff}.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-name,.hljs-strong{font-weight:normal}.hljs-literal,.hljs-number{color:#fa658d}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/solarized-dark.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#002b36;color:#839496}.hljs-comment,.hljs-quote{color:#586e75}.hljs-keyword,.hljs-selector-tag,.hljs-addition{color:#859900}.hljs-number,.hljs-string,.hljs-meta .hljs-meta-string,.hljs-literal,.hljs-doctag,.hljs-regexp{color:#2aa198}.hljs-title,.hljs-section,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#268bd2}.hljs-attribute,.hljs-attr,.hljs-variable,.hljs-template-variable,.hljs-class .hljs-title,.hljs-type{color:#b58900}.hljs-symbol,.hljs-bullet,.hljs-subst,.hljs-meta,.hljs-meta .hljs-keyword,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-link{color:#cb4b16}.hljs-built_in,.hljs-deletion{color:#dc322f}.hljs-formula{background:#073642}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/solarized-light.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#fdf6e3;color:#657b83}.hljs-comment,.hljs-quote{color:#93a1a1}.hljs-keyword,.hljs-selector-tag,.hljs-addition{color:#859900}.hljs-number,.hljs-string,.hljs-meta .hljs-meta-string,.hljs-literal,.hljs-doctag,.hljs-regexp{color:#2aa198}.hljs-title,.hljs-section,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#268bd2}.hljs-attribute,.hljs-attr,.hljs-variable,.hljs-template-variable,.hljs-class .hljs-title,.hljs-type{color:#b58900}.hljs-symbol,.hljs-bullet,.hljs-subst,.hljs-meta,.hljs-meta .hljs-keyword,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-link{color:#cb4b16}.hljs-built_in,.hljs-deletion{color:#dc322f}.hljs-formula{background:#eee8d5}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/sunburst.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#000;color:#f8f8f8}.hljs-comment,.hljs-quote{color:#aeaeae;font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-type{color:#e28964}.hljs-string{color:#65b042}.hljs-subst{color:#daefa3}.hljs-regexp,.hljs-link{color:#e9c062}.hljs-title,.hljs-section,.hljs-tag,.hljs-name{color:#89bdff}.hljs-class .hljs-title,.hljs-doctag{text-decoration:underline}.hljs-symbol,.hljs-bullet,.hljs-number{color:#3387cc}.hljs-params,.hljs-variable,.hljs-template-variable{color:#3e87e3}.hljs-attribute{color:#cda869}.hljs-meta{color:#8996a8}.hljs-formula{background-color:#0e2231;color:#f8f8f8;font-style:italic}.hljs-addition{background-color:#253b22;color:#f8f8f8}.hljs-deletion{background-color:#420e09;color:#f8f8f8}.hljs-selector-class{color:#9b703f}.hljs-selector-id{color:#8b98ab}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/tomorrow-night-blue.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#7285b7}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-deletion{color:#ff9da4}.hljs-number,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params,.hljs-meta,.hljs-link{color:#ffc58f}.hljs-attribute{color:#ffeead}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#d1f1a9}.hljs-title,.hljs-section{color:#bbdaff}.hljs-keyword,.hljs-selector-tag{color:#ebbbff}.hljs{display:block;overflow-x:auto;background:#002451;color:white;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/tomorrow-night-bright.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#969896}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-deletion{color:#d54e53}.hljs-number,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params,.hljs-meta,.hljs-link{color:#e78c45}.hljs-attribute{color:#e7c547}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#b9ca4a}.hljs-title,.hljs-section{color:#7aa6da}.hljs-keyword,.hljs-selector-tag{color:#c397d8}.hljs{display:block;overflow-x:auto;background:black;color:#eaeaea;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/tomorrow-night-eighties.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#999999}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-deletion{color:#f2777a}.hljs-number,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params,.hljs-meta,.hljs-link{color:#f99157}.hljs-attribute{color:#ffcc66}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#99cc99}.hljs-title,.hljs-section{color:#6699cc}.hljs-keyword,.hljs-selector-tag{color:#cc99cc}.hljs{display:block;overflow-x:auto;background:#2d2d2d;color:#cccccc;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/tomorrow-night.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#969896}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-deletion{color:#cc6666}.hljs-number,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params,.hljs-meta,.hljs-link{color:#de935f}.hljs-attribute{color:#f0c674}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#b5bd68}.hljs-title,.hljs-section{color:#81a2be}.hljs-keyword,.hljs-selector-tag{color:#b294bb}.hljs{display:block;overflow-x:auto;background:#1d1f21;color:#c5c8c6;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/tomorrow.min.css: -------------------------------------------------------------------------------- 1 | .hljs-comment,.hljs-quote{color:#8e908c}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-deletion{color:#c82829}.hljs-number,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params,.hljs-meta,.hljs-link{color:#f5871f}.hljs-attribute{color:#eab700}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#718c00}.hljs-title,.hljs-section{color:#4271ae}.hljs-keyword,.hljs-selector-tag{color:#8959a8}.hljs{display:block;overflow-x:auto;background:white;color:#4d4d4c;padding:0.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/vs.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:white;color:black}.hljs-comment,.hljs-quote,.hljs-variable{color:#008000}.hljs-keyword,.hljs-selector-tag,.hljs-built_in,.hljs-name,.hljs-tag{color:#00f}.hljs-string,.hljs-title,.hljs-section,.hljs-attribute,.hljs-literal,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-addition{color:#a31515}.hljs-deletion,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-meta{color:#2b91af}.hljs-doctag{color:#808080}.hljs-attr{color:#f00}.hljs-symbol,.hljs-bullet,.hljs-link{color:#00b0e8}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Assets/styles/vs2015.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#1E1E1E;color:#DCDCDC}.hljs-keyword,.hljs-literal,.hljs-symbol,.hljs-name{color:#569CD6}.hljs-link{color:#569CD6;text-decoration:underline}.hljs-built_in,.hljs-type{color:#4EC9B0}.hljs-number,.hljs-class{color:#B8D7A3}.hljs-string,.hljs-meta-string{color:#D69D85}.hljs-regexp,.hljs-template-tag{color:#9A5334}.hljs-subst,.hljs-function,.hljs-title,.hljs-params,.hljs-formula{color:#DCDCDC}.hljs-comment,.hljs-quote{color:#57A64A;font-style:italic}.hljs-doctag{color:#608B4E}.hljs-meta,.hljs-meta-keyword,.hljs-tag{color:#9B9B9B}.hljs-variable,.hljs-template-variable{color:#BD63C5}.hljs-attr,.hljs-attribute,.hljs-builtin-name{color:#9CDCFE}.hljs-section{color:gold}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.hljs-bullet,.hljs-selector-tag,.hljs-selector-id,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo{color:#D7BA7D}.hljs-addition{background-color:#144212;display:inline-block;width:100%}.hljs-deletion{background-color:#600;display:inline-block;width:100%} -------------------------------------------------------------------------------- /Pod/Assets/styles/xcode-dark.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#1f2024;color:white}.xml .hljs-meta{color:#6C7986}.hljs-comment,.hljs-quote{color:#6C7986}.hljs-tag,.hljs-attribute,.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-name{color:#FC5FA3}.hljs-variable,.hljs-template-variable{color:#FC5FA3}.hljs-code,.hljs-string,.hljs-meta-string{color:#FC6A5D}.hljs-regexp,.hljs-link{color:#5482FF}.hljs-title,.hljs-symbol,.hljs-bullet,.hljs-number{color:#41A1C0}.hljs-section,.hljs-meta{color:#FC5FA3}.hljs-class .hljs-title,.hljs-type,.hljs-built_in,.hljs-builtin-name,.hljs-params{color:#D0A8FF}.hljs-attr{color:#BF8555}.hljs-subst{color:#FFF}.hljs-formula{background-color:#000;font-style:italic}.hljs-addition{background-color:#baeeba}.hljs-deletion{background-color:#ffc8bd}.hljs-selector-id,.hljs-selector-class{color:#9b703f}.hljs-doctag,.hljs-strong{font-weight:bold}.hljs-emphasis{font-style:italic} 2 | -------------------------------------------------------------------------------- /Pod/Assets/styles/xcode.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#fff;color:black}.xml .hljs-meta{color:#c0c0c0}.hljs-comment,.hljs-quote{color:#007400}.hljs-tag,.hljs-attribute,.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-name{color:#aa0d91}.hljs-variable,.hljs-template-variable{color:#3F6E74}.hljs-code,.hljs-string,.hljs-meta-string{color:#c41a16}.hljs-regexp,.hljs-link{color:#0E0EFF}.hljs-title,.hljs-symbol,.hljs-bullet,.hljs-number{color:#1c00cf}.hljs-section,.hljs-meta{color:#9B2393}.hljs-class .hljs-title,.hljs-type,.hljs-built_in,.hljs-builtin-name,.hljs-params{color:#5c2699}.hljs-attr{color:#836C28}.hljs-subst{color:#000}.hljs-formula{background-color:#eee;font-style:italic}.hljs-addition{background-color:#baeeba}.hljs-deletion{background-color:#ffc8bd}.hljs-selector-id,.hljs-selector-class{color:#9b703f}.hljs-doctag,.hljs-strong{font-weight:bold}.hljs-emphasis{font-style:italic} 2 | -------------------------------------------------------------------------------- /Pod/Assets/styles/xt256.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;color:#eaeaea;background:#000;padding:0.5}.hljs-subst{color:#eaeaea}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.hljs-builtin-name,.hljs-type{color:#eaeaea}.hljs-params{color:#da0000}.hljs-literal,.hljs-number,.hljs-name{color:#ff0000;font-weight:bolder}.hljs-comment{color:#969896}.hljs-selector-id,.hljs-quote{color:#00ffff}.hljs-template-variable,.hljs-variable,.hljs-title{color:#00ffff;font-weight:bold}.hljs-selector-class,.hljs-keyword,.hljs-symbol{color:#fff000}.hljs-string,.hljs-bullet{color:#00ff00}.hljs-tag,.hljs-section{color:#000fff}.hljs-selector-tag{color:#000fff;font-weight:bold}.hljs-attribute,.hljs-built_in,.hljs-regexp,.hljs-link{color:#ff00ff}.hljs-meta{color:#fff;font-weight:bolder} -------------------------------------------------------------------------------- /Pod/Assets/styles/zenburn.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#3f3f3f;color:#dcdcdc}.hljs-keyword,.hljs-selector-tag,.hljs-tag{color:#e3ceab}.hljs-template-tag{color:#dcdcdc}.hljs-number{color:#8cd0d3}.hljs-variable,.hljs-template-variable,.hljs-attribute{color:#efdcbc}.hljs-literal{color:#efefaf}.hljs-subst{color:#8f8f8f}.hljs-title,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-section,.hljs-type{color:#efef8f}.hljs-symbol,.hljs-bullet,.hljs-link{color:#dca3a3}.hljs-deletion,.hljs-string,.hljs-built_in,.hljs-builtin-name{color:#cc9393}.hljs-addition,.hljs-comment,.hljs-quote,.hljs-meta{color:#7f9f7f}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /Pod/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspu/Highlightr/bcf2d0590f32ac2528feb72d7e34f5b463801a47/Pod/Classes/.gitkeep -------------------------------------------------------------------------------- /Pod/Classes/Shims.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Shims.swift 3 | // Pods 4 | // 5 | // Created by Kabir Oberai on 19/06/18. 6 | // 7 | // 8 | 9 | import Foundation 10 | 11 | #if os(OSX) 12 | import AppKit 13 | #elseif os(iOS) || os(tvOS) || os(watchOS) || os(visionOS) 14 | import UIKit 15 | #endif 16 | 17 | #if swift(>=4.2) 18 | public typealias AttributedStringKey = NSAttributedString.Key 19 | #else 20 | public typealias AttributedStringKey = NSAttributedStringKey 21 | #endif 22 | 23 | #if swift(>=4.2) && (os(iOS) || os(tvOS) || os(watchOS) || os(visionOS)) 24 | public typealias TextStorageEditActions = NSTextStorage.EditActions 25 | #else 26 | public typealias TextStorageEditActions = NSTextStorageEditActions 27 | #endif 28 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /coding.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspu/Highlightr/bcf2d0590f32ac2528feb72d7e34f5b463801a47/coding.gif -------------------------------------------------------------------------------- /mix2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspu/Highlightr/bcf2d0590f32ac2528feb72d7e34f5b463801a47/mix2.gif --------------------------------------------------------------------------------
<%= link_to post.title, post %>
^eval($i+10)
Title