Hiya
How do I force a new line (retain the carriage return) in script?
Not in string printing; just visually in the code.
E.g. - instead of this:
<ogscript handles="onload" id="" name="onload">ogscript.rename("MacroM1", params.getValueAsString('Macro_NameM1', 0));
ogscript.setStyle("MacroM1", params.getValue('Colour_M1', 0));
var choices1 = new Array();
Look instead like this:
<ogscript handles="onload" id="" name="onload">
ogscript.rename("MacroM1", params.getValueAsString('Macro_NameM1', 0));
ogscript.setStyle("MacroM1", params.getValue('Colour_M1', 0));
var choices1 = new Array();
Is there some formatting trick I can use just for aesthetics here? The editor automatically removes the carriage return on Apply Changes.
Thanks!
Paul