Bosch Rexroth MTX syntax and highlighting extension
This VSCode extension recognizes files with the *.npg file extension.
These files are typically NC files for the Bosch Rexroth MTX control.
Thise extension currently includes syntax highlighting and some snippets.
Syntax hightlighting
The syntax highlighting is automatically detected and activated.
Snippets
The following snippets are currently stored:
prefix |
snippet |
nc-header-info |
;############################################ ;Progname: ;Version: ;Date: ;Author: ;############################################ |
nc-header-no-info |
;############################################" ;Prog.name: ;############################################" |
for |
10 FOR CNT%=1 TO NR_CNT% 20 :REM Do something..." 30 NEXT CNT% |
repeat |
10 REPEAT 20 X=X+1 :REM Repeat until X=100 30 UNTIL X=100 :REM Condition TRUE |
while |
10 WHILE {Condition TRUE} DO 20 :REM Do something 30 END |
call |
;------------------------------------------ N1 CALL ;Path of the called program ;------------------------------------------ |
if-then-endif |
10 IF (TRUE) THEN 20 :REM Do something 30 ENDIF |
if-then-else-endif |
10 IF (TRUE) THEN 20 :REM Do something 30 ELSE 40 :REM Do something else 50 ENDIF |
... |
and some more |
This extension is a beta-version.
Further versions will follow!
Enjoy!
| |