Permalink
Browse files

Update README.md

  • Loading branch information...
1 parent 25093d6 commit 49161de0d04eb7360587d7abdfc1d2c00094b8a1 @mnewt committed Aug 8, 2012
Showing with 10 additions and 5 deletions.
  1. +10 −5 README.md
View
@@ -1,7 +1,7 @@
google-code-prettify wrapper
=======================
-Wraps Google Code Prettify into a nice little bow for easy inclusion into any website or blog. Nothing new has been created here, it is packaged up nicely.
+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
@@ -11,20 +11,25 @@ The end of your html template should look like this:
```html
<!-- ======================= Begin Prettify ============================-->
- <link rel="stylesheet" href="google-code-prettify/src/prettify.css">
- <script src="google-code-prettify-min/prettify.js" type="text/javascript"></script>
- <script src="styleCode.js" type="text/javascript"></script>
+ <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
-(https://github.com/jmblog)[jmblog] maintains some nice themes:
+[jmblog](https://github.com/jmblog) maintains some nice themes:
http://jmblog.github.com/color-themes-for-google-code-prettify/

0 comments on commit 49161de

Please sign in to comment.