If you are editing scripts like PHP, PERL and Ruby you may want to execute the script to see the results or check for errors while the script is running.
All files and projects respectively have a default run mode (configurable) but by clicking and holding down on the Run item in the toolbar you can explicitly choose the mode.
The 4 modes are explained below.
Run & Debug mode will display errors in a split view that can be used to trace the error to the location in the file where it occurred.
Run & Preview mode will display the results as HTML in the the configured preview mode.
Terminal mode will display the text-only results of the script in a pseudo-terminal that does not accept user input.
Check Syntax mode will display syntax errors in a tool-tip window at the cursor location.
If your script requires dynamic input like that from a form you can pass arguments (command line parameters) to the script during execution. To do so, Get Info (command-I) on the file and add arguments in the list under the Script pane in the toolbar. All languages handle command line parameters differently so you may need to refer to other documents to understand how to access them in your code.
 |
Editing Text |
Previewing Web Pages |
 |
|