ATOM
StructuredText Language Package forATOM support for IEC 61131-3 Structured Text and Automation Studio (AS) projects including syntax highlighting, snippets, and auto-completion.
Features
Syntax Highlighting
- Comments (inline
//
, block(* *)
) - Keywords
- Statement-flow (
IF
,ELSE
,CASE
,FOR
, ...) - Operators (
AND
,OR
,<
,>
,+
,-
, ...) - Storage (
PROGRAM
,FUNCTION
,VAR
,TYPE
, ...)
- Statement-flow (
- Strings
'Hello Word!'
- Numbers
16#ff
,75.0
,T#250ms
- Function & Function Block calls
strcpy()
- Structure members
System.Parameters
- User constants
IN_TO_MM
(all uppercase)
Snippets
cm
- Block commentif
- If statementelse
- If else statementelsif
- If, else, elsif statementfor
- For loopcase
- Case statementwhile
- While looprepeat
- Repeat loopfn
- Function definitionfb
- Function block definitionprog
- Program definition
Auto-Complete
- Auto-capitalization
- Sets keywords to all caps when cursor changes line in text editor
Installation
Install the latest release,
apm install language-as-structured-text
or clone the repository for the latest changes.
git clone https://github.com/tmatijevich/language-as-structured-text.git
Link as a development package with ATOM to make custom changes.
apm link -d
Then run ATOM in development mode.
atom -d
Plugins
I recommend the following add-on packages for programming in ATOM
Upcoming
- Autocomplete provider of variables, types, and functions