[chora] Adding an extension to mime_drivers for enscript
Ryan Creasey
ryan-horde@p11.com
Wed, 14 Aug 2002 07:58:29 -0700
I just started using the newer cvs Chora (at least I think it's newer, I guess I never noticed how cool it was) that uses enscript to source highlight code other than php. My problem, however, is when I try to add a new extension type, it doesn't correctly render the file.
I simply wanted to add the extension .cc to the extension handler, so in horde/config/mime_drivers.php, I made the following change:
mime_drivers['horde']['enscript']['handles'] = array(
'text/html', 'x-extension/pl', 'x-extension/c',
'text/xml', 'application/x-sh', 'application/x-javascript',
'x-extension/java', 'x-extension/h', 'x-extension/cpp',
'x-extension/vhd', 'x-extension/vhdl', 'x-extension/sql',
'x-extension/vb', 'x-extension/vba', 'x-extension/el',
'x-extension/cc');
However now, it doesn't even source the file at all (whereas if the change out, it does it in plain text, no highlight). I mean, it would appear that I'm adding a new value to that array correctly, but is there any other change that needs be made? Any help would be greatly appreciated. It's probably some silly thing I'm overlooking.
On a side note, I would like to say that I'm *really* sold on this whole Horde thing. Is there any way to be come a contributor and help out with things that need be done?
--
Ryan C. Creasey
Network Engineer
p11creative