Posted by zhangx1a0 on March 18, 2011 at 1:52pm
This module provides an input filter which does source code syntax highlighting by using Pygments.
With this module you will have 20 color styles and 55 languages / metalanguages!
Prerequisite
You need a working Pygments on your host.
Try
sudo apt-get install python-setuptools
easy_install PygmentsOr see how to install Pygments.
Installation
- Enable this module.
- Download PHPygments and put it in sites/all/libraries. Ensure directory name keeps named "PHPygments"
- Go to admin/config/content/formats page, configure the text format in which you want to enable Pygmentizer and select the filter.
- At bottom of configuration page switch to settings tab of Pygmentizer.
Usage
Just Put your code inside [LANGUAGE] [/LANGUAGE] token!
eg:
[javascript]
/**
* Drag and drop table rows with field manipulation.
*/
Drupal.behaviors.tableDrag = {
attach: function (context, settings) {
//......
}
};
[/javascript]See README.txt for more information.
Downloads
Recommended releases
Other releases
Project Information
- Maintenance status: Actively maintained
- Development status: Under active development
- Reported installs: 3 sites currently report using this module. View usage statistics.
- Downloads: 166
- Last modified: May 1, 2013



