Page 2 of 3

Posted: Thu Jan 03, 2008 5:50 pm
by DoubleDutch
Berikco: Seeing as your an Admin/Part of the PureBasic team, maybe you could speak to Freak/Fred about putting something like this actually in the editor for real. I don't think it could be too hard seeing the amount of code it takes?

Posted: Thu Jan 03, 2008 6:11 pm
by freak
I can add the option, its no problem.

Posted: Thu Jan 03, 2008 6:21 pm
by DoubleDutch
8) Thanks. It would be great if the colour and indent amount could be user definable.

Posted: Thu Jan 03, 2008 7:49 pm
by maw
It would be perfect if the ident amount could be set to the same as the indent of the original line.

Posted: Thu Jan 03, 2008 7:54 pm
by DoubleDutch
That's not available as an option in Scintilla. I prefer slighly indented more - thus the +16 indent.

If you join the official scintilla mailing list, you could suggest that as an option?

Posted: Fri Jan 04, 2008 1:21 am
by PB
> SendMessage_(scintilla,#SCI_SETWHITESPACEFORE,#True,RGB($70,$50,$d0)) ; <- colour of marker

Excellent! I've set mine to #Red and now I can see it on my black IDE background.

> I can add the option

If you do, then please make sure you give all 3 options:

(1) Wrap enabled/disabled.
(2) Indent size, with 0 if the user wants.
(3) Color of visual arrows (the #Red I just mentioned above).

Even though it's not true line continuation, it makes a great way to quickly
toggle long lines to see the parts not currently visible, without having to use
the scrollbar or reach for the mouse. Anything time-saving like that is great!

Posted: Fri Jan 04, 2008 1:47 am
by Dare
Nice going guys!

Now if you can hack in and force real split lines .... :)

Posted: Fri Jan 04, 2008 3:21 am
by DoubleDutch
Thanks. :)
Now if you can hack in and force real split lines
I think that the only real neat solution for that one will have to come from Fred himself and be built into the compiler.
(2) Indent size, with 0 if the user wants.
I think that if the indicator is at the start then this may have to be 1 (this may be automatic?):
Scintilla Docs! wrote:The indention of sublines is independent of visual flags, but if SC_WRAPVISUALFLAG_START is set an indent of at least 1 is used.

Posted: Fri Jan 04, 2008 5:39 am
by PB
> if the indicator is at the start then this may have to be 1

Yes, but what I mean is to not force the user to have an indent of X or something.

Posted: Fri Jan 04, 2008 5:59 am
by DoubleDutch
ic :)

Posted: Mon Oct 06, 2008 6:33 pm
by DoubleDutch
Freak: Do you think you will be able to put this in 4.30 (final) as an option?

Posted: Mon Oct 06, 2008 9:06 pm
by PB
Having the editor wrap is nice, but it doesn't solve the problem of posting
code here, where the long lines will still be long. A line continuation char
would still be the best solution (like space-underscore as in Visual Basic).

Posted: Wed Oct 15, 2008 10:14 am
by Kwai chang caine
Giant !!!
Thanks a lot 8)

Re: Automatic splitting code across lines...

Posted: Thu Jul 15, 2010 8:19 pm
by Kurzer
This hack does not work with PB Version 4.50 :(
Is any new solution out there?

Re: Automatic splitting code across lines...

Posted: Mon Jul 26, 2010 7:50 am
by Amundo
This works in 4.51RC1.

I tried to set the indenting to follow on from the previous line, but failed :-(, using the following:

Code: Select all

  SendMessage_(scintilla,#SCI_SETWRAPINDENTMODE, 2, 0)  ; <-- indent mode
The "2" comes from:
SC_WRAPINDENT_INDENT 2 Wrapped sublines are aligned to first subline indent plus one more level of indentation