Perfectionist: Can you indent multi-line variables without including spaces?
Posted: 07 Oct 2022, 08:07
how can I write multi-line variables (I find them ultra convenient) but its obviously taking in spaces to the variable. Understandably.
I would like the long way around to prettyvariable() below, I want to be able to format properly but delete the space before each line in the variable.
Im thinking of a loop-trim? Id like to get the subs input.
​
I would like the long way around to prettyvariable() below, I want to be able to format properly but delete the space before each line in the variable.
Im thinking of a loop-trim? Id like to get the subs input.
​
Code: Select all
Class var
{
prettyvariable() {
necessary=
(
unrelatedcode:="here"
;notes here, unrelated
)
}
uglyvariable() {
necessary=
(
unrelatedcode:="here"
;notes here, unrelated
)
}
}