• Link to LinkedIn
  • Link to Youtube
  • Link to Instagram
  • Link to X
📰 Newsletter
  • Shopping Cart Shopping Cart
    0Shopping Cart
EdingCNC
  • Products
    • CNC Controller
      • CNC530*
      • CNC720
      • CNC760
      • iCNC600
    • Accessories
      • 17.3″ Panel PC*
      • StatusView
      • SensorHUB
      • OP-25
      • RLY8IO
      • Wireless Pendant
      • UIO-10
    • Legacy
      • CNC310
      • CPU5A4E
      • CPU5A4
      • CPU5B (EOL)
  • Software
    • Download
    • EdingCNC Post-processor
    • Software UI
    • Software Features
    • Online documentation
  • Support
    • Online Documentation
    • Blogs
    • YouTube
    • Request support
    • Download teamviewer
  • Third Party
    • Retrofitting
  • EdingCNC
    • About us
    • News
    • Distributors/Resellers
  • Contact us
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu

Syntax Highlighters

Editing G-Code and macros by hand can be a difficult task. Whether it is knowing the syntax, or trying to find that one feed rate modifier in the list of G codes. We have decided to make this process a bit simpler. We created syntax highlighters for Notepad++ and VS Code to improve the legibility of these files. Syntax highlighters turn the block of plain black text into colored text based on the type of terms. This is commonly used in programming, and can greatly speed up navigating larger files.

G-Code

For G-Code, we have made the distinction between comments, line numbers, G codes, M codes, and parameters. A small comparison can be found below to compare the difference in legibility the highlighters offer.

Comparison using Notepad++: plain text (left), our highlighter light theme (middle), and our highlighter dark theme (right)

Macro

Writing macros, especially as a beginner, can be a daunting task. Understanding the currently available macros can help when getting started, this is made easier by using syntax highlighting. But even more experienced macro users benefit from better legibility. As an example, look at the difference this makes to even a simple macro. The first image shows no highlighting, the second one uses the default VS Code theme, and the last one uses a more expressive theme.

VS Code: No Highlighting

VS Code: Our syntax highlighter using the default theme

VS Code: Our syntax highlighter using a custom theme (SynthWave ’84, available from the visual studio store)

Installation

We offer syntax highlighters for Notepad++ and Visual Studio Code. If you do not have these installed yet, the installer for Notepad++ can be found here and can be installed on windows only. For a cross-platform solution, the installer for VS Code can be found here, this editor can be installed on Windows, Mac, and Linux.

It requires a few steps to install these syntax highlighters on the editor of choice, we discuss these below for the respective editors.

Notepad++:

  1. Download the Light mode and/or Dark mode themes
  2. In Notepad++, navigate to Language -> User Defined Language -> Open User Defined Language folder…
  3. Copy the chosen file into that directory.

After that, the file types need to be associated with this highlighter.

  1. Ensure one file of the desired extensions (.nc .cnc .ngc .gc .tap .gcode .ncp) is open.
  2. Navigate to Language and select Eding CNC Dark Theme or Eding CNC Light Theme based on the currently active theme.
  3. The text should now have changed to the chosen colors. This setting applies to all files of the same file extension.
https://edingcnc.com/wp-content/uploads/2023/02/nppsyntax.png

Eding CNC Dark Theme (top) and Eding CNC Light Theme (bottom)

Visual Studio Code:

  1. Navigate to the Extensions window (Ctrl + Shift + X on windows)
  2. Type in “Eding CNC G-Code & Macro“
  3. Click install

After that, the file types need to be associated with this highlighter.

  1. Click Plain Text in the bottom right corner of the screen
  2. Select G-Code from the dropdown
  3. The text should now have changed to the chosen colors. This setting applies to all files of the same file extension.

Please note that Visual Studio Code syntax highlighting is influenced by your current theme, so it may look different on your computer. Optionally, you can install a custom theme that has more different colors, the effect of which can be seen below.

  1. Navigate to File -> Preferences -> Theme -> Color Theme
  2. Use the up and down arrow keys to try included themes or click “Browse Additional Color Themes” to view community-made themes.
  3. Click the desired theme. The colors should have changed to represent the choice.
macro preview

Default VS Code Theme (top) and Custom SynthWave ’84 Theme (bottom)

Subscribe to our newsletter

The latest news

  • 🤝New partnership with PVS CNC in Ukraine.14 October 2025
  • 📢New cooperation with CNC Store in France12 October 2024
  • New cooperation with Real Eletric in Brazil29 July 2024

View our products

  • VESA desktop mount VESA desktop mount € 69,00 (ex. VAT)
  • Desktop power supply 24V / 6.67A (160W) Desktop power supply 24V / 6.67A (160W) € 53,54 (ex. VAT)
  • Windows 11 IoT Enterprise LTSC Windows 11 IoT Enterprise LTSC € 100,00 (ex. VAT)

Contact us

EdingCNC
Europaplein 1
Building 31 Unit 0.02
5684 ZC Best
The Netherlands

Eding CNC bv

 

Europaplein 1
Building 31 Unit 0.02
5684 ZC Best
The Netherlands
Chamber of commerce:  55932215
VAT: NL851913416B01

 

Recent News

  • 🤝New partnership with PVS CNC in Ukraine.14 October 2025
  • 📢New cooperation with CNC Store in France12 October 2024
  • New cooperation with Real Eletric in Brazil29 July 2024
© EdingCNC | Kwaaijongens, rebels in oplossingen
  • Link to LinkedIn
  • Link to Youtube
  • Link to Instagram
  • Link to X
  • Privacy statement
  • Terms and Conditions
Link to: Laser engraving with Eding CNC and Lightburn Link to: Laser engraving with Eding CNC and Lightburn Laser engraving with Eding CNC and Lightburn Link to: Release of Beta-8 of version 5 Link to: Release of Beta-8 of version 5 Release of Beta-8 of version 5
Scroll to top
RMA Request
#EODD24

Welcome to Open Door Day 2024!

SensorHUB

Tired of finding the correct kind of sensors mix-and-match for tool length measurement, material height measurement, etc.?

EdingCNC introduces the SensorHUB, and connecting various sensors was never easier.

Available as board or additional DIN rail enclosure for ease of mounting your SensorHUB in your machine.

If you have not yet done so, below a form will appear if you like us to keep you posted.