Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Latest commit

 

History

History
30 lines (21 loc) · 1.14 KB

README.md

File metadata and controls

30 lines (21 loc) · 1.14 KB

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/