Word wrapping, LF, CR etc... Topic is solved

The popular SciTE-based AutoHotkey Script Editor
User avatar
Furatus
Posts: 2
Joined: 25 Feb 2020, 15:06

Word wrapping, LF, CR etc...

Post by Furatus » 09 Apr 2020, 14:39

Hi!
Beginner here.
I wrote my first couple scripts in SCITE and I can not figure out, how can I 'beautify' my code. I have a few long message boxes, which are taking the whole editing window. I can not find the way to have it in the code. I manage it in the Message Box with `n and `t but I would like to have it available in the code window more in the WYSWIG form. This would be much more readable for me.
Is there anything I'm missing here?
Thanks!
Last edited by Furatus on 09 Apr 2020, 18:43, edited 1 time in total.
gregster
Posts: 5837
Joined: 30 Sep 2013, 06:48

Re: Word wrapping, LF, CR etc...  Topic is solved

Post by gregster » 09 Apr 2020, 15:02

Welcome to the forums!

Perhaps method #2 of continuation sections ?
This is independent from using Scite, though...

Code: Select all

var = 
(
Lorem ipsum dolor sit amet, consectetur adipisici elit, 
sed eiusmod tempor incidunt ut labore et dolore magna aliqua. 
Ut enim ad minim veniam, quis nostrud exercitation ullamco 
laboris nisi ut aliquid ex ea commodi consequat. Quis aute 
iure reprehenderit in voluptate velit esse cillum dolore eu 
fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non 
proident, sunt in culpa qui officia deserunt mollit anim id 
est laborum.
)
msgbox % var
or

Code: Select all

msgbox, 		; The comma is required in this case.
(
Lorem ipsum dolor sit amet, consectetur adipisici elit, 
sed eiusmod tempor incidunt ut labore et dolore magna aliqua. 
Ut enim ad minim veniam, quis nostrud exercitation ullamco 
laboris nisi ut aliquid ex ea commodi consequat. Quis aute 
iure reprehenderit in voluptate velit esse cillum dolore eu 
fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non 
proident, sunt in culpa qui officia deserunt mollit anim id 
est laborum.
)
User avatar
Furatus
Posts: 2
Joined: 25 Feb 2020, 15:06

Re: Word wrapping, LF, CR etc...

Post by Furatus » 09 Apr 2020, 21:33

@gregster - thanks a lot. Your point to continuation sections is especially valuable.
Post Reply

Return to “SciTE4AutoHotkey”