PML Extension for
Visual Studio Code
Link in marketplace: https://marketplace.visualstudio.com/items?itemName=angelincalu.pml
Visual studio Code with a version greater than
It provides syntax highlight for
Programmable Macro Language.
Supported File Types:
Enable the support for tab-completion in Visual Studio code by setting:
Then just type a snippet prefix, and press Tab to insert a snippet. Pressing tab again will move the cursor to different predefined areas.
As of this release it has the following snippets defined:
pmlform : Creates the basic scaffolding for a new pml form.
pmlformg: Creates the basic scaffolding for a new pml form with a grid. This will also add the following methods out of the box, besides the constructor:
rightClickGrid : Defines right click trigger functionality;
removeAll : Removes all grid Contents;
removeSelected : Removes Selected rows from Grid;
exportToExcel : Exports grid contents to .xls file;
initializeEmptyGrid : Initialize an empty grid & set up the columns;
appendToGrid(rows) : Add an array of rows to the grid.
pmlfunc : Creates the basic scaffolding for a new pml function.
pmlmet : Creates the basic scaffolding for a new pml method.
pmlobj : Creates the basic scaffolding for a new pml object.
Less significant snippets like:
pmlbut : Creates the basic code for adding a new button on a plm form.
using namespace : Suggests the most commonly used namespaces
PML Uglify will encrypt the pml file using a trivial encryption (for testing purposes).
Important Known issue: This "encryption" type does not support utf-8 files. If you use any non-ASCII characters in the script this will result in an error and/or will produce unwanted/unpredictable results!
- Basic code completion logic added
For a full list of changes please check
- Updated vscode requirement to
For more information
All contributions are welcomed!