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/

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.