Generic Syntax Highlighter - GeSHi

Dragan Eror's picture

Yesterday I found great Generic Syntax Highlighter class.
Searching more I found 'geshifilter' Drupal module for GeSHi class, after I was implement it into this Drupal site.

With GeSHi you can make your code examples more readable for users!

You can see examples of GeSHi below!

  1. /* === This is CSS example === */
  2. .class_name {
  3.     font-size:12px;
  4.     border:solid 1px #ccc;
  5. }
  1. <!-- This is HTML example -->
  2. <div>neki text</div>
  1. // This is JavaScript example
  2. onclick="alert('Width = ' + offsetWidth + 'px' + '\n' + 'Height = ' + offsetHeight + 'px')"
  1. // This is PHP example
  2. echo 'Hello World!;
  1. # This is MySQL example
  2. SELECT * FROM table_name WHERE table_row=1;

GeSHi you can found at http://qbnz.com/highlighter/
geshifilter drupal module you can found at http://drupal.org/project/geshifilter
GeSHi demo you can found at http://qbnz.com/highlighter/demo.php or http://geshi.org/

[ close ]
Help Upgrade the Web: Download Firefox 3.6