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.
    • Marco CzenM
      Marco Czen
      last edited by

      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.

      Claudia FrankC 2 Replies Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Marco Czen
        last edited by

        @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
        • chcgC
          chcg
          last edited by

          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
          • Claudia FrankC
            Claudia Frank @Marco Czen
            last edited by

            @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
            • Marco CzenM
              Marco Czen
              last edited by Marco Czen

              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
              • Marco CzenM
                Marco Czen
                last edited by

                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
                • Marco CzenM
                  Marco Czen
                  last edited by

                  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