On Thu, 2009-04-02 at 17:38 +0100, Lewis Wright wrote: > Why not allow a class prefix as an option to the function? > > Eg: > > 'php-highlighted-' as the prefix would produce things like > 'php-highlighted-keyword'. > > That way there's no risk of collision and there's no need to > over-complicated things.
It's repetitive and redundant. A single class in an encapsulating tag is sufficient to target every rule within the block. That's how CSS is supposed to work. Unfortunately, I'll grant that many people using CSS just make all their class definitions global, or worse, use IDs for nothing but CSS styling. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php