Community
    • Login

    PHP Styling on Files with Non-PHP Extension

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 2.8k 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.
    • JoeBoxer35J
      JoeBoxer35
      last edited by

      Hi,

      For some reason, for the past 10 years my company has used php code in files that have .htm extension rather than the traditional .php extension.

      I can’t change the extensions to .php of several hundred files, but really would like to have the php styling (auto-indent, etc) while working on the php code in these files. The variable, command, etc colors and tab levels are displayed. But lines are not auto-indented.

      To further explain, a file named helloworld.htm might have
      <?
      if ($i) {
      echo “hello”
      }
      ?>

      Thank you for your help.

      Joe

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @JoeBoxer35
        last edited by

        @JoeBoxer35

        Maybe I am missing some important point, but can’t you just go to the Language menu and select PHP?

        1 Reply Last reply Reply Quote 3
        • JoeBoxer35J
          JoeBoxer35
          last edited by

          Alan,

          Thank you, I didn’t realize it was that easy. I saw the language menu and looked in “P” but that only had Pascal, Perl, etc. I didn’t see PHP at the bottom of that list.

          Thank you for helping me out so quickly !!! Much appreciated.

          Joe

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