You are here

README.txt in GeSHi Filter for syntax highlighting 7

Same filename and directory in other branches
  1. 8.2 README.txt
  2. 8 README.txt
  3. 5.2 README.txt
  4. 5 README.txt
  5. 6 README.txt
============================
GeSHi Filter (Drupal Module)
============================


DESCRIPTION
-----------
The GeShi Filter is a Drupal module for syntax highlighting of pieces of
source code. It implements a filter that formats and highlights the syntax of
source code between for example <code>...</code>.


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


INSTALLATION
------------
1. Extract the GeSHi Filter module tarball and place the entire geshifilter
  directory into your Drupal setup (e.g. in sites/all/modules).

2. Download the GeSHi library from
  http://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 (e.g. as sites/all/libraries/geshi).

3. Enable this module as any other Drupal module by navigating to
  administer > site building > modules


CONFIGURATION
-------------
1. The general GeSHi Filter settings can be found by navigating to:
  administer > site configuration > geshifilter.
  Set the path to the GeSHi library on that page, if it is not detected
  automatically already.
2. Further configuration instructions can be found by following the
  "more help..." link at the top of that general settings page, which leads
  to www.example.com/?q=admin/help/geshifilter . This requires you have the
  'help' module enabled.


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 .


AUTHORS
-------
Original module by:
  Vincent Filby <vfilby at gmail dot com>

Drupal.org hosted version for Drupal 4.7:
  Vincent Filby <vfilby at gmail dot com>
  Michael Hutchinson (http://compsoc.dur.ac.uk/~mjh/contact)
  Damien Pitard <dpdev00 at gmail dot com>

Port to Drupal 5:
  rötzi (http://drupal.org/user/73064)
  Stefaan Lippens (http://drupal.org/user/41478)

File

README.txt
View source
  1. ============================
  2. GeSHi Filter (Drupal Module)
  3. ============================
  4. DESCRIPTION
  5. -----------
  6. The GeShi Filter is a Drupal module for syntax highlighting of pieces of
  7. source code. It implements a filter that formats and highlights the syntax of
  8. source code between for example ....
  9. DEPENDENCY
  10. ----------
  11. This module requires the third-party library GeShi 1.0.x (Generic Syntax
  12. Highlighter, written by Nigel McNie) which can be found at
  13. http://qbnz.com/highlighter
  14. See installation procedure below for more information.
  15. INSTALLATION
  16. ------------
  17. 1. Extract the GeSHi Filter module tarball and place the entire geshifilter
  18. directory into your Drupal setup (e.g. in sites/all/modules).
  19. 2. Download the GeSHi library from
  20. http://sourceforge.net/projects/geshi/files/geshi
  21. Make sure you download a version of the branch 1.0.x and not a version
  22. from the branch 1.1.x (also described as geshi-dev), which is not yet
  23. supported by the GeSHi filter module.
  24. Place the entire extracted 'geshi' folder (which contains geshi.php)
  25. in a libraries directory (e.g. as sites/all/libraries/geshi).
  26. 3. Enable this module as any other Drupal module by navigating to
  27. administer > site building > modules
  28. CONFIGURATION
  29. -------------
  30. 1. The general GeSHi Filter settings can be found by navigating to:
  31. administer > site configuration > geshifilter.
  32. Set the path to the GeSHi library on that page, if it is not detected
  33. automatically already.
  34. 2. Further configuration instructions can be found by following the
  35. "more help..." link at the top of that general settings page, which leads
  36. to www.example.com/?q=admin/help/geshifilter . This requires you have the
  37. 'help' module enabled.
  38. USAGE
  39. -----
  40. The basic usage (with the default settings) is:
  41. for (int i; i<10; ++i) {
  42. dothisdothat(i);
  43. }
  44. When language tags are enabled (like "" for Java) you can also do
  45. for (int i; i<10; ++i) {
  46. dothisdothat(i);
  47. }
  48. More options and tricks can be found in the filter tips of the text format at
  49. www.example.com/?q=filter/tips .
  50. AUTHORS
  51. -------
  52. Original module by:
  53. Vincent Filby
  54. Drupal.org hosted version for Drupal 4.7:
  55. Vincent Filby
  56. Michael Hutchinson (http://compsoc.dur.ac.uk/~mjh/contact)
  57. Damien Pitard
  58. Port to Drupal 5:
  59. rötzi (http://drupal.org/user/73064)
  60. Stefaan Lippens (http://drupal.org/user/41478)