dosper7 / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

Support for "<code>" tag #100

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If you wrap code in a "<code>" and include the requisite class it should
also highlight the text.
Perhaps <code> should include an implicit "prettyprint" class so you /just/
need to use the lang-* part.

Original issue reported on code.google.com by eitan.ad...@gmail.com on 4 Dec 2009 at 12:02

GoogleCodeExporter commented 8 years ago
The code in the third bullet point:
    3. Add onload="prettyPrint()" to your document's body tag.
at http://google-code-prettify.googlecode.com/svn/trunk/README.html is in a 
<code> element.

You never need to use a lang-* class,  you only need to use the prettyprint 
class.

If it doesn't work for you after following those steps, please reopen this bug 
and tell me what browser you're 
using.  A link to sample code that shows the bug would be great too.

Original comment by mikesamuel@gmail.com on 4 Dec 2009 at 6:04