Skip to content
⌘ NSIS Forum Archive

$\n Code

11 posts

petersa#

$\n Code

There's talk in the documentation about using $\n to place a newline.

I have tried $n, \n and $\n for ComponentText but they simply show up. Any help would be appreciated.
petersa#
That's a pity...

...might there be a feature in the future to add newlines to static text on the installer form?
petersa#
I was thinking something like this:

ComponentText "You are about to install Program.$\n$\nPlease select your components:"

where $\n would be converted to newline.
yazno#
hi,

i just tested it with

ComponentText test #13 test

it seems as there is only one line allowed

cu yzo
yazno#
hi,

LOL .. dunno, i don't have anything to do with the nsis developement.

i am just a user 🙂

cu yzo
saivert#
Carriage return and newline characters

I think Nullsoft must make it so that the $\r and $\n can be used everywhere to define \r and \n (newline/linefeed and carriage return). Yeah, thats right! CR LF forever...
petersa#
Well, I just tried $\r$\n, \r\n, and $r$n. None of them worked for the wizard dialog...so I guess it's just not meant to be...

Thanks anyway, saivert!

I really hope this is added sometime.