Permalink
Browse files

syntax highlighting w/ google-prettify

  • Loading branch information...
brandonc committed Jun 20, 2011
1 parent 6c97df7 commit c6637ea9072e5a2ff8de26df9e232bfa4c35151c
Showing with 1,583 additions and 1 deletion.
  1. +41 −0 demos/autoDocs-jQuery-prettify.html
  2. +40 −0 demos/autoDocs-prototype-prettify.html
  3. +27 −0 lib/prettify.css
  4. +1,472 −0 lib/prettify.js
  5. +3 −1 src/docJS.js
@@ -0,0 +1,41 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+
+<link rel="stylesheet" href="../src/style.css" type="text/css" media="screen, projection">
+<link rel="stylesheet" href="../lib/prettify.css" type="text/css" media="screen, projection">
+
+<script src="../lib/prettify.js" language="javascript" type="text/javascript"></script>
+<script src="../src/docJS.js" language="javascript" type="text/javascript" ></script>
+
+
+<script src="http://code.jquery.com/jquery-1.6.1.js" language="javascript" type="text/javascript" ></script>
+
+
+
+<title>Auto Object Documentation</title>
+
+<script type="text/javascript">
+
+function loadthisfunction(){
+
+
+docJS(jQuery,"jQuery");
+}
+
+window.addEventListener('load',loadthisfunction,false);
+
+
+
+
+
+</script>
+</head>
+
+<body>
+
+
+
+</body>
+</html>
@@ -0,0 +1,40 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+
+<link rel="stylesheet" href="../src/style.css" type="text/css" media="screen, projection">
+<link rel="stylesheet" href="../lib/prettify.css" type="text/css" media="screen, projection">
+
+<script src="../lib/prettify.js" language="javascript" type="text/javascript"></script>
+<script src="../src/docJS.js" language="javascript" type="text/javascript" ></script>
+
+<script src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js" language="javascript" type="text/javascript" ></script>
+
+
+
+<title>Auto Object Documentation</title>
+
+<script type="text/javascript">
+
+function loadthisfunction(){
+
+
+docJS(Object,"Object");
+}
+
+window.addEventListener('load',loadthisfunction,false);
+
+
+
+
+
+</script>
+</head>
+
+<body>
+
+
+
+</body>
+</html>
View
@@ -0,0 +1,27 @@
+/* Pretty printing styles. Used with prettify.js. */
+
+.str { color: #080; }
+.kwd { color: #008; }
+.com { color: #800; }
+.typ { color: #606; }
+.lit { color: #066; }
+.pun { color: #660; }
+.pln { color: #000; }
+.tag { color: #008; }
+.atn { color: #606; }
+.atv { color: #080; }
+.dec { color: #606; }
+pre.prettyprint { padding: 2px; border: 1px solid #888; }
+
+@media print {
+ .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 { color: #440; }
+ .pln { color: #000; }
+ .tag { color: #006; font-weight: bold; }
+ .atn { color: #404; }
+ .atv { color: #060; }
+}
Oops, something went wrong.

0 comments on commit c6637ea

Please sign in to comment.