The GeShi Filter is a Backdrop CMS module for syntax highlighting pieces of
source code. It implements a filter that formats and highlights the syntax of
source code between for example ...
.
This module requires the third-party library GeShi 1.0.x (Generic Syntax Highlighter, written by Nigel McNie) which can be found at http://qbnz.com/highlighter See installation procedure below for more information.
This module requires that the following modules are also enabled:
GeSHi Filter
-
Install this module using the official Backdrop CMS instructions at https://docs.backdropcms.org/documentation/extend-with-modules.
-
Visit the configuration page under Administration > Configuration > Content authoring > Text editors and formats or GeSHi Filter and enter the required information.
-
Download the GeSHi library from https://sourceforge.net/projects/geshi/files/geshi/ Make sure you download a version of the branch 1.0.x and not a version from the branch 1.1.x (also described as geshi-dev), which is not yet supported by the GeSHi filter module. Place the entire extracted 'geshi' folder (which contains geshi.php) in a libraries directory (typically /libraries/geshi).
GeSHi Fields
- Install this module using the official Backdrop CMS instructions at https://docs.backdropcms.org/documentation/extend-with-modules.
The basic usage (with the default settings) is:
<code language="java">
for (int i; i<10; ++i) {
dothisdothat(i);
}
</code>
When language tags are enabled (like "<java>" for Java) you can also do
<java>
for (int i; i<10; ++i) {
dothisdothat(i);
}
</java>
More options and tricks can be found in the filter tips of the text format at www.example.com/?q=filter/tips .
Bugs and feature requests should be reported in the Issue Queue.
- Seeking additional maintainers.
-
Ported to Backdrop CMS by Justin Christoffersen
-
Ported to Backdrop CMS by Nate Lampton
-
Port to Backdrop CMS sponsored by Exceljet
-
Originally written for Drupal by Vincent Filby.
-
Port to Drupal 4.7:
- Vincent Filby
- Michael Hutchinson
- Damien Pitard
-
Port to Drupal 5:
- rötzi (http://drupal.org/user/73064)
- Stefaan Lippens (http://drupal.org/user/41478)
This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.