in reply to Re: Feature Request: Adding Colors to Source Code
in thread Feature Request: Adding Colors to Source Code

If it was done once on the way into the DB (when a poster hits save) rather than everytime it is displayed it probably wouldn't be too much of a hit on the cpu, but that would still leave the problem of determining perl code blocks from other types of fixed pitch data,


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail

Replies are listed 'Best First'.
Re: Re: Re: Feature Request: Adding Colors to Source Code
by rchiav (Deacon) on Mar 06, 2004 at 23:37 UTC
    How difficult would it be to add <code type=perl> or <code type=html> and parse them differently? Or if it's only going to parse Perl then just have a flag to tell it that it is Perl.

    But I think it would have to be a one time parse as it's added to the DB because it would be just too taxing to parse every time code is displayed.