The script editor provides a friendly environment for writing and reading JSL scripts. The Script Editor shows basic features such as syntax coloring, inline commenting, and automatic formatting. Other common programming options are described later in this section.
The Script Editor
Suppose that you want to clear your JSL variables, but do not remember the command. You can type clear and then press CTRL-SPACE, to see a list of possible clear commands. Select the command that you want to insert.
Autocomplete Example
Tooltip for a JSL Function
To turn off function tooltips, deselect Preferences > Script Editor > Show Operator Tips.
Example of Splitting a Window Horizontally
The script editor helps you match fences (or parentheses, square brackets, and curly braces) in the following ways:
Each Step in Matching Fences
Basic regular expressions such as ^ and $ (which match the start of line and end of line) and \n (which matches a carriage return) are also supported.
See the Using JMP book for details about the Search options.
To turn on this feature, select JSL code folding in the Script Editor preferences. Then you can expand and collapse blocks of code by right-clicking on a script and selecting Advanced > Expand All or Collapse All.
See Add More Folding Keywords for details on using additional keywords as folding markers.
Code Folding Markers Shown in a Script
When the Allow additional code folding keywords option is selected, JMP looks for the file jmpKeywords.jsl in the one of the ordered directories associated with the JMP special directory types.
Select File > Preferences.
Select the Fonts group.
Click Mono to set the font for the script editor.
Changing the Font Properties for Script Windows
Select File > Preferences > Script Editor to further customize the editor.
Select this option to use code folding markers in the script editor, which mark the opening and closing of user defined functions and Expr() blocks. You can expand and collapse these marked blocks of code. This option is off by default.
Select Allow additional code folding keywords to enable using additional keywords for folding markers in the script editor. See Add More Folding Keywords for details.