Notepad++ - Associate file extension to a language's syntax highlighting

By xngo on April 28, 2020

In Notepad++, you can associate a file extension to a specific language's syntax highlighting.

Do the followings:

  1. Run Notepad++ as administrator. Otherwise, the settings will not be saved.
  2. Navigate to Settings > Style Configurator.
    Notepad++ - Settings > Style Configurator
  3. Choose the language on the left side that you want your own extensions to match.
  4. In the User ext. input field near the bottom, type in your file extensions without the dot in front of it. Multiple extensions are separated by a space.
  5. For my case, I want files with .config and .fig extensions to style like XML.
    Notepad++ - Style Configurator > User ext.

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.