7

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?

  • note for editors:userDefinedLanguage is a xml file, not a floder – InBug Sep 17 '15 at 18:27
  • I have no idea what a floder is, but if an editor made a mistake, just correct it. Feel free to correct that mistake now that you know you can edit your own question. – Ramhound Sep 17 '15 at 18:48
  • I not realy like add correction after correction, (my english otherwise realy bad, maybe after I edit the question, the quality colud be very bad ) – InBug Sep 17 '15 at 19:05
5

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

  • Ah tank you! Note: I also neded to select language from language menu after I imported. Please create a line from this and after I acept your answer :) – InBug Sep 17 '15 at 18:26
  • @InBug No problem ;) Answer updated. – DavidPostill Sep 17 '15 at 18:55
6

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

  • 3
    You might want to change your comment to point to "Language > Define your language > [Import]", as that more closely resembles the user interface – Ben Philipp Sep 15 '17 at 1:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.