You are here

README.txt in Code Filter 8

Same filename and directory in other branches
  1. 5 README.txt
  2. 6 README.txt
  3. 7 README.txt
ABOUT
-----

This is a simple filter module. It handles <code></code> and <?php ?> tags so
that users can post code without having to worry about escaping with &lt; and
&gt;


INSTALLATION
------------

1. Copy the codefilter folder to your website's sites/all/modules directory.

2. Enable the codefilter.module on the Modules page.

3. Go to Configuration > Text formats. For each format you wish to add Code
   Filter to:

  a. Click the "configure" link.

  b. Under "Enabled filters", check the codefilter checkbox.

  c. Under "Filter processing order", rearrange the filtering chain to resolve
     any conflicts. For example, to prevent invalid XHTML in the form of
     '<p><div class="codefilter">' make sure "Code filter" comes before the
     "Convert line breaks into HTML" filter.

  d. Click the "Save configuration" button.

4. (optionally) Edit your theme to provide a div.codeblock style for blocks of
   code.


CREDITS
-------

This mini-module was originally made by Steven Wittens <unconed@drupal.org>,
based on the PHP filter in Kjartan Mannes's <kjartan@drupal.org> project.module.

File

README.txt
View source
  1. ABOUT
  2. -----
  3. This is a simple filter module. It handles and tags so
  4. that users can post code without having to worry about escaping with < and
  5. >
  6. INSTALLATION
  7. ------------
  8. 1. Copy the codefilter folder to your website's sites/all/modules directory.
  9. 2. Enable the codefilter.module on the Modules page.
  10. 3. Go to Configuration > Text formats. For each format you wish to add Code
  11. Filter to:
  12. a. Click the "configure" link.
  13. b. Under "Enabled filters", check the codefilter checkbox.
  14. c. Under "Filter processing order", rearrange the filtering chain to resolve
  15. any conflicts. For example, to prevent invalid XHTML in the form of
  16. '

    ' make sure "Code filter" comes before the
  17. "Convert line breaks into HTML" filter.
  18. d. Click the "Save configuration" button.
  19. 4. (optionally) Edit your theme to provide a div.codeblock style for blocks of
  20. code.
  21. CREDITS
  22. -------
  23. This mini-module was originally made by Steven Wittens ,
  24. based on the PHP filter in Kjartan Mannes's project.module.