GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — EnlighterJS/ThemeDevelopment.html at master · dedogames/EnlighterJS Expand file tree/ Copy pathThemeDevelopment.htmlMore file actions 179 lines (136 loc) · 7.19 KB / Copy pathThemeDevelopment.htmlFile metadata and controls179 lines (136 loc) · 7.19 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 <!DOCTYPE html> <html lang="en"> <head> <!-- EnlighterJS Examples Author: Andi Dittrich <http://andidittrich.de> License: MIT X11 License --> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <!-- Favicon !--> <link rel="icon" href="Resources/favicon.png" type="image/png" /> <title>ThemeDevelopment | EnlighterJS</title> <!-- Bootstrap CSS - just 4 styling - not required for enlighterjs --> <link rel="stylesheet" href="Resources/bootstrap/bootstrap.min.css"> <!-- Include EnlighterJS Styles --> <link rel="stylesheet" type="text/css" href="Build/EnlighterJS.min.css" /> <!-- Monospace Fonts on Google Webfonts !--> <link href='http://fonts.googleapis.com/css?family=Cutive+Mono|Roboto+Mono:400,700,400italic,500,500italic,700italic|Ubuntu+Mono:400,700,400italic,700italic|Droid+Sans+Mono|Source+Code+Pro:400,600|Inconsolata:400,700' rel='stylesheet' type='text/css'> <!-- Your Custom Theme --> <link rel="stylesheet" href="Source/Themes/Template.MyTheme.css" /> <!-- Include MooTools Framework --> <script type="text/javascript" src="Resources/MooTools.min.js"></script> <!-- Include EnlighterJS --> <script type="text/javascript" src="Build/EnlighterJS.js"></script> <!-- Initialize EnlighterJS --> <meta name="EnlighterJS" content="Advanced javascript based syntax highlighting" data-linenumbers="true" data-language="javascript" data-theme="mytheme" data-indent="2" data-selector-block="pre" data-selector-inline="code" data-windowbutton="true" data-rawcodebutton="true" data-infobutton="true"/> </head> <body> <!-- Begin page content --> <div class="container"> <div class="page-header"> <h1> <strong>EnlighterJS</strong> <small>Theme Development</small> </h1> </div> <div id="content"> <!-- ############################################################# --> <div class="well">Start your Theme-Development by editing the file <strong>Source/Themes/Template.MyTheme.css</strong> - all changes will directly appear into this document without the need of a rebuild!</div> <h2>Inline Content</h2> <p> Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor <code class="special">window.addEvent('domready', function(){});</code> invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.<br /> Lorem ipsum dolor sit amet, <code>not highlighted</code> consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. </p> <h2>HTML Content</h2> <pre data-enlighter-language="html"> <!DOCTYPE html> <head> <!-- Include EnlighterJS Styles --> <link rel="stylesheet" type="text/css" href="../Build/EnlighterJS.yui.css" /> <!-- Include MooTools Framework --> <script type="text/javascript" src="mootools-core-1.4.5-full-nocompat.js"></script> <!-- Include EnlighterJS --> <script type="text/javascript" src="../Build/EnlighterJS.yui.js" ></script> <!-- Initialize EnlighterJS --> <script type="text/javascript"> window.addEvent('domready', function() { // highlight all pre tags $$('pre').light({ altLines : 'hover', indent : 2, editable: false }); }); </script> <!-- Syntax highlight using Languages/Js.js and default theme --> <pre data-enlighter-language="css">var myClass = new Class({})</pre> <!-- Syntax highlight using Languages/Php.js and theme from Themes/Twilight.css --> <pre data-enlighter-language="php" data-enlighter-theme="twilight"><?php php_info() ?></pre> </pre> <h2>JS Content</h2> <pre class="special" data-enlighter-group="g1" id="Lightit1" data-enlighter-lineoffset="5" data-enlighter-title="Javascript1" data-enlighter-highlight="10,16-19"> window.addEvent('domready', function(){ // metadata config available ? -> autoinit var m = document.getElement('meta[name="EnlighterJS"]'); // check instance if (!m){ return; } // create new options object var options = { language: m.get('data-language') || 'generic', theme: m.get('data-theme') || 'Enlighter', indent: m.get('data-indent').toInt() || -1, hover: m.get('data-hover') || 'hoverEnabled' }; // selector available ? if not, match all pre-tags var blockSelector = m.get('data-selector-block') || 'pre'; // selector available ? if not, match all code-tags var inlineSelector = m.get('data-selector-inline') || 'code'; }); </pre> <pre class="special" data-enlighter-group="g1" data-enlighter-linenums="true" data-enlighter-title="TypeScript ?!" data-enlighter-theme="mootools"> // create output container element var container = new Element(this.options.containerTag); // set class and id attributes. container.addClass(theme + 'EnlighterJS'); container.addClass('EnlighterJSRendered'); container.set('id', 'EnlighterJS_' + String.uniqueID()); // generate output based on ordered list of tokens language.getTokens().each(function(token, index){ // get classname var className = token.type ? (language.aliases[token.type] || token.type) : ''; // create new inline element which contains the token - htmlspecialchars get escaped by mootools setText ! container.grab(new Element('span', { 'class': className, 'text': token.text })); }); return container; </pre> <pre class="special" data-enlighter-group="g1" data-enlighter-linenums="true" data-enlighter-theme="mootools"> // set class and id attributes. container.addClass(theme + 'EnlighterJS'); container.addClass('EnlighterJSRendered'); container.set('id', 'EnlighterJS_' + String.uniqueID()); </pre> <h2>No-Highlight</h2> <pre data-enlighter-language="no-highlight" data-enlighter-highlight="3,6-9" id="NoLight" class="special"> // create output container element var container = new Element(this.options.containerTag); // set class and id attributes. container.addClass(theme + 'EnlighterJS'); container.addClass('EnlighterJSRendered'); container.set('id', 'EnlighterJS_' + String.uniqueID()); </pre> <!-- ############################################################# --> </div> <!-- // content --> </div> <!-- // container --> </body> </html> |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |