Break long lines in Pascal code for readability?

28 views
Skip to first unread message

Edward Mendelson

unread,
Sep 22, 2025, 9:12:25 AM (5 days ago) Sep 22
to innosetup
Is there a way to break long lines of Pascal code to improve readability? I am NOT asking about line breaks in messages - only whether it's possible to break a long line so that it's easier to read in an editor.

Many thanks for any help.

Martijn Laan

unread,
Sep 22, 2025, 9:26:46 AM (5 days ago) Sep 22
to innosetup
Hi,

You can either enable word wrapping from the View menu, or append a space followed by a backslash at the end of a line to allow line spanning. Also see https://jrsoftware.org/ishelp/index.php?topic=linespan

Greetings,
Martijn Laan

Op 22-9-2025 om 15:12 schreef Edward Mendelson:
Is there a way to break long lines of Pascal code to improve readability? I am NOT asking about line breaks in messages - only whether it's possible to break a long line so that it's easier to read in an editor.

Many thanks for any help.
--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/d5b08ecb-a7bc-42be-a9f6-dcd3d41a1a22n%40googlegroups.com.

Edward Mendelson

unread,
Sep 22, 2025, 9:36:02 AM (5 days ago) Sep 22
to innosetup
Thank you! (That was fast...!)

Gavin Lambert

unread,
Sep 22, 2025, 8:06:25 PM (5 days ago) Sep 22
to innosetup
On Tuesday, September 23, 2025 at 1:12:25 AM UTC+12 Edward Mendelson wrote:
Is there a way to break long lines of Pascal code to improve readability? I am NOT asking about line breaks in messages - only whether it's possible to break a long line so that it's easier to read in an editor.

Pascal code is not line-break sensitive; you can just break a line wherever you like without any need for line-spanning symbols.  The only exception is if you're in the middle of a string, in which case you'll need to put in a closing quote on one line and an opening quote on the next, with a + between.

You will need to use the line-spanning character if you want to have (suppressed) line breaks in script entries outside of [Code], however. 
Reply all
Reply to author
Forward
0 new messages