BMC tpl or tplpre language support in Atom
Adds syntax highlighting and snippets for tpl in Atom.
Originally re-made from the Sublmime text 3 bundle.
Build Logic for this package is not included, you can find it in separate repo
Installation:
- Copy 'language-tplpre' to: C:\Users\USER\.atom\packages\
- Move ".atom-build.yml" to your project root folder.
Better installation:
Go to settings -> Install -> Search "language-tplpre"
Use:
Set syntax: Ctrl+Shift+L -> type 'tplpre'
Syntax highlighting:
Most of constructions are also checking on integrity, so if some code will be written on wrong place, highlighting can be broken.
Example:
Pattern from Community Edition:
Documentation block and tasks highlighted:
Triggers:
Regex expressions: (uses python regex grammar from "language-python")
Syntax broken (highlighting will show it)
Autocomplete and Doc links:
For common code blocks and usual constructions autocompletion is available. It also provide links to reffering documentaion for each function or block on official BMC Doc portal.
Pattern draft example:
Code constructions usually used:
Link to BMC official docs:
Extra developers helping code:
Automation, syntax check, upload pattern, etc:
You should download extra module for TPL Automation from repo below and attach to build system for Atom.
You can obtain build system in:
- Settings -> Install -> Search "build" build system
TPL Automation: BMC_TPL_IDE you can run most development routines automatically. Atom command templates you can found in Command Palette (Ctrl+Shift+P)
File in project's root - ".atom-build.yml" is example for TPL Automation build, place it in your project's root folder, where tpl\tplpre files are stored.
Contributions are greatly appreciated. Please fork this repository and open a pull request to add snippets, make grammar tweaks, etc.
Additional functionality will be added soon in both versions for Sublime Text and Atom.
Fell free to contact me via it@trianglesis.org.ua
Last validation: 2017-08-17