[rfc-i] Line numbers

julian.reschke at gmx.de (Julian Reschke) Fri, 05 February 2016 17:53 UTC

From: julian.reschke at gmx.de (Julian Reschke)
Date: Fri, 5 Feb 2016 18:53:24 +0100
Subject: [rfc-i] Line numbers
In-Reply-To: <81A5FD6D-8F26-42B6-B16A-72AD73B4057A@cisco.com>
References: <81A5FD6D-8F26-42B6-B16A-72AD73B4057A@cisco.com>
Message-ID: <56B4E194.5030005@gmx.de>

On 2016-02-05 18:44, Joe Hildebrand (jhildebr) wrote:
> (New thread)
>
> On 2/4/16, 6:53 PM, "rfc-interest on behalf of Martin J. D?rst" <rfc-interest-bounces at rfc-editor.org on behalf of duerst at it.aoyama.ac.jp> wrote:
>
>
>
>> BTW, do we have the possibility to add line numbers to source code
>> blocks? That can often be very handy.
>
> I think I'd like that too.  I'm willing to prototype it to see what it looks like.

+1 (optional of course...)

> Does each line need a pilcrow so it can be referenced easily?  That would seem busy.

Making the line number a bookmarkable anchor should be sufficient.

> What about xref's to a single line?

Yes.

I've tried this a few times, and the hard part is to come up with HTML 
that is still friendly to select and copy from...

Best regards, Julian