abacaj / google-code-prettify

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

How to use language extensions #332

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am manually loading prettify.js (not using auto-loader) and I added the 
contents of lang-go.js to the bottom of prettify.js. Then I have:

<pre class="prettyprint lang-go linenums"> ...

But the go code is not being highlighted properly. Am I missing something?

Original issue reported on code.google.com by i...@nodesocket.com on 25 Feb 2014 at 1:13

GoogleCodeExporter commented 9 years ago
You don't mention loading any CSS.  You will need to load prettify.css as well 
or a skin.

In the future, please don't use the bug tracker to ask questions.  The email 
list mentioned on the project hone page ( 
https://groups.google.com/forum/#!forum/js-code-prettifier ) is a better forum 
for questions.

Original comment by mikesamuel@gmail.com on 25 Feb 2014 at 3:24

GoogleCodeExporter commented 9 years ago
Yeah, we load the css, just did not mention it.

Original comment by i...@nodesocket.com on 25 Feb 2014 at 3:29