An extension to edit and test external scripts (Python, JavaScript, Java, etc.).
This Extension is provided as-is and without warranty or support. It is not part of the PTC product suite and there is no PTC support.
This extension allows to edit and test external scripts (Python, JavaScript, Java, etc.).
To show the editor the extension uses the Monaco Editor, to test the code the extension uses the ScriptEngineResource.
- debugMode - BOOLEAN (default = false): if set to true it sends to the browser's JS console a set of information useful for debugging the widget
- language - STRING (default = 'python'): the script language (options: python, javascript, java, sql)
- theme - STRING (default = 'vs'): the theme editor (options: vs, vs-dark, hc-black)
- parameters - JSON (default = {}): the parameters, represented as a JSON object containing numbers, strings, booleans and arrays of numbers, strings, booleans and arrays (recursively)
- resultParameter - STRING ('result'): parameter name of the result value
- code - STRING (no default value): the scripting code
- showOnlyCode - BOOLEAN (default = false): true to show only the code editor
If you would like to support the development of this and/or other extensions, consider making a donation.