Permalink
Browse files

Added css and js files to branch.

  • Loading branch information...
1 parent 87ef8f5 commit 157fc64a6871eec24520fa1bae6a7ef278d37475 @kashif-umair committed Sep 14, 2012
Showing with 832 additions and 0 deletions.
  1. +109 −0 css/prettify.css
  2. +11 −0 js/lang-apollo.js
  3. +26 −0 js/lang-clj.js
  4. +21 −0 js/lang-css.js
  5. +7 −0 js/lang-go.js
  6. +11 −0 js/lang-hs.js
  7. +14 −0 js/lang-lisp.js
  8. +11 −0 js/lang-lua.js
  9. +11 −0 js/lang-ml.js
  10. +19 −0 js/lang-n.js
  11. +5 −0 js/lang-proto.js
  12. +16 −0 js/lang-scala.js
  13. +10 −0 js/lang-sql.js
  14. +10 −0 js/lang-tex.js
  15. +12 −0 js/lang-vb.js
  16. +12 −0 js/lang-vhdl.js
  17. +14 −0 js/lang-wiki.js
  18. +15 −0 js/lang-xq.js
  19. +16 −0 js/lang-yaml.js
  20. +482 −0 js/prettify.js
View
@@ -0,0 +1,109 @@
+.pln{
+ color: #000
+}
+
+@media screen{
+ .str{
+ color: #080
+ }
+
+ .kwd{
+ color: #008
+ }
+
+ .com{
+ color: #800
+ }
+
+ .typ{
+ color: #606
+ }
+
+ .lit{
+ color: #066
+ }
+
+ .pun,.opn,.clo{
+ color: #660
+ }
+
+ .tag{
+ color: #008
+ }
+
+ .atn{
+ color: #606
+ }
+
+ .atv{
+ color: #080
+ }
+
+ .dec,.var{
+ color: #606
+ }
+
+ .fun{
+ color: red
+ }
+}
+
+@media print,projection{
+ .str{
+ color: #060
+ }
+
+ .kwd{
+ color: #006;
+ font-weight: bold
+ }
+
+ .com{
+ color: #600;
+ font-style: italic
+ }
+
+ .typ{
+ color: #404;
+ font-weight: bold
+ }
+
+ .lit{
+ color: #044
+ }
+
+ .pun,.opn,.clo{
+ color: #440
+ }
+
+ .tag{
+ color: #006;
+ font-weight: bold
+ }
+
+ .atn{
+ color: #404
+ }
+
+ .atv{
+ color: #060
+ }
+}
+
+pre.prettyprint{
+ padding: 2px;
+ border: 1px solid #888
+}
+
+ol.linenums{
+ margin-top: 0;
+ margin-bottom: 0
+}
+
+li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{
+ list-style-type: none
+}
+
+li.L1,li.L3,li.L5,li.L7,li.L9{
+ background: #eee
+}
View
@@ -0,0 +1,11 @@
+PR.registerLangHandler(PR.createSimpleLexer([
+ ["com", /^#[^\n\r]*/, null, "#"],
+ ["pln", /^[\t\n\r \xa0]+/, null, "\t\n\r Â\xa0"],
+ ["str", /^"(?:[^"\\]|\\[\S\s])*(?:"|$)/, null, '"']
+], [
+ ["kwd", /^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/, null],
+ ["typ", /^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[ES]?BANK=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/, null],
+ ["lit", /^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],
+ ["pln", /^-*(?:[!-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/],
+ ["pun", /^[^\w\t\n\r "'-);\\\xa0]+/]
+]), ["apollo", "agc", "aea"]);
View
@@ -0,0 +1,26 @@
+/*
+ Copyright (C) 2011 Google Inc.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+*/
+var a = null;
+PR.registerLangHandler(PR.createSimpleLexer([
+ ["opn", /^[([{]+/, a, "([{"],
+ ["clo", /^[)\]}]+/, a, ")]}"],
+ ["com", /^;[^\n\r]*/, a, ";"],
+ ["pln", /^[\t\n\r \xa0]+/, a, "\t\n\r \xa0"],
+ ["str", /^"(?:[^"\\]|\\[\S\s])*(?:"|$)/, a, '"']
+], [
+ ["kwd", /^(?:def|if|do|let|quote|var|fn|loop|recur|throw|try|monitor-enter|monitor-exit|defmacro|defn|defn-|macroexpand|macroexpand-1|for|doseq|dosync|dotimes|and|or|when|not|assert|doto|proxy|defstruct|first|rest|cons|defprotocol|deftype|defrecord|reify|defmulti|defmethod|meta|with-meta|ns|in-ns|create-ns|import|intern|refer|alias|namespace|resolve|ref|deref|refset|new|set!|memfn|to-array|into-array|aset|gen-class|reduce|map|filter|find|nil?|empty?|hash-map|hash-set|vec|vector|seq|flatten|reverse|assoc|dissoc|list|list?|disj|get|union|difference|intersection|extend|extend-type|extend-protocol|prn)\b/, a],
+ ["typ", /^:[\dA-Za-z-]+/]
+]), ["clj"]);
View
@@ -0,0 +1,21 @@
+PR.registerLangHandler(PR.createSimpleLexer([
+ ["pln", /^[\t\n\f\r ]+/, null, " \t\r\n "]
+], [
+ ["str", /^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/, null],
+ ["str", /^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/, null],
+ ["lang-css-str", /^url\(([^"')]*)\)/i],
+ ["kwd", /^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i, null],
+ ["lang-css-kw", /^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],
+ ["com", /^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],
+ ["com", /^(?:<\!--|--\>)/],
+ ["lit", /^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],
+ ["lit", /^#[\da-f]{3,6}/i],
+ ["pln", /^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],
+ ["pun", /^[^\s\w"']+/]
+]), ["css"]);
+PR.registerLangHandler(PR.createSimpleLexer([], [
+ ["kwd", /^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]
+]), ["css-kw"]);
+PR.registerLangHandler(PR.createSimpleLexer([], [
+ ["str", /^[^"')]+/]
+]), ["css-str"]);
View
@@ -0,0 +1,7 @@
+PR.registerLangHandler(PR.createSimpleLexer([
+ ["pln", /^[\t\n\r \xa0]+/, null, "\t\n\r Â\xa0"],
+ ["pln", /^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])+(?:'|$)|`[^`]*(?:`|$))/, null, "\"'"]
+], [
+ ["com", /^(?:\/\/[^\n\r]*|\/\*[\S\s]*?\*\/)/],
+ ["pln", /^(?:[^"'/`]|\/(?![*/]))+/]
+]), ["go"]);
View
@@ -0,0 +1,11 @@
+PR.registerLangHandler(PR.createSimpleLexer([
+ ["pln", /^[\t-\r ]+/, null, "\t\n \r "],
+ ["str", /^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/, null, '"'],
+ ["str", /^'(?:[^\n\f\r'\\]|\\[^&])'?/, null, "'"],
+ ["lit", /^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i, null, "0123456789"]
+], [
+ ["com", /^(?:--+[^\n\f\r]*|{-(?:[^-]|-+[^}-])*-})/],
+ ["kwd", /^(?:case|class|data|default|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|module|newtype|of|then|type|where|_)(?=[^\d'A-Za-z]|$)/, null],
+ ["pln", /^(?:[A-Z][\w']*\.)*[A-Za-z][\w']*/],
+ ["pun", /^[^\d\t-\r "'A-Za-z]+/]
+]), ["hs"]);
View
@@ -0,0 +1,14 @@
+var a = null;
+PR.registerLangHandler(PR.createSimpleLexer([
+ ["opn", /^\(+/, a, "("],
+ ["clo", /^\)+/, a, ")"],
+ ["com", /^;[^\n\r]*/, a, ";"],
+ ["pln", /^[\t\n\r \xa0]+/, a, "\t\n\r \xa0"],
+ ["str", /^"(?:[^"\\]|\\[\S\s])*(?:"|$)/, a, '"']
+], [
+ ["kwd", /^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/, a],
+ ["lit", /^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],
+ ["lit", /^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],
+ ["pln", /^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],
+ ["pun", /^[^\w\t\n\r "'-);\\\xa0]+/]
+]), ["cl", "el", "lisp", "scm"]);
View
@@ -0,0 +1,11 @@
+PR.registerLangHandler(PR.createSimpleLexer([
+ ["pln", /^[\t\n\r \xa0]+/, null, "\t\n\r Â\xa0"],
+ ["str", /^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$))/, null, "\"'"]
+], [
+ ["com", /^--(?:\[(=*)\[[\S\s]*?(?:]\1]|$)|[^\n\r]*)/],
+ ["str", /^\[(=*)\[[\S\s]*?(?:]\1]|$)/],
+ ["kwd", /^(?:and|break|do|else|elseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/, null],
+ ["lit", /^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],
+ ["pln", /^[_a-z]\w*/i],
+ ["pun", /^[^\w\t\n\r \xa0][^\w\t\n\r "'+=\xa0-]*/]
+]), ["lua"]);
View
@@ -0,0 +1,11 @@
+PR.registerLangHandler(PR.createSimpleLexer([
+ ["pln", /^[\t\n\r \xa0]+/, null, "\t\n\r Â\xa0"],
+ ["com", /^#(?:if[\t\n\r \xa0]+(?:[$_a-z][\w']*|``[^\t\n\r`]*(?:``|$))|else|endif|light)/i, null, "#"],
+ ["str", /^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])(?:'|$))/, null, "\"'"]
+], [
+ ["com", /^(?:\/\/[^\n\r]*|\(\*[\S\s]*?\*\))/],
+ ["kwd", /^(?:abstract|and|as|assert|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|if|in|inherit|inline|interface|internal|lazy|let|match|member|module|mutable|namespace|new|null|of|open|or|override|private|public|rec|return|static|struct|then|to|true|try|type|upcast|use|val|void|when|while|with|yield|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|global|include|method|mixin|object|parallel|process|protected|pure|sealed|trait|virtual|volatile)\b/],
+ ["lit", /^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],
+ ["pln", /^(?:[_a-z][\w']*[!#?]?|``[^\t\n\r`]*(?:``|$))/i],
+ ["pun", /^[^\w\t\n\r "'\xa0]+/]
+]), ["fs", "ml"]);
View
@@ -0,0 +1,19 @@
+var a = null;
+PR.registerLangHandler(PR.createSimpleLexer([
+ ["str", /^(?:'(?:[^\n\r'\\]|\\.)*'|"(?:[^\n\r"\\]|\\.)*(?:"|$))/, a, '"'],
+ ["com", /^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/, a, "#"],
+ ["pln", /^\s+/, a, " \r\n\t\xa0"]
+], [
+ ["str", /^@"(?:[^"]|"")*(?:"|$)/, a],
+ ["str", /^<#[^#>]*(?:#>|$)/, a],
+ ["str", /^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/, a],
+ ["com", /^\/\/[^\n\r]*/, a],
+ ["com", /^\/\*[\S\s]*?(?:\*\/|$)/, a],
+ ["kwd", /^(?:abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield)\b/, a],
+ ["typ", /^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/, a],
+ ["lit", /^@[$_a-z][\w$@]*/i, a],
+ ["typ", /^@[A-Z]+[a-z][\w$@]*/, a],
+ ["pln", /^'?[$_a-z][\w$@]*/i, a],
+ ["lit", /^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i, a, "0123456789"],
+ ["pun", /^.[^\s\w"-$'./@`]*/, a]
+]), ["n", "nemerle"]);
View
@@ -0,0 +1,5 @@
+PR.registerLangHandler(PR.sourceDecorator({
+ keywords: "bytes,default,double,enum,extend,extensions,false,group,import,max,message,option,optional,package,repeated,required,returns,rpc,service,syntax,to,true",
+ types: /^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,
+ cStyleComments: !0
+}), ["proto"]);
View
@@ -0,0 +1,16 @@
+PR.registerLangHandler(PR.createSimpleLexer([
+ ["pln", /^[\t\n\r \xa0]+/, null, "\t\n\r Â\xa0"],
+ ["str", /^"(?:""(?:""?(?!")|[^"\\]|\\.)*"{0,3}|(?:[^\n\r"\\]|\\.)*"?)/, null, '"'],
+ ["lit", /^`(?:[^\n\r\\`]|\\.)*`?/, null, "`"],
+ ["pun", /^[!#%&(--:-@[-^{-~]+/, null, "!#%&()*+,-:;<=>?@[\\]^{|}~"]
+], [
+ ["str", /^'(?:[^\n\r'\\]|\\(?:'|[^\n\r']+))'/],
+ ["lit", /^'[$A-Z_a-z][\w$]*(?![\w$'])/],
+ ["kwd", /^(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|object|override|package|private|protected|requires|return|sealed|super|throw|trait|try|type|val|var|while|with|yield)\b/],
+ ["lit", /^(?:true|false|null|this)\b/],
+ ["lit", /^(?:0(?:[0-7]+|x[\da-f]+)l?|(?:0|[1-9]\d*)(?:(?:\.\d+)?(?:e[+-]?\d+)?f?|l?)|\\.\d+(?:e[+-]?\d+)?f?)/i],
+ ["typ", /^[$_]*[A-Z][\d$A-Z_]*[a-z][\w$]*/],
+ ["pln", /^[$A-Z_a-z][\w$]*/],
+ ["com", /^\/(?:\/.*|\*(?:\/|\**[^*/])*(?:\*+\/?)?)/],
+ ["pun", /^(?:\.+|\/)/]
+]), ["scala"]);
View
Oops, something went wrong.
View
@@ -0,0 +1,10 @@
+PR.registerLangHandler(PR.createSimpleLexer([
+ ["pln", /^[\t\n\r \xa0]+/, null, "\t\n\r Â\xa0"],
+ ["com", /^%[^\n\r]*/, null, "%"]
+], [
+ ["kwd", /^\\[@-Za-z]+/],
+ ["kwd", /^\\./],
+ ["typ", /^[$&]/],
+ ["lit", /[+-]?(?:\.\d+|\d+(?:\.\d*)?)(cm|em|ex|in|pc|pt|bp|mm)/i],
+ ["pun", /^[()=[\]{}]+/]
+]), ["latex", "tex"]);
View
Oops, something went wrong.
View
Oops, something went wrong.
View
@@ -0,0 +1,14 @@
+PR.registerLangHandler(PR.createSimpleLexer([
+ ["pln", /^[\d\t a-gi-z\xa0]+/, null, "\t Â\xa0abcdefgijklmnopqrstuvwxyz0123456789"],
+ ["pun", /^[*=[\]^~]+/, null, "=*~^[]"]
+], [
+ ["lang-wiki.meta", /(?:^^|\r\n?|\n)(#[a-z]+)\b/],
+ ["lit", /^[A-Z][a-z][\da-z]+[A-Z][a-z][^\W_]+\b/],
+ ["lang-", /^{{{([\S\s]+?)}}}/],
+ ["lang-", /^`([^\n\r`]+)`/],
+ ["str", /^https?:\/\/[^\s#/?]*(?:\/[^\s#?]*)?(?:\?[^\s#]*)?(?:#\S*)?/i],
+ ["pln", /^(?:\r\n|[\S\s])[^\n\r#*=A-[^`h{~]*/]
+]), ["wiki"]);
+PR.registerLangHandler(PR.createSimpleLexer([
+ ["kwd", /^#[a-z]+/i, null, "#"]
+], []), ["wiki.meta"]);
View
Oops, something went wrong.
View
@@ -0,0 +1,16 @@
+var a = null;
+PR.registerLangHandler(PR.createSimpleLexer([
+ ["pun", /^[:>?|]+/, a, ":|>?"],
+ ["dec", /^%(?:YAML|TAG)[^\n\r#]+/, a, "%"],
+ ["typ", /^&\S+/, a, "&"],
+ ["typ", /^!\S*/, a, "!"],
+ ["str", /^"(?:[^"\\]|\\.)*(?:"|$)/, a, '"'],
+ ["str", /^'(?:[^']|'')*(?:'|$)/, a, "'"],
+ ["com", /^#[^\n\r]*/, a, "#"],
+ ["pln", /^\s+/, a, " \t\r\n"]
+], [
+ ["dec", /^(?:---|\.\.\.)(?:[\n\r]|$)/],
+ ["pun", /^-/],
+ ["kwd", /^\w+:[\n\r ]/],
+ ["pln", /^\w+/]
+]), ["yaml", "yml"]);
Oops, something went wrong.

0 comments on commit 157fc64

Please sign in to comment.