scrollbar |
---|
The scripting editor contains the following features :
Table of Contents |
---|
Syntax highlighting
With syntax highlighting all the words and types that are known in python will be shown as colored text.
To configure the color schema go to the DeltaShell installation folder and navigate to the plugins\DeltaShell.Plugins.Scripting.Gui folder.
Here the XML file "Python.xshd" contains all the information used for syntax highlighting.
Spaces
Tabs
End of line
Regions
Regions are used to mark code blocks, and gives you the ability to collapse these blocks to 1 line with a title.
Opened region
Closed region
Ribbon :
When you open a scripting editor in DeltaShell a Scripting tab will appear in the DeltaShell ribbon. This ribbon has the following additional options :
Function | Description |
---|---|
Run script | Executes the selected text. If no text is selected then it will execute the entire script |
Clear cached variables | Clears all variables and loaded libraries from memory |
Debugging | Enables/Disables the debug option. When enabled you can add breakpoint to the code (using F9 or clicking in the margin) and the code will stop at this point before executing the statement (use F10 (step over) or F11 (step into) for a more step by step approach) |
Python variables | Show or hide python variables (like _var_) in code completion |
Insert spaces / tabs | Determines if spaces or tab characters are added when pressing tab |
Tab size | Sets the number of spaces that are considered equal to a tab character |
Save before run | Saves the changes to the file before running |
Create region | Creates a new region surrounding the selected text |
Comment selection | Comments out the selected text |
scrollbar |
---|