Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26686 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37441 invoked by uid 1010); 20 Nov 2006 22:22:00 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 37426 invoked from network); 20 Nov 2006 22:22:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Nov 2006 22:22:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 82.135.5.144 cause and error) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 82.135.5.144 ppp-82-135-5-144.dynamic.mnet-online.de Linux 2.6 Received: from [82.135.5.144] ([82.135.5.144:33018] helo=johannes.nop) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 73/6F-33211-28A22654 for ; Mon, 20 Nov 2006 17:21:58 -0500 Received: from johannes.nop (localhost [127.0.0.1]) by johannes.nop (8.13.8/8.13.8) with ESMTP id kAKMLoc2021153; Mon, 20 Nov 2006 23:21:51 +0100 Received: (from johannes@localhost) by johannes.nop (8.13.8/8.13.8/Submit) id kAKMLo4S021152; Mon, 20 Nov 2006 23:21:50 +0100 X-Authentication-Warning: johannes.nop: johannes set sender to johannes@php.net using -f To: Sean Coates Cc: Kevin Waterson , internals@lists.php.net In-Reply-To: <45620010.4010504@caedmon.net> References: <20061121055451.02cc12d5.kevin@oceania.net> <45620010.4010504@caedmon.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 20 Nov 2006 23:21:49 +0100 Message-ID: <1164061309.2947.899.camel@johannes.nop> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1.1 (2.8.1.1-3.fc6) Subject: Re: [PHP-DEV] phps line numbering From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi, the approached I used in my initial implementation works with most browsers fine (IE 6, IE 7, Konqueror) There's just one rarely used Browser, called Firefox (and it's friends), where it won't work. Firefox <=3D1.5 adds an # in front of every line when pasting the list's contents somewhere, Firefox 2 adds the number. In my opinion this isn't a big problem since in the implementation it adds only an[^1] optional parameter to the highlight_[strig|file] functions and is not changing the phps output (which would need an addition ini setting or maybe one might use the GET parameters to turn it on...) So it should "harm" only the ones requesting it. When first proposing it I was told that someone who knows the parser should have a look at it to avoid problems there, even though the patch shouldn't have any impact as far as I can see but nobody had the time to look into it. If there's an serious consideration I can check my disk apply it to the current CVS and post that patch again. [^1] If I remember correct the last version of the patch I proposed didn't add just one additional parameter but three of them. The first to enable the line numbering, the second to enable jumpmarks using > Back in March we were discussing the adoption of a patch for 5.2/6 for > > line numbering in phps. > >=20 > > When last discussed, most folks thought the idea was good and it did no= t > > impact on anything else dramatically. >=20 > We determined that there's no reliable way to number lines and maintain > copy-and-paste. >=20 > S >=20 --=20 Johannes Schl=C3=BCter | http://schlueters.de