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 Pygments

Or 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

Version Downloads Date Links
7.x-2.0-rc2 tar.gz (222.41 KB) | zip (237.54 KB) 2013-May-01 Notes

Other releases

Version Downloads Date Links
7.x-1.0-alpha1 tar.gz (17.91 KB) | zip (19.12 KB) 2011-Mar-18 Notes

Project Information


Maintainers for Pygmentizer

  • capynet - 9 commits
    last: 2 weeks ago, first: 3 weeks ago
  • zhangx1a0 - 4 commits
    last: 2 years ago, first: 2 years ago

Issues for Pygmentizer

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Statistics (2 years)
New issues
Open bugs
Participants