Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43606 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58007 invoked from network); 2 Apr 2009 17:37:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Apr 2009 17:37:23 -0000 Authentication-Results: pb1.pair.com header.from=robert@interjinn.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=robert@interjinn.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain interjinn.com from 66.11.173.122 cause and error) X-PHP-List-Original-Sender: robert@interjinn.com X-Host-Fingerprint: 66.11.173.122 unknown Received: from [66.11.173.122] ([66.11.173.122:57315] helo=interjinn.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/71-44124-2D7F4D94 for ; Thu, 02 Apr 2009 12:37:22 -0500 Received: from [192.168.1.3] (blobule.suds [192.168.1.3]) by interjinn.com (Postfix) with ESMTP id A6F3111FB6F; Thu, 2 Apr 2009 13:36:58 -0400 (EDT) To: Lewis Wright Cc: Chris Stockton , Kalle Sommer Nielsen , Scott MacVicar , David Coallier , Justin Martin , internals@lists.php.net In-Reply-To: References: <6F.F0.47115.84534D94@pb1.pair.com> <2dedb8a0904020508r6306c189peda001421d4e830f@mail.gmail.com> <2dedb8a0904020515k6bd68cdarea0ebd9bb3a8f6c9@mail.gmail.com> <49D4CE5F.3070805@php.net> <2dedb8a0904020745gf2d9e19wd0f1167dae53ac2d@mail.gmail.com> <1238684543.8765.141.camel@localhost> <1238689943.8765.157.camel@localhost> Content-Type: text/plain Organization: InterJinn Date: Thu, 02 Apr 2009 13:37:26 -0400 Message-ID: <1238693846.8765.162.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Update to Zend Highlighter From: robert@interjinn.com (Robert Cummings) 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