.h and .c syntax highlighting and diplaying icons according to file extension.
Wang Qi
wangqi_wangqi@yahoo.com
Sat, 9 Feb 2002 01:54:59 -0800 (PST)
Hi, all and Jan,
Question 1
I am also having the same problem to bring up the
syntax highliging when viewing the .h and .c (or
all other type of files).
I have tried to uncomment the portion to enable
the enscript in horde/config/mime_drivers.php.
But it does not work.
I am running a Redhat 7.2 and I used ViewCVS 0.7
for a while before I switch to CHORA =).
I was able to see the syntax highlighting in
ViewCVS 0.7.
Question 2
If I want to display different icon based on the
file type (c file in this case) in the directory list view, should I
add the following in /horde/chora/config/mime_drivers.php
/**
* Default driver settings
*/
$mime_drivers['chora']['default']['icons'] = array(
'default' => 'text.gif',
'x-extension/c' => 'source-c.gif');
But it does not work. Everything list is just the "text file"
icons.
Please help!
Have a nice day.
Wang Qi
__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com