Permalink
Browse files

updated README

  • Loading branch information...
1 parent fedc716 commit cb2ff68b3f54121a0cb0afdcbf36d3dd4e815f71 @mnewt committed Aug 8, 2012
Showing with 35 additions and 0 deletions.
  1. +35 −0 README.md
View
@@ -0,0 +1,35 @@
+google-code-prettify wrapper
+=======================
+
+This repository serves up google prettify. It allows you to add code highlighting to any page without hosting any files. It has no external dependencies--just pure javascript.
+
+
+# Directions
+
+**ONE**: copy the code in `reference.html` into your web page, at the end of the file right before `</body>`
+The end of your html template should look like this:
+
+```html
+<!-- ======================= Begin Prettify ============================-->
+ <link rel="stylesheet" type="text/css" rel="stylesheet"
+ href="http://mnewt.github.com/prettify-wrapper/tomorrow-mnewt.css">
+ <script type="text/javascript"
+ src="https://raw.github.com/mnewt/prettify-wrapper/master/google-code-prettify/src/prettify.js">
+ </script>
+ <script type="text/javascript" src="https://raw.github.com/mnewt/prettify-wrapper/master/styleCode.js">
+ </script>
+<!-- ======================== End Prettify =============================-->
+</body>
+</html>
+```
+**TWO**: (optional): customize the theme by pointing the first line to a different CSS file, such as this one:
+https://raw.github.com/mnewt/prettify-wrapper/master/tomorrow-night-mnewt.css
+
+
+# Themes
+
+There are a few themes included in the package itself:
+http://google-code-prettify.googlecode.com/svn/trunk/styles/index.html
+
+[jmblog](https://github.com/jmblog) maintains some nice themes:
+http://jmblog.github.com/color-themes-for-google-code-prettify/

0 comments on commit cb2ff68

Please sign in to comment.