Skip to content
| Marketplace
Sign in
Visual Studio Code>Themes>mtx-syntax-colorNew to Visual Studio Code? Get it now.
mtx-syntax-color

mtx-syntax-color

PRAEWEMA Antriebstechnik GmbH

|
312 installs
| (0) | Free
Language extension for Bosch Rexroth MTX language.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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.

picture

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!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft