1
This hack is a syntax highlighting support hack for XOOPS 2.x for various programming languages. Syntax highlighting modules included in package are for: С++, CSS (Cascading Style Sheets), Delphi (very simplified), DTD, Java (very simplified), JavaScript, MySQL, Perl, PHP, Python, Ruby, SQL, и XML.
Hack is based on Text_Highlighter PEAR module (by Andrey Demenev (lead)). As this module is under development now and in beta state, I included it's modified version in archive, that desn't require installation into the PEAR repository and requires only PEAR.php to work (PEAR core should be installed, of course). All syntax highlighting sucomponents are taken from there, except for Delphi and Java, which are built by myself in a hurry :).
Hack is applied using module.textsanitizer.php modifying, so it will work not only in native XOOPS modules, but also in others like SmartFAQ, for example (I tested).
An example of syntax highlighting of Java language in SmartFAQ module can be seen here::
http://www.vrsi.ru/modules/smartfaq/faq.php?faqid=2http://www.vrsi.ru/modules/smartfaq/faq.php?faqid=4 Hack is very customizable and new highlighting modules and tags are easily integratable. Of course, highlighting colors are fully customizable. Very small and simplified version included in this archive.
Hack can be downloaded at this link:
http://www.vrsi.ru/modules/mydownloads/visit.php?cid=12&lid=9All comments are highly aprreciated.