GeSHi code snippets
This can only be used with Wysiwyg - TinyMCE editor. All other editors will certainly fail.
It is too specific / untested even think about using in a production site.
This is used to store code fragments with nodes. These are edited / created from the Wysiwyg editor, similar to the well known IMCE or Image assist Wysiwyg plugins. The code fragments are stored in the content using tags.
Installation
1) Enable the Code Snippet module
2) Enable the filter to use code snippets
3) Configure TinyMCE to have the Code snippet button added
The <> button should appear on the TinyMce editor.
Tag format
[snippet|type=drupal6|csid=13|tagstyle=block|lineNumbering=2|numberStart=301]
- csid: The only required attribute (but untested if others are absent). The database ID
- type : Only here for image styling inside TinyMCE, the filter uses the value stored in the database
- tagstyle: Helps controls the formatting and this data is saved in the tag, see the GeSHi Filter docs for more details.
- lineNumbering: See the GeSHi Filter docs.
- numberStart : See the GeSHi Filter docs.
Status
This is a first version alpha release, there are multiple bugs. However it is functional on my setup, so I'm pushing it into the community as it is a good solution to the filter / editor conflicts.
I do not see myself using any other editors, so if anyone wants to implement a editor, please submit a patch or ask for CVS access.
