title: XHTML java snippet with Google Pretty print
body: <p>I am looking at options to insert a Java SE code snippet into my XHTML document. I found Google's 'google-code-prettify' but cannot find any templates that seem to fit best for displaying code snippets with line numbers etc. Has anyone had any experience with using google-code-prettify with java source, or is there another plugin I can try? </p>
  
  <p>Edit: I updated my xhtml so it currently looks like this. I then updated the prettify.css source to include the code provided in below comments. </p>
  
  <pre><code>&lt;link href="prettyprint\google-code-prettify\src\prettify.css" type="text/css" rel="stylesheet" /&gt;
  &lt;script type="text/javascript" src="prettyprint\google-code-prettify\src\prettify.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>My java source is still centered, and not indented to the left. Do I need to update the .js file or .css further to accomplish this?</p>
  
  <p>Answer: I wrapped my pre tag inside a div called codesnippet. Below is the code in the css that fixed this for me.</p>
  
  <pre><code>#codesnippet li{text-align:left; }
  </code></pre>