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.
Tip: To fold or expand all code in the entire script, press Shift and Ctrl then click on a code marker.
After you select this preference, Function and Expr expressions are foldable. See Add More Folding Keywords for details about adding folding markers to other expressions.
Figure 3.7 Code Folding Markers Shown in a Script
By default, code does not remain collapsed after you save the script and restart JMP. To save the state of the folded code, select Save and restore document state information in the Script Editor preferences.
{"If", "For", "For Each Row", "While", "Try", "New Window", "V List Box", "H List Box"}
JMP supports multiple keyword lists. A system administrator can define a set of keywords in jmpKeywords.jsl and save the script in C:/ProgramData/SAS/JMP/ or designated directory listed below. You save your version of jmpKeywords.jsl in your C:/Users/<user>/Documents/ folder. JMP merges all keyword lists from the designated directories.
•
|
The list in jmpKeywords.jsl is case insensitive.
|
•
|
After you edit and save the list in jmpKeywords.jsl, turn the Allow additional code folding keywords preference off and then back on for the changes to take effect. Messages in the log indicate that the keywords were loaded.
|