Re: Update to Zend Highlighter

From: Date: Thu, 02 Apr 2009 17:37:26 +0000
Subject: Re: Update to Zend Highlighter
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-43606@lists.php.net to get a copy of this message
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

« previous php.internals (#43606) next »