Subscribe to Blog
Email Address

Quite often I see people asking which text editors others use to work with their G-Code.

Some even suggest paid ones.

I am using a free general-purpose advanced text editor called Notepad++.

It is so flexible, it can recognize the language you are working with and turn on the language-specific highlighting for even the G-Code.

I created my own Language profile for it. It is attached to this article so that everyone can download it.

Below is how you can apply this language profile to turn on g-code highlighting:

  1. Download and Install Notepad++ from here:
  2. Download the custom language file attached to this article to your computer: download file
  3. Launch Notepad++ and go to Language>Define Your Language...
  4. Click on "Import" button and select the G-Code_N.XML Language file you have just downloaded from my site.
  5. After it notifies you that Import was successful, close the "Define" window and restart Notepad++

That is it.

Now when you load any G-Code file with Notepad++, select G-CODE_N item from the "Language" menu and enjoy the full power of the best text editor with g-code highlighting:

A thing of beauty!

Happy Coding!

Update: A friend named Lucas sent me a version of the GCode language definition for Dark Theme. Please see it below in the downloads section. Thanks, Lucas!

G-CODE_N Language G-CODE_N.xml G-CODE DARK G-CODE_DARK.xml Size:0.01 MB
Pages:(1) [1]

Tom Livingstone

December 9, 2022, 1:28 pm

Thank you!!


Mike S

May 26, 2023, 5:35 am

Thanks for this post and for the downloads.

I installed the dark mode file and applied it but I don't see any difference.

Windows 10 x64, Notepad++ x32

What do you recommend I try?

Thanks Again,



May 29, 2023, 4:12 am

With this plugin you also get the simulation !!!




November 6, 2023, 1:00 pm

I installed the plugin and can now view and edit Gcode but when I try to save the file or export the file it doesn't give me the oiption to do so as gcode. Did I possibly do something wrong? Thank you.


Eldar Gerfanov (Admin)

November 6, 2023, 1:05 pm

Jake, it's up to you to give your file name a proper extension when saving it.

I don't think NP++ would suggest "Save a G-code".

You just click "save" and enter "some-file.NC" that's it.



November 8, 2023, 4:19 pm

Jake, it's up to you to give your file name a proper extension when saving it.

I don't think NP++ would suggest "Save a G-code".

You just click "save" and enter "some-file.NC" that's it.

Ah! Thank you Elder I appreciate it. I was thinking the file type would have to be in the save as dropdown list. Worked like a charm thank you.



New Comment to: Notepad++: Absolutely Free G-Code Editor With Code Highlighting

Name: *
Solve Capcha:
Sing In

© 2009-2022 Eldar Gerfanov. All Rights Reserved.
© 2009 Eldar Gerfanov. Materials on this site are presented as is and are mostly for educational use.

You may freely reproduce information presented herein without any consent from me, provided you include link to this site.
In case when i am not the copyright holder, you may want to contact proper owner of material. Anyway, they are freely available on the Internet.
If you hold the copyright right for any of the materials on this site and want them removed, please contact me here