[dev] ESQL syntax in horde/chora

Z naskovz at yahoo.com
Wed Aug 13 07:19:08 PDT 2003


A "maybe" addition to the code?

o highlight ESQL/C files in chora

1. Add
    'x-extension/ec'
to the
    $mime_drivers['horde']['enscript']['handles']
array in
    horde/config/mime_drivers.php

2. Add
    x-extension/ec'           => 'source-c.gif'
to the
    $mime_drivers['horde']['enscript']['icons']
array in
    horde/config/mime_drivers.php

3. Add
    case 'ec':
right under
    case 'h':
and above
        return 'c';
in the
    extensionToLang
function in
    /var/www/html/horde/lib/MIME/Viewer/enscript.php

That did it for me

Z





More information about the dev mailing list