This project is not covered by Drupal’s security advisory policy.

The CodeSnippet GeSHi Filter module acts as a bridge between the CKEditor CodeSnippet and the GeSHi Filter for syntax highlighting module.

CKEditor CodeSnippet enables content editors to add source code using a CKEditor popup. It also highlights the source code within the CKEditor using JavaScript.

GeSHi Filter for syntax highlighting uses the GeSHi (Generic Syntax Highlighter) PHP library to generate syntax highlighted output on the server side.

The motivation to creating this module was to ease content editing for non-technical content editors. It provides an input filter that converts the output generated by the CKEditor CodeSnippet plugin to output that works well with the GeSHi filter.

Installation

Dependencies

Installation steps

  1. Install the dependencies following their respective install instructions.
  2. Download and install the codesnippet_geshifilter module as you would with every other module.

Configuration

  • Open the text formats (admin/config/content/formats) that use the CKEditor CodeSnippet and GeSHi filtering.
  • Check the checkbox of 'CodeSnippet To GeSHi Filter' in 'Enabled filters'.
  • Make sure to place the 'CodeSnippet To GeSHi Filter' above the 'GeSHi
    filter' within the 'Filter processing order' section by dragging it to the
    appropriate position.

Maintenance notes

This project has been developed for one of our client projects and works within the scope of our setup. As client project contexts do not necessarily reflect all possible Drupal setups, we created a development release only.

Please help us testing the module within your setup(s) and feel free to suggest new features/improvements.

After we find it working with all your environments, we're happy to releasing a stable version.

Supporting organizations: 
Initial development of the module and supporting maintenance.

Project information

Releases