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 11.2k Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              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 Offline
                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 Offline
                  Marco Czen
                  last edited by

                  Thats ;

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

                  1 Reply Last reply Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors