Enscript should be able to work out which kind of file it is doing syntax highlighting for, without specifying the language after the '-E' flag. 'enscript -Ephp file.php' produces highlighted output, 'enscript -E file.php' does not. Reproducible: Always Steps to Reproduce: 1.enscript -E any_file.php 2. 3. Actual Results: No syntax highlighting Expected Results: Syntax highlighting The following patch will update the enscript.st file to fix. Would be great if this could be included in the ebuild: --- /usr/share/enscript/hl/enscript.st 2008-10-25 17:11:07.000000000 +0100 +++ /usr/share/enscript/hl/enscript.st 2008-10-25 17:11:37.000000000 +0100 @@ -512,6 +512,7 @@ /\.(ebuild|eclass)$/ ebuild; /\.wmlscript$/ wmlscript; /\.wmls$/ wmlscript; + /\.php$/ php; /^.*$/ passthrough; }
Patch added in 1.6.5.2-r1. Thanks!