Syntax Highlighting with GeShi

If you guys wants to do syntax highlighting, just put

  1. <blockcode type="LANG"> ... <\blockcode>

without enter new line feed. And substitute LANG with supported language as listed below:-

  • bash
  • html4strict
  • javascript
  • ruby
  • sql
  • xml

For example

  1. <blockcode type="ruby">def Test
  2. puts "Hello Ruby!"
  3. end<\blockcode>

Result will be

  1. def Test
  2. puts "Hello Ruby!"
  3. end