I know this is not supported API and that it's a bit of a dark art...
I format/auto-indent fields that contain liveCodeScript using Mark Waddingham's advice here the code, which works seamlessly and always.
I colourise the script in a field using the code shown by James Hale James Hale's advice here.:
Code: Select all
_internal script colorize char 1 to (the number of chars in field "x") of field "x"
I finally realised that the simple action of opening the message box or the script editor actually fixes that so a clunky work around is to open/close the message box at preOpenStack, and then the colorisation works as expected.
Clearly there is some sort of initialisation that happens when opening the msg box but or script editor which doesn't happen when I just open my stack -- does anyone have any idea what this is and how I can include it in my stack so I don't have to use the clunky workaround of opening/closing msgBox?
Many thanks
Stam