Solving code selection problem in hgweb

Jordi Gutiérrez Hermoso jordigh at octave.org
Wed May 29 11:22:32 CDT 2013


On 29 May 2013 12:20, Александр Плавин <me at aplavin.ru> wrote:
> Another way of solving it can be having two columns - one just with line
> numbers, and another with actual lines. However, this approach has more
> problems, I suppose: inability to "stream" the page line by line (and on
> slow connections), and possible cross-browser issues with the columns having
> different height when the font size differs. So, the first variant seems
> preferable to me :)

The problem is surprisingly hard if you also try to get some sane
default for long lines. I believe I have already showed you this:

    http://dellsystem.me/posts/line-numbering/

- Jordi G. H.


More information about the Mercurial-devel mailing list