Install GeSHi Filter for Drupal 6

To enable syntax highlighting in Drupal posts, you can use the GeSHi Filter module. This module uses Generic Syntax Highlighter - GeSHi, which is a third-party PHP library that supports more than 100 programming languages.

To install this module, you'll have to:

Once everything has been copied over, you should enable the module. Go to Administer >> Site Building >> Modules.

Now you'll have to add the GeSHi filter to your input filters. Go to Administer >> Site Configuration >> Input Filters.

The final step is to enable the languages you think you're going to use by going to Administer >> Site configuration >> GeSHi Filter >> Languages.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • 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.
  • Image links with 'rel="lightbox"' in the <a> tag will appear in a Lightbox when clicked on.

More information about formatting options

User login

Who's online

There are currently 0 users and 1 guest online.