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

How can I highlight .htaccess code?

I downloaded this XML file and I copy and pasted file content to userDefinedLanguage.xml inside my install directory.

According to the documentation found here I need to do the following:

"You get the tool for creating or changing your language from View -> User Define Dialog.... Be patient, it can take quite a while to load."

The problem is my Notepad++ menu looks like this:

I'm on the latest version and I don't see the "User Define Dialog" option under View or Settings

How can I import this file and make .htaccess files highlighted?


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


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