| 1 |
INSTALLATION
|
| 2 |
|
| 3 |
1. Copy the codefilter folder to the Drupal modules/ directory, so that all
|
| 4 |
files are in modules/codefilter.
|
| 5 |
|
| 6 |
2. Go to administer > modules, and enable the codefilter.module
|
| 7 |
|
| 8 |
3. Go to administer > input formats. Click 'configure' for the format you wish
|
| 9 |
to enable codefilter in, and check the codefilter checkbox on the next
|
| 10 |
page.
|
| 11 |
|
| 12 |
4. Go to the input format's ordering page and rearrange the filtering chain to
|
| 13 |
resolve any conflicts. For example, to prevent invalid XHTML in the form of
|
| 14 |
'<p><div class="codefilter">' make sure "Code filter" comes before the
|
| 15 |
"Line break converter."
|
| 16 |
|
| 17 |
5. (optionally) Edit your theme to provide a div.codeblock style for blocks of
|
| 18 |
code.
|