• Login
Community
  • Login

How to get .inc file to be accepted as a .php for auto syntax highlighting ?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
7 Posts 3 Posters 10.2k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    Marco Czen
    last edited by Dec 15, 2017, 2:55 AM

    Guys,

    Notepad++ has been great for editing.
    No issues with syntax highlighting for all *.php files.

    When i open *.inc files , I have to go to

    Language -> P -> PHP every time to get syntax highlighting as a PHP file.

    As i am only working on php projects right now, i was wondering how to get the *.inc file recognized as a *.php file.

    Thanks.

    C 2 Replies Last reply Dec 15, 2017, 6:03 PM Reply Quote 0
    • C
      Claudia Frank @Marco Czen
      last edited by Dec 15, 2017, 6:03 PM

      @Marco-Czen

      if the extension hasn’t been mapped to another language already you can add it via
      style configurator->php and add it in user ext. field.

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 1
      • C
        chcg
        last edited by Dec 15, 2017, 7:18 PM

        Seems to be already used, see langs.xml:

            <Language name="pascal" ext="pas pp p inc lpr" commentStart="{" commentEnd="}">
        
        1 Reply Last reply Reply Quote 2
        • C
          Claudia Frank @Marco Czen
          last edited by Dec 15, 2017, 7:32 PM

          @chcg - thx for checking :-)
          @Marco-Czen if pascal isn’t of any interest for you, remove it and add it to php.

          Cheers
          Claudia

          1 Reply Last reply Reply Quote 0
          • M
            Marco Czen
            last edited by Marco Czen Dec 18, 2017, 6:26 AM Dec 18, 2017, 6:26 AM

            Hi, i dont seem to have a lang.xml in my Notepad++ folder.

            There is however a langs.model.xml file.

            Is this the same thing or is there another location for this langs.xml file ?

            1 Reply Last reply Reply Quote 0
            • M
              Marco Czen
              last edited by Dec 18, 2017, 10:38 AM

              Oops got it - Suppose to edit the file at;

              C:\Users<username>\AppData\Roaming\Notepad++

              Thanks. DONE. WORKING.

              1 Reply Last reply Reply Quote 2
              • M
                Marco Czen
                last edited by Dec 28, 2017, 4:44 AM

                Thats ;

                C:\Users\username\AppData\Roaming\Notepad++

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors