Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Wraps Google Prettify into a nice little bow for easy inclusion into any website or blog
JavaScript
tree: 25093d6509

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
google-code-prettify-min
google-code-prettify
README.md
reference.html
styleCode.js
tomorrow-night-mnewt.css

README.md

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.

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:

<!-- ======================= 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>
<!-- ======================== End Prettify =============================-->
</body>
</html>

TWO: (optional): customize the theme by pointing the first line to a different CSS file, such as this one:

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: http://jmblog.github.com/color-themes-for-google-code-prettify/

Something went wrong with that request. Please try again.