G-Code_Norm3

G-Code_Norm3 Notepad++ Language for Marlin 2.0 G-Codes XML File Upgrade

While working with Marlin 2.0 Firmware and G-Code files in Notepad ++ I noticed there wasn’t a built-in language for G Code and that Google wasn’t helping much either. The few files I did find online weren’t complete enough and didn’t help me much so I started over from scratch to build a decent G-Code XML language file using Marlin’s Website and Notepad++ of course.

Notepad ++ showing a .gcode file Before and After installing the G-Code_Norm3 User Defined Language Marlin 2.0 G-Code XML Upgrade With Arrow
Notepad ++ showing a .gcode file Before and After installing the G-Code_Norm3 User Defined Language Marlin 2.0 G-Code XML Upgrade

If you’ve ever wished that Marlin’s K-factor Calibration Pattern Generator had a few more configurable options but aren’t the webmaster either then you’ve come to the right place. You might want Notepad Plus Plus to Highlight G Codes and important text like Marlin and Norm3.com in a sophisticated and intuitive way so you can edit Marlin G-Code all day.

Notepad ++ Showing All Marlin 2.0 G-Codes with G-Code_Norm3 User Defined Language for Notepad Plus Plus XML Upgrade Active
Notepad ++ Showing All Marlin 2.0 G-Codes with G-Code_Norm3 Language Active

The G-Codes are Color-Coded into 8 Different Groups that seemed logical to group together in their particular colors strictly for aesthetic purposes after consulting the Marlin website, source code, and machine operations while properly medicated according to State Law.

How to Install a Notepad++ Language File:

Notepad++ Showing Language menu opened to User Defined Language sub-menu with "Define your language..." sub option highlighted
Select “Define your language…” to open the User Defined Language dialog in Notepad++ to begin importing a new language

Open Notepad++ and Open the “Language” menu on the top and go almost all the way down to the “User Defined Language” sub-menu and click the “Define your language…” option. Hopefully the Notepad++ “User Defined Language” dialog box should appear as shown below:

Notepad++ showing User Defined Language dialog box with Import button highlighted ready to Import the G-Code_Norm3 XML file
Import a User Defined Language XML into Notepad++ by Clicking the “Import” button then navigating to the G-Code_Norm3 XML file.

Click the “Import” button then navigate to the XML language file you want to import which in my case is the G-Code_Norm3 User Defined Language XML file. I downloaded it from Right here where I Left the download link below ahead of time: Right?

G-Code_Norm3 XML Download:

XML File Download Logo in Red for Norm3
2023-07-22 – G-Code_Norm3 Notepad++ Language for Marlin 2.0 G-Codes.xml

Right Click the download link above and select “Save link as…” and then save the file to your Downloads folder.

Windows Dark Themed Open File dialog box navigated to "Downloads" and the G-Code_Norm3 XML file selected with "Open" button highlighted
Open File dialog box navigated to “Downloads” and select the G-Code_Norm3 XML file then click the “Open” button

Once you’ve imported the language by clicking the “Open” button it won’t seem like anything happened. This is Normal as Notepad Plus Plus has one more step to do. Close the User Defined Language dialog box and then Close Notepad++ so Notepad Plus Plus can rebuild the User Defined Language list when opening. The next time you Open Notepad Plus Plus the G-Code_Norm3 language should appear towards the bottom of the “Language” menu list but you shouldn’t need to select it manually if you’re opening a file with a .gcode file extension.

Notepad Plus Plus with G-Code_Norm3 Notepad++ User Defined Language Installed and a G-Code List opened
Notepad Plus Plus with G-Code_Norm3 language Installed and a G-Code List opened

Now, When you Open a “.gcode” file with Notepad++ it should automatically activate the G-Code_Norm3 User Defined Language and begin trying to highlight the entire file. It might take Notepad++ a few seconds to load and highlight larger G-Code files over a Megabyte.

Text List of G-Codes:

Notepad ++ Showing Marlin 2.0 G-Code List for Notepad Plus Plus by Norm3 with G-Code_Norm3 User Defined Language Active
Notepad ++ Showing Marlin 2.0 G-Code List for Notepad Plus Plus by Norm3

I started with a list of all the G-Codes so I could see how the Marlin G-Code_Norm3 Notepad++ Language will display every G Code. Want to see how it looks or improve it? Then download and open this special .gcode file in Notepad Plus Plus: (After G-Code_Norm3 Upgrade)

List of Marlin G-Codes:

G-Code 3D Printer File Download Logo in Red for Norm3
2023-07-22 – Marlin 2.0 G-Code List for Notepad Plus Plus by Norm3.gcode

Right click the download link above and select “Save link as…” and then save the file to your “Downloads” folder. This optional file should contain a list of all the G-Codes possible in the Marlin 2.0 3D Printer Firmware. Obviously you wouldn’t want to attempt to “print” this special .gcode file on any 3D printer because bad things could happen including but not limited to fire and death. It’s only for Notepad Plus Plus.

Notepad++ showing bottom of Norm3 .gcode file with G-Codes in groups as pasted from User Defined Language dialog boxes in Notepad Plus Plus
Notepad++ showing bottom of Norm3 .gcode file with G-Codes in groups as pasted from User Defined Language dialog boxes

The .gcode file also contains a Copy and Paste of the G-Code_Norm3 Keywords Lists at the bottom. You could build your own custom User Defined Notepad++ Language with just the .gcode file above, but most users find it easier to Import an XML file rather than Copy and Paste a bunch of text into fields.

Source Text:

Some users love to Copy and Paste or are paranoid about downloading unknown files from the internet or are using a “special” computer then this next section of code text embedded below is for you:

Notepad++ showing bottom of Norm3 .gcode file with G-Codes in groups as pasted from User Defined Language dialog boxes in Notepad Plus Plus
Notepad++ showing Copy Pasta extruded from User Defined Language dialog boxes

Copy Pasta extruded from User Defined Language dialog boxes:

;End of File: 2023-07-22 - Marlin 2.0 G-Code List for Notepad Plus Plus by Norm3.gcode
;Copy Paste from Notepad++
;User Defined Language -> Define Your Own Language
;G-Code_Norm3

;Ext.: (File Extentions)
gcode

;Folding in comment style, Open:
AFTER_LAYER_CHANGE

;Folding in comment style, Close:
LAYER_CHANGE

;Comment line style, Open: ;
;Operators 1 List:
A B C D E F H I J K L N O P Q R S U V W X Y Z

;Keywords Lists: (Prefix mode: Off / Unchecked)

et stop top ff M0 M1 M5 M17 M18 M81 M84 M92 M112 M201 M201 M203 M204 M205 M211 M220 M400 M410 M413 M486 M510 M511 M512 M593 M900 

Temperature G76 M86 M87 M104 M106 M107 M109 M140 M141 M143 M149 M190 M191 M192 M193 M301 M302 M303 M304 M305 M306 M710 M871 Temperatures Temp an ed otend

rint ob Timer M16 M73 M75 M76 M77 M78 M85 M108 M110 M808 M810 M811 M812 M813 M814 M815 M816 M817 M818 M819 

ilament T0 T1 T2 T3 T4 T5 T6 M82 M83 M163 M164 M165 M166 M200 M207 M208 M209 M217 M221 M403 M404 M405 M406 M407 M412 M600 M603 M701 M702

ost ebug ebugging eport M20 M21 M22 M23 M24 M25 M26 M27 M28 M29 M30 M31 M32 M33 M34 M42 M43 M100 M105 M111 M113 M114 M115 M118 M119 M122 M123 M154 M155 M260 M261 M430 M503 M504 M524 M575 M876 M909 M911 M912 M928 M993 M994 M995 M999 KILL

oordinate ome ndstop ffset G17 G18 G19 G20 G21 G28 G29 G33 G34 G35 G53 G54 G55 G56 G57 G58 G59 G59.1 G59.2 G59.3 G60 G80 G90 G91 G92 G425 M120 M121 M206 M218 M290 M360 M361 M362 M363 M364 M420 M421 M422 M423 M425 M428 M493 M540 M605 M665 M665 M666 M851 M852 M860 M861 M862 M863 M864 M865 M866 M867 M868 M869 M951 oordinates ndstops ffsets eveling nits orkspace ompensation

ettings nput utput M7 M8 M9 M10 M11 M102 M117 M126 M127 M128 M129 M145 M150 M226 M240 M250 M255 M256 M280 M281 M282 M300 M350 M351 M355 M380 M381 M500 M501 M502 M569 M672 M906 M907 M908 M910 M913 M914 M919 M997 M7219

Move Test robe ark n G0 G1 G2 G3 G4 G5 G6 G10 G11 G12 G26 G27 G30 G31 G32 G38.2 G38.3 G38.4 G38.5 G42 G61 M3 M4 M48 M80 M125 M401 M402 M408 M915 M916 M917 M918


;Good Luck and Have Fun 3D Printing - Norm III

Good Luck and Have Fun 3D Printing – Norm III

Norm3 N3 Logo on Transparent Background
Good Luck and Have Fun 3D Printing – Norm III