Skip to content

HonskiDesign/notepadpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

G-Code Stylizer For Notepad++

How to use the G-CODE stylizer

Download the G-CODE.xml file.
In Notepad++:

  • Click 'Language'
  • Go down to 'User Defined Language'
  • Click 'Import' and navigate to the xml file and select it.
  • In the dropdown menu, select G-CODE
  • Add your G-Code file extensions to the 'Ext.' field seperated by a space. 'nc mpf eia gcd txt cam' are already populated.
  • Click 'Save As...'
  • Give it a name like 'G-Code'

Your files should automatically revert to this color scheme. If not, you may have to go up to Language and navigate down and select G-Code(or whatever you called it)

Sample

G-Code Sample

Dark Mode variant

NOTE: This user defined language is meant to be paired with the Dracula theme which you can find here: https://draculatheme.com/notepad-plus-plus If you use this with any other theme, it probably will look like garbage. Of course, you can always modify the User Defined XML to suit your needs using the Notepad++ built in language stylizer. Since G-Code isn't really a coding language with proper definitions relating to key words, this is the only way I have found to make this work.

How to use the Dark Mode variant

  • Download the G-CODE-DARK.xml file from here.
  • Open Notepad++
  • Go to Settings -> Preferences and select Dark Mode on the left and activate it. (restart Np++ if you need to)
  • Go to Language -> User Defined Language
  • Click 'Import' and navigate to the G-CODE-DARK.xml file and select it.
  • In the dropdown menu, select G-CODE-DARK
  • Add your G-Code file extensions to the 'Ext.' field seperated by a space. 'nc mpf eia gcd txt cam' are already populated.
  • Click 'Save As...'
  • Give it a name like 'G-Code-Dark'. This language definition should now be available from the Language menu in the main application screen.
  • Close the User Defined Language menu. The theme should be set to DarkModeDefault.
  • In the 'Style' list, find 'Current Line Background' and select it.
  • Change the 'Background Colour' and go into the More Colors dialogue set the below to:
    • Red:82
    • Green:82
    • Blue:82
    • Hue:160
    • Sat:0
    • Lum:77
  • Click Ok and then Save & Close

Dark Mode Sample

G-CODE-DARK

Dark Mode Dracula variant

NOTE: This user defined language is meant to be paired with the Dracula theme which you can find here: https://draculatheme.com/notepad-plus-plus If you use this with any other theme, it probably will look like garbage. Of course, you can always modify the User Defined XML to suit your needs using the Notepad++ built in language stylizer. Since G-Code isn't really a coding language with proper definitions relating to key words, this is the only way I have found to make this work.

How to use the Dracula variant

(Since Np++ now has an official dark mode, this variant is no longer needed. Just keeping as a 3rd option)

  • Download the Dracula theme and place the XML in your C:\Users<your username>\AppData\Roaming\Notepad++\themes\ folder. (if the folder isn't there, just create it)
  • Download the G-CODE-DARK-Dracula.xml file from here.
  • Open Notepad++
  • Go to Settings -> Preferences and select Dark Mode on the left and activate it. (restart Np++ if you need to)
  • Go to Settings -> Style Configurator and set it to Dracula.
  • Click Save & Close
  • Go to Language -> User Defined Language
  • Click 'Import' and navigate to the G-CODE-DARK-Dracula.xml file and select it.
  • In the dropdown menu, select G-CODE-DARK-Dracula
  • Add your G-Code file extensions to the 'Ext.' field seperated by a space. 'nc mpf eia gcd txt cam' are already populated.
  • Click 'Save As...'
  • Give it a name like 'G-Code-Dark-Dracula' Note: There is a wierd bug where sometimes once you import the UDL, it won't show up in the dropdown Languages menu in the navigation bar. And saving it creates a duplicate. not sure why this is, but it seems like a Notepad++ 'bug'.

Dark Mode Dracula Sample

G-CODE-DARK

About

Repo for Notepad++ configuration files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published