The Edit Script dialog is used to edit the contents of a script file. You can use any application to edit your scripts if you prefer, but this dialog provides a convenient way of making small changes to a script file from inside Pulsonix.
How to use the Edit Script dialog
When you start editing a script within Pulsonix, you are presented with the script ‘text’ in the Edit Script dialog:
The main area of the dialog is used for editing the script ‘code’ itself, with buttons down the side to carry out actions.
Within the code area of the dialog, as well as normal typing the following keystroke commands are available:
Actions
Test - runs the script without having to save it and close this dialog first.
Reload - reloads the script from its original file, discarding any changes since the last Save.
Save - saves the current script code to disk.
Save As - saves the current script text to a new file.
Syntax Sensitive Colouring
You can adjust the way that your code is displayed, to show different aspects of the code in different colours. There are some default colour schemes already set up, so at the very least it should be able to display things like text strings in a different colour.
The colouring is controlled by XML files containing a specification for how elements of the code are recognised. In your Pulsonix program folder you should find some XML files called ‘ScriptColourxxx.xml’ where xxx is a scripting language file extension.
There is also a baseline colouring file called ‘ScriptColour.xml’ that is used if your script file does not match any of the language specific XML files.
If you want to customise the colouring, you can copy one of these files to the Pulsonix folder in your ‘Documents’ folder, and edit the file there. The program looks in this folder first to see if you have produced your own version of the colouring file, before it looks in the installed program folder.
Related Topics
Running Scripts | Running Scripts From Command Line | Scripting Overview | Scripting Reference