User forums > General (but related to Code::Blocks)

Word wrap and indentation

<< < (2/2)

carra:
I see, in wxScintilla the 2 styles I listed would correspond to setting the parameter as:

SCI_SETWRAPINDENTMODE = SC_WRAPINDENT_FIXED  (Code::Blocks)
SCI_SETWRAPINDENTMODE = SC_WRAPINDENT_SAME  (Notepad++)

There's even a third style I hadn't thought of, to make the wrapped part of the line have extra indent.

MortenMacFly:

--- Quote from: dmoore on October 09, 2012, 09:25:11 pm ---Other people might not like the feature, but I am not sure it is worth cluttering the settings with yet another option. Thoughts?

--- End quote ---
Well I see it exactly the opposite: Nobody complained so far, so the option we have currently seems to be OK for most people. This is the first complaint in that direction - this obviously means changing the default behaviour must become an option, don't you think?

carra:
I don't think many people will agree or complain. Actually I doubt most people use line wrap ever in C::B. I only turned it on today! after months of using C::B. And only because I was editing some non-C++ files.

Freem:
I guess many people use the right margin to avoid very long lines, and so code does not need to be wrapped often, because programmers do it manually (and smarter than any automated algorithm).
At least, I do, because I think it is easier to see function calls with many arguments when they are split on more than one lines with extra tabs.

About that feature, I do not really mind... if you really want to know what users think about that, why not make a poll? Will be easier for you to know user's opinions.

MortenMacFly:

--- Quote from: Freem on October 11, 2012, 10:10:09 am ---if you really want to know what users think about that, why not make a poll?

--- End quote ---
True. Or simply provide a patch. It shouldn't be too hard to implement - you can see how its done with the other scintilla settings for the editors, even though it should be configurable (from my point of view, at least).

I could think of a selection of a combobox for the WRAPINDENTMODE (as dmoore said), in combination with a choice for the SETWRAPSTARTINDENT in case of the WRAPINDENTMODE "SC_WRAPINDENT_FIXED". The latter might even already be present...?!

Navigation

[0] Message Index

[*] Previous page

Go to full version