Monday, January 28, 2008

<pre class="languageName:nocontrols" name="code"> code </pre>
indent paragraph: <div class="indentparagraph"> content goes here </div>

2 comments:

Дневник Литальки said...

Hi Gerald!
Just read you great tips about hbase, thanks for posting them. Just want to ask you how you add code highlighting with line numbers and colors in your blog?

Thanks,
Gennady

Gerald Guo said...

Sorry for replying so late. I am using syntaxhighlighter from http://code.google.com/p/syntaxhighlighter.
Here is the document about how to configure it:
http://code.google.com/p/syntaxhighlighter/wiki/Configuration.
It's pretty simple. Usually you need to upload the lib to a web server you can access.
Enjoy the colorful code.