FG
💻 Software

Assigning custom extensions to a language's syntax highlighting in Notepad++

Fresh7 days ago
Mar 15, 2026128558 views
Confidence Score1%
1%

Problem

In the current version of Notepad++ opening .sql files results in Notepad applying SQL syntax highlighting to it. I'd like Notepad++ to do the same for other extensions as well, is there some setting where I can define this?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Assigning custom extensions to a language's syntax highlighting in Notepad++

Low Risk

When you open a file in notepad++ it will attempt to load syntax highlighting for the contents based on file extension. If you use a custom extension for one of the existing languages you can add the custom extension in Settings -> Style Configurator. Select language and add the extension in the "User extension" edit box. To add multiple extensions separate them using Space. You then need to re-open your file to see the syntax highlighting applied. You can also change syntax highlighting style …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment