How to highlight .htaccess code in Notepad++

.htaccessnotepadsyntax highlighting

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?

Best Answer

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