How can I highlight .htaccess code in Notepad++?

I wasn't sure exactly how to work this out. A little more searching and I dug up exactly what I was looking for.

Notepad++ Apache httpd.conf .htaccess Syntax Highlighting

Download http://notepad-plus.sourceforge.net/commun/userDefinedLang/userDefineLang_Apache2.xml

View > User Defined Dialogue > [ Import ] http://weblogs.asp.net/jgalloway/archive/2006/11/25/creating-a-user-defined-language-in-notepad.aspx


You get the tool for creating or changing your language from View -> User Define Dialog

It looks like the documentation you are linking to is out of date. It is now under the "Language" menu item.

In my version of Notepad v6.7.7 you need to:

  • Goto menu "Language" > "Define your language..."

    enter image description here

  • You will then see the "User Defined Language" dialog. Click "Import...:

    enter image description here

  • After you have imported your language, select it from menu "Language".

  • You may need to goto menu "Settings" > "Preferences" > "Language Menu" to add your language to the menu "Language".

    enter image description here