diff options
author | Eric Bidelman | 2012-04-08 17:50:49 -0700 |
---|---|---|
committer | Eric Bidelman | 2012-04-08 17:50:49 -0700 |
commit | db92c5e0c26ba0bb545993bb48533d39f1934b95 (patch) | |
tree | ccdf3b9ee4c54923fadaf4fe43979b2997e27342 /js/prettify/lang-css.js | |
parent | 1a10348622e92803cc9a90ec4369bb6974cc5329 (diff) | |
download | io-slides-remote-db92c5e0c26ba0bb545993bb48533d39f1934b95.tar.gz |
Adding prettyprint. Clean up old files
Diffstat (limited to 'js/prettify/lang-css.js')
-rw-r--r-- | js/prettify/lang-css.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/prettify/lang-css.js b/js/prettify/lang-css.js new file mode 100644 index 0000000..041e1f5 --- /dev/null +++ b/js/prettify/lang-css.js | |||
@@ -0,0 +1,2 @@ | |||
1 | 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", | ||
2 | /^(?:<\!--|--\>)/],["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"]); | ||