This is not possible in pdfToolbox Desktop itself, but is possible through a link with Microsoft Visual Studio Code. Because of the support necessary to link with an external editor, the fact that Microsoft Visual Studio Code can be used freely and is available on both Windows and macOS, this feature only works with this editor.
In order for this type of editing to work, your system needs to be correctly configured. Specifically you need to install:
- Microsoft Visual Studio Code.
You can install the software from the Microsoft web site.
- Microsoft Visual Studio Code command-line tools.
On Windows and Linux this should be automatically available after installing Visual Studio Code. On macOS, you need to follow some extra steps which are described in the topic about the Visual Studio Code command line.
Starting the editor
There are two possible ways to open a script inside Visual Studio Code for editing.
Editing one script
Editing all scripts
Open a Process Plan and click the "Edit scripts..." button at the bottom of the Process Plan editor.
Editing your scripts
When you opened a single script or configuration file, Visual Studio Code opens just that file. If you opened multiple scripts, you'll find all of them in the Visual Studio Code editor that opens.
Remark the following features of the Visual Studio Code editor:
- The ".vscode" folder is inserted automatically by callas pdfToolbox. You should not modify or delete it.
- All of your scripts and configuration files appear in the "vars" folder. Click any of them to open it in the editor, ready for editing.
- At the top of the Visual Studio Code editor, you have a tab for each script file you have opened. If the file was changed, there is a filled circle marker at the end of the name of the script.
Saving your changes
You do not have to copy and paste your changes in the Visual Studio Code editor to your Process Plan, simply use the "Save" menu command or use "Ctrl+S" on Windows, or "Command+S" on macOS to save your changes.
callas pdfToolbox detects you made a change and automatically updates your Process Plan scripts as necessary.