[PATCH] hgweb: wrap long lines in file source
laurens.nospam at grauw.nl
Wed Jun 26 15:02:49 CDT 2013
Op 26-06-13 19:21, Jordi Gutiérrez Hermoso schreef:
> On 26 June 2013 13:07, Laurens Holst <laurens.nospam at grauw.nl> wrote:
>> Scrollbar at the bottom is a little inconvenient, sure, but you can also
>> scroll horizontally with many mouse wheels, or by middle-clicking and moving
>> the cursor to the right, or by moving two fingers to the right on a touch
>> pad, or by selecting text and dragging to your right. The scrollbars are
>> hardly ever being used any more nowadays.
> Do most users know this? If so, do we have evidence that most users
> prefer this? If not, are you planning to educate them?
I do not think any “special education” is needed to explain people how
to scroll horizontally...
> Otherwise, do
> we have any evidence that users prefer one thing or the other?
No, but I tried to present arguments. Do you have evidence?
>> I am not in favour of wrapping the source code, because that can visually
>> disturb the indentation.
> It's possible to wrap and maintain indentation; e.g. Kate does this,
> as does this Emacs package:
> I'm not sure how feasible this is for a web interface.
Not very, I think.
Also, line breaks still have significance in some languages, this
wouldn’t solve that.
>> Emacs and vim aside, editors normally don’t wrap lines
> Kate does it, gedit does it, textmate too, but apparently only
> whatever editor you use doesn't.
Pretty much every one of them? Eclipse, IntelliJ, Visual Studio,
MonoDevelop, Netbeans, XCode, you name it... Even my old colleague who
used to use Vim for sure didn’t have it set to line wrap.
I mean it makes sense for plain text documents, and I guess the editors
you named are intended as generic text editors, but not for source code.
If you’d be editing source code in them you’d be turning off the wrap
option in a jiffy.
Also, fwiw, Github doesn’t wrap either, nor does Stack Overflow, nor
does the Android documentation. Nor will anything else on the web that
shows source code. I dare you to find a place ;P.
More information about the Mercurial-devel