Skip to content

backdrop-contrib/geshifilter

Repository files navigation

GeSHi Filter

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 ....

Requirements

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:

Installation

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

USAGE

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 .

Issues

Bugs and feature requests should be reported in the Issue Queue.

Current Maintainers

  • Seeking additional maintainers.

Credits

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

About

GeSHi Filter for syntax highlighting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published