- Save
userDefineLang_nginx.xml
to your computer - Open Notepad++
- Click
Language
>Define your language...
- Click
Import
and navigate touserDefineLang_nginx.xml
- Import it and restart Notepad++
- Open an Nginx config file (e.g.,
/etc/nginx/nginx.conf
) - If you already have the
.conf
extension assigned to another syntax highlighter, you'll need to select the Nginx highlighter explicitly by clickingLanguage
>Nginx
This language file highlights the directives listed on the HttpCoreModule page and the Alphabetical Index of Directives page.
If you want to customize this language file or review the list of variables and directives that this file highlights, I've added some text files to help you with that. They are located in the src
folder. For information on configuring user-defined language files, see User Defined Language Files.