-
Notifications
You must be signed in to change notification settings - Fork 16
/
customcolors.html
executable file
·17 lines (17 loc) · 21.1 KB
/
customcolors.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="codemirror/css/xmlcolors.css">
<link rel="stylesheet" href="codemirror/css/csscolors.css">
<link rel="stylesheet" href="codemirror/contrib/php/css/phpcolors.css">
<link rel="stylesheet" href="codemirror/css/jscolors.css">
<link rel="stylesheet" href="customcolors.css">
<title></title>
<script>
</script>
<style>
</style>
</head>
<body style="border-width: 0;" class="editbox" spellcheck="false"><span class="xml-doctype"><!DOCTYPE </span><span class="xml-doctype">html></span><br><span class="xml-punctuation"><</span><span class="xml-tagname">html </span><span class="xml-attname">lang</span><span class="xml-punctuation">=</span><span class="xml-attribute">"en"</span><span class="xml-punctuation">></span><br><span class="whitespace"> </span><span class="xml-punctuation"><</span><span class="xml-tagname">head</span><span class="xml-punctuation">></span><br><span class="whitespace"> </span><span class="xml-punctuation"><</span><span class="xml-tagname">meta </span><span class="xml-attname">charset</span><span class="xml-punctuation">=</span><span class="xml-attribute">"utf-8" </span><span class="xml-punctuation">/></span><br><span class="whitespace"> </span><span class="xml-punctuation"><</span><span class="xml-tagname">title</span><span class="xml-punctuation">></span><span class="xml-punctuation"></</span><span class="xml-tagname">title</span><span class="xml-punctuation">></span><br><span class="whitespace"> </span><span class="xml-punctuation"><</span><span class="xml-tagname">script </span><span class="xml-attname">src</span><span class="xml-punctuation">=</span><span class="xml-attribute">"http://code.jquery.com/jquery-latest.min.js"</span><span class="xml-punctuation">></span><span class="xml-punctuation"></</span><span class="xml-tagname">script</span><span class="xml-punctuation">></span><br><span class="whitespace"> </span><span class="xml-punctuation"><</span><span class="xml-tagname">script</span><span class="xml-punctuation">></span><br><span class="whitespace"> </span><span class="js-comment">// here is some javascript</span><br><span class="whitespace"> </span><span class="js-variable">$</span><span class="js-punctuation">(</span><span class="js-keyword">function</span><span class="js-punctuation">(</span><span class="js-punctuation">)</span><span class="js-punctuation">{</span><br><span class="whitespace"> </span><br><span class="whitespace"> </span><span class="js-keyword">var </span><span class="js-variabledef">aVariable </span><span class="js-operator">= </span><span class="js-string">"some text"</span><span class="js-punctuation">,</span><br><span class="whitespace"> </span><span class="js-variabledef">anArray </span><span class="js-operator">= </span><span class="js-punctuation">[</span><span class="js-atom">1</span><span class="js-punctuation">,</span><span class="js-atom">2</span><span class="js-punctuation">,</span><span class="js-atom">3</span><span class="js-punctuation">]</span><span class="js-punctuation">,</span><br><span class="whitespace"> </span><span class="js-variabledef">anotherVar </span><span class="js-operator">= </span><span class="js-atom">1000</span><span class="js-punctuation">,</span><br><span class="whitespace"> </span><span class="js-variabledef">anObject </span><span class="js-operator">= </span><span class="js-punctuation">{</span><br><span class="whitespace"> </span><span class="js-property">x </span><span class="js-punctuation">: </span><span class="js-atom">100</span><span class="js-punctuation">, </span><br><span class="whitespace"> </span><span class="js-property">y </span><span class="js-punctuation">: </span><span class="js-atom">100</span><span class="js-punctuation">,</span><br><span class="whitespace"> </span><span class="js-property">z </span><span class="js-punctuation">: </span><span class="js-atom">100 </span><br><span class="whitespace"> </span><span class="js-punctuation">}</span><span class="js-punctuation">;</span><br><span class="whitespace"> </span><br><span class="whitespace"> </span><span class="js-keyword">for </span><span class="js-punctuation">(</span><span class="js-keyword">var </span><span class="js-variabledef">i </span><span class="js-operator">= </span><span class="js-atom">0</span><span class="js-punctuation">; </span><span class="js-localvariable">i </span><span class="js-operator"><</span><span class="js-localvariable">anArray</span><span class="js-punctuation">.</span><span class="js-property">length </span><span class="js-punctuation">; </span><span class="js-localvariable">i</span><span class="js-operator">++</span><span class="js-punctuation">)</span><span class="js-punctuation">{</span><br><span class="whitespace"> </span><span class="js-variable">console</span><span class="js-punctuation">.</span><span class="js-property">log</span><span class="js-punctuation">(</span><span class="js-localvariable">anArray</span><span class="js-punctuation">[</span><span class="js-localvariable">i</span><span class="js-punctuation">]</span><span class="js-punctuation">)</span><span class="js-punctuation">;</span><br><span class="whitespace"> </span><span class="js-punctuation">}</span><br><span class="whitespace"> </span><br><span class="whitespace"> </span><span class="js-variable">$</span><span class="js-punctuation">(</span><span class="js-string">"#box"</span><span class="js-punctuation">)</span><span class="js-punctuation">.</span><span class="js-property">click</span><span class="js-punctuation">(</span><span class="js-keyword">function</span><span class="js-punctuation">(</span><span class="js-punctuation">)</span><span class="js-punctuation">{</span><br><span class="whitespace"> </span><span class="js-variable">alert</span><span class="js-punctuation">(</span><span class="js-string">"hello " </span><span class="js-operator">+ </span><span class="js-variable">Math</span><span class="js-punctuation">.</span><span class="js-property">random</span><span class="js-punctuation">(</span><span class="js-punctuation">)</span><span class="js-punctuation">)</span><span class="js-punctuation">;</span><br><span class="whitespace"> </span><span class="js-punctuation">}</span><span class="js-punctuation">)</span><span class="js-punctuation">;</span><br><span class="whitespace"> </span><br><span class="whitespace"> </span><span class="js-keyword">function </span><span class="js-variabledef">CustomObject</span><span class="js-punctuation">(</span><span class="js-punctuation">)</span><span class="js-punctuation">{</span><br><span class="whitespace"> </span><span class="js-localvariable">this</span><span class="js-punctuation">.</span><span class="js-property">x </span><span class="js-operator">= </span><span class="js-atom">100</span><span class="js-punctuation">;</span><br><span class="whitespace"> </span><span class="js-localvariable">this</span><span class="js-punctuation">.</span><span class="js-property">y </span><span class="js-operator">= </span><span class="js-atom">100</span><span class="js-punctuation">;</span><br><span class="whitespace"> </span><span class="js-localvariable">this</span><span class="js-punctuation">.</span><span class="js-property">z </span><span class="js-operator">= </span><span class="js-atom">100</span><span class="js-punctuation">; </span><br><span class="whitespace"> </span><span class="js-punctuation">}</span><br><span class="whitespace"> </span><span class="js-localvariable">CustomObject</span><span class="js-punctuation">.</span><span class="js-property">prototype</span><span class="js-punctuation">.</span><span class="js-property">move</span><span class="js-punctuation">(</span><span class="js-variable">x</span><span class="js-punctuation">, </span><span class="js-variable">y</span><span class="js-punctuation">, </span><span class="js-variable">z</span><span class="js-punctuation">)</span><span class="js-punctuation">{</span><br><span class="whitespace"> </span><span class="js-localvariable">this</span><span class="js-punctuation">.</span><span class="js-property">x </span><span class="js-operator">+= </span><span class="js-variable">x</span><span class="js-punctuation">;</span><br><span class="whitespace"> </span><span class="js-localvariable">this</span><span class="js-punctuation">.</span><span class="js-property">y </span><span class="js-operator">+= </span><span class="js-variable">y</span><span class="js-punctuation">;</span><br><span class="whitespace"> </span><span class="js-localvariable">this</span><span class="js-punctuation">.</span><span class="js-property">z </span><span class="js-operator">+= </span><span class="js-variable">z</span><span class="js-punctuation">; </span><br><span class="whitespace"> </span><span class="js-punctuation">}</span><span class="js-punctuation">;</span><br><span class="whitespace"> </span><br><span class="whitespace"> </span><span class="js-comment">/* the end */</span><br><span class="whitespace"> </span><br><span class="whitespace"> </span><span class="js-punctuation">}</span><span class="js-punctuation">)</span><span class="js-punctuation">;</span><br><span class="whitespace"> </span><span class="xml-punctuation"></</span><span class="xml-tagname">script</span><span class="xml-punctuation">></span><br><span class="whitespace"> </span><span class="xml-punctuation"><</span><span class="xml-tagname">style</span><span class="xml-punctuation">></span><br><span class="whitespace"> </span><br><span class="whitespace"> </span><span class="css-comment">/* here is some css code */</span><br><span class="whitespace"> </span><br><span class="whitespace"> </span><span class="css-at">@import </span><span class="css-identifier">url</span><span class="css-identifier">(some-stuff</span><span class="css-select-op">.</span><span class="css-identifier">css</span><span class="css-identifier">)</span><span class="css-punctuation">;</span><br><span class="whitespace"> </span><br><span class="whitespace"> </span><span class="css-select-op">.</span><span class="css-selector">class</span><span class="css-punctuation">{</span><br><span class="whitespace"> </span><span class="css-identifier">color </span><span class="css-punctuation">: </span><span class="css-value">red</span><span class="css-punctuation">; </span><br><span class="whitespace"> </span><span class="css-punctuation">}</span><br><span class="whitespace"> </span><span class="css-select-op">.</span><span class="css-selector">id</span><span class="css-punctuation">{</span><br><span class="whitespace"> </span><span class="css-identifier">color </span><span class="css-punctuation">: </span><span class="css-value">green</span><span class="css-punctuation">;</span><br><span class="whitespace"> </span><span class="css-identifier">background-image </span><span class="css-punctuation">: </span><span class="css-value">url</span><span class="css-value">(</span><span class="css-string">"some-image.jpg"</span><span class="css-value">)</span><span class="css-punctuation">;</span><br><span class="whitespace"> </span><span class="css-punctuation">}</span><br><span class="whitespace"> </span><span class="css-select-op">.</span><span class="css-selector">box </span><span class="css-select-op">> </span><span class="css-selector">div</span><span class="css-punctuation">{</span><br><span class="whitespace"> </span><span class="css-identifier">border </span><span class="css-punctuation">: </span><span class="css-unit">1px </span><span class="css-value">solid </span><span class="css-value">red</span><span class="css-punctuation">; </span><br><span class="whitespace"> </span><span class="css-punctuation">}</span><br><span class="whitespace"> </span><span class="css-select-op">.</span><span class="css-selector">ul </span><span class="css-selector">li </span><span class="css-selector">ul</span><span class="css-punctuation">:</span><span class="css-selector">nth-child</span><span class="css-selector">(2</span><span class="css-selector">)</span><span class="css-punctuation">{</span><br><span class="whitespace"> </span><span class="css-identifier">color </span><span class="css-punctuation">: </span><span class="css-value">red</span><span class="css-punctuation">;</span><br><span class="whitespace"> </span><span class="css-punctuation">}</span><br><span class="whitespace"> </span><br><span class="whitespace"> </span><span class="xml-punctuation"></</span><span class="xml-tagname">style</span><span class="xml-punctuation">></span><br><span class="whitespace"> </span><span class="xml-punctuation"></</span><span class="xml-tagname">head</span><span class="xml-punctuation">></span><br><span class="whitespace"> </span><span class="xml-punctuation"><</span><span class="xml-tagname">body</span><span class="xml-punctuation">></span><br><span class="whitespace"> </span><br><span class="whitespace"> </span><span class="xml-comment"><!-- this is some html --></span><br><span class="whitespace"> </span><span class="xml-punctuation"><</span><span class="xml-tagname">h2</span><span class="xml-punctuation">></span><span class="xml-text">I AM A TITLE</span><span class="xml-punctuation"></</span><span class="xml-tagname">h2</span><span class="xml-punctuation">></span><br><span class="whitespace"> </span><br><span class="whitespace"> </span><span class="xml-processing"><?php</span><br><span class="whitespace"> </span><br><span class="whitespace"> </span><span class="php-comment">// this is some php</span><br><span class="whitespace"> </span><br><span class="whitespace"> </span><span class="php-variable">$aVariable </span><span class="php-operator">= </span><span class="php-string-double-quoted">"greetings"</span><span class="php-punctuation">;</span><br><span class="whitespace"> </span><span class="php-variable">$anArray </span><span class="php-operator">= </span><span class="php-reserved-language-construct">array</span><span class="php-punctuation">(</span><span class="php-atom">1</span><span class="php-punctuation">,</span><span class="php-atom">2</span><span class="php-punctuation">,</span><span class="php-atom">3</span><span class="php-punctuation">)</span><span class="php-punctuation">;</span><br><span class="whitespace"> </span><span class="php-variable">$anAssociativeArray </span><span class="php-operator">= </span><span class="php-reserved-language-construct">array</span><span class="php-punctuation">(</span><br><span class="whitespace"> </span><span class="php-string-double-quoted">"one" </span><span class="php-operator">=> </span><span class="php-atom">1</span><span class="php-punctuation">,</span><br><span class="whitespace"> </span><span class="php-string-double-quoted">"two" </span><span class="php-operator">=> </span><span class="php-atom">2</span><span class="php-punctuation">,</span><br><span class="whitespace"> </span><span class="php-string-double-quoted">"three" </span><span class="php-operator">=> </span><span class="php-atom">3 </span><br><span class="whitespace"> </span><span class="php-punctuation">)</span><span class="php-punctuation">;</span><br><span class="whitespace"> </span><br><span class="whitespace"> </span><span class="php-keyword">if </span><span class="php-punctuation">(</span><span class="php-reserved-language-construct">isset</span><span class="php-punctuation">(</span><span class="php-variable">$_POST</span><span class="php-punctuation">[</span><span class="php-string-double-quoted">"name"</span><span class="php-punctuation">]</span><span class="php-punctuation">)</span><span class="php-punctuation">) </span><span class="php-punctuation">{</span><br><span class="whitespace"> </span><span class="php-reserved-language-construct">echo </span><span class="php-variable">$_POST</span><span class="php-punctuation">[</span><span class="php-string-double-quoted">"name"</span><span class="php-punctuation">]</span><span class="php-punctuation">;</span><br><span class="whitespace"> </span><span class="php-punctuation">}</span><br><span class="whitespace"> </span><br><span class="whitespace"> </span><span class="php-keyword">for </span><span class="php-punctuation">(</span><span class="php-variable">$i </span><span class="php-operator">= </span><span class="php-atom">0</span><span class="php-punctuation">; </span><span class="php-variable">$i </span><span class="php-operator">< </span><span class="php-predefined-function">count</span><span class="php-punctuation">(</span><span class="php-variable">$anArray</span><span class="php-punctuation">)</span><span class="php-punctuation">; </span><span class="php-variable">$i</span><span class="php-operator">++</span><span class="php-punctuation">)</span><span class="php-punctuation">{</span><br><span class="whitespace"> </span><span class="php-reserved-language-construct">echo </span><span class="php-variable">$anArray</span><span class="php-punctuation">[</span><span class="php-variable">$i</span><span class="php-punctuation">] </span><span class="php-operator">. </span><span class="php-string-double-quoted">"<br/>"</span><span class="php-punctuation">;</span><br><span class="whitespace"> </span><span class="php-punctuation">}</span><br><span class="whitespace"> </span><br><span class="whitespace"> </span><span class="php-keyword">function </span><span class="php-t_string">test</span><span class="php-punctuation">(</span><span class="php-variable">$a</span><span class="php-punctuation">, </span><span class="php-variable">$b</span><span class="php-punctuation">, </span><span class="php-variable">$c</span><span class="php-punctuation">)</span><span class="php-punctuation">{</span><br><span class="whitespace"> </span><span class="php-keyword">global </span><span class="php-variable">$aVariable</span><span class="php-punctuation">;</span><br><span class="whitespace"> </span><span class="php-reserved-language-construct">echo </span><span class="php-variable">$a </span><span class="php-operator">. </span><span class="php-variable">$b </span><span class="php-operator">. </span><span class="php-variable">$c </span><span class="php-operator">. </span><span class="php-string-double-quoted">"..."</span><span class="php-punctuation">;</span><br><span class="whitespace"> </span><span class="php-punctuation">}</span><br><span class="whitespace"> </span><br><span class="whitespace"> </span><br><span class="whitespace"> </span><span class="xml-processing">?></span><br><span class="whitespace"> </span><span class="xml-punctuation"></</span><span class="xml-tagname">body</span><span class="xml-punctuation">></span><br><span class="xml-punctuation"></</span><span class="xml-tagname">html</span><span class="xml-punctuation">></span><br></body>
</html>