Drupal: How to Highlight Code
This is a short tutorial giving you an idea of how you can highlight a code in site nodes.
Solutions:
- Code Filter Module
Download and enable this module: http://drupal.org/project/codefilter
The module highlights PHP-code only
- Модуль GeSHi Filter for syntax highlighting
Download and enable this module: http://drupal.org/project/geshifilter
Highlights a lot of languages/formats.
You should download GeSHi library (about 500кб) to work with the module.
Summary
Use GeSHi Filter for syntax highlighting if many languages/formats are used; otherwise it’s better to use simple Code Filter.