Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43596 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14078 invoked from network); 2 Apr 2009 14:43:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Apr 2009 14:43:42 -0000 Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.159 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 72.14.220.159 fg-out-1718.google.com Received: from [72.14.220.159] ([72.14.220.159:39773] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/D0-22853-B1FC4D94 for ; Thu, 02 Apr 2009 09:43:41 -0500 Received: by fg-out-1718.google.com with SMTP id l26so330291fgb.0 for ; Thu, 02 Apr 2009 07:43:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=hjWB/Aq4jkW4V0H8e8LrpTGljX+6dTXlpFIOLAl5cPQ=; b=U3Y02Zk2q6Rv3+HF1/Bb06FCgcildcK4ccJLuCSFiBch/nd6GgyGhC2RfxYrI2Jev9 RQVAjU7r+8koaNV2qL4ip7/rgfbZ4A9/2cl/HAomKD9052UmZzIpEGLk5QkCwkJQCCE0 XEj87HKdXdYoBeg6iuD0y6Ezkm8anfp71+A/Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=wyz2/681Q3RkS8ZVMwrLT1ARNGVij3m9w3cCuvKNZpwQ/sEFdaIJ/wFj/nXDImZY5z 8kqxZvBlsl4OASjpcQrToNJvj+fYNSORoPZxQF6DlYy8KnCYNr12e6sS1cpY/gvW0Qcj kqPmStgwah+MrdBfGTk3LPJwXi5YYnspCNBvQ= MIME-Version: 1.0 Sender: kalle.php@gmail.com Received: by 10.86.89.20 with SMTP id m20mr156064fgb.71.1238683416296; Thu, 02 Apr 2009 07:43:36 -0700 (PDT) In-Reply-To: References: <6F.F0.47115.84534D94@pb1.pair.com> <2dedb8a0904020508r6306c189peda001421d4e830f@mail.gmail.com> <2dedb8a0904020515k6bd68cdarea0ebd9bb3a8f6c9@mail.gmail.com> Date: Thu, 2 Apr 2009 16:43:36 +0200 X-Google-Sender-Auth: 8583a2f6f0c7e1f4 Message-ID: <2dedb8a0904020743s271d6603j1b86d011e0a33c0e@mail.gmail.com> To: David Coallier Cc: Justin Martin , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Update to Zend Highlighter From: kalle@php.net (Kalle Sommer Nielsen) Hi David 2009/4/2 David Coallier : > 2009/4/2 Kalle Sommer Nielsen : >> 2009/4/2 Kalle Sommer Nielsen : >>> Hi Justin >>> >> >> Attached a patch instead, hopefully this will work ;) >> >> > > > I really do like this idea :) Let's just commit it. > > I would however like ot see the "naming" stucture Justin used in the > first example by prefixing the CSS classnames by "php". This will > greatly help the inclusion into other considering that "comment" and > "default" are widely used (not sure about the other ones) for general > purposes usage (see google codesearch for example). We can just change the default values in zend_highlight.h to be prefixed php-xxx aswell as in the ini. > > Cool work, do we go by adding 6 new ini settings and making sure they > are prefixed by default? > > Also I guess we'll have to attach a css file with that? Inline css at > the top of the generated highlighted block maybe? If a user wants to use css classes for highlight, then he will have his own styling. I don't think we should attempt to "fix" it on php level if this feature is enabled by adding a