• Login
Community
  • Login

Setting a user file extension is not working

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
style colouringuser-defined
7 Posts 4 Posters 526 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.
  • D
    Daniel Essin
    last edited by Dec 1, 2020, 9:50 PM

    Hello all,
    I see that this question was asked in 2017 but never answered.

    The problem apparently still exists because I “added” ino as a user ext to the c++ entry (Arduino c files have that extension) but the text does not color code.

    This should either be fixed so that it works or removed if it can never possibly work

    – or –

    would someone please respond with instructions about how to make it work?

    Thank you

    A E 3 Replies Last reply Dec 1, 2020, 9:56 PM Reply Quote 0
    • A
      Alan Kilborn @Daniel Essin
      last edited by Dec 1, 2020, 9:56 PM

      @Daniel-Essin

      I see that this question was asked in 2017 but never answered.

      Oh yea, where was that? Link?

      I “added” ino as a user ext to the c++ entry (Arduino c files have that extension) but the text does not color code.

      Works for me, in N++ 7.9.1:

      883e8e96-822a-4ccc-8ad6-c0bf5424300d-image.png

      6195edc7-45dc-4815-979d-e5d3201c662f-image.png

      1 Reply Last reply Reply Quote 1
      • A
        Alan Kilborn @Daniel Essin
        last edited by Alan Kilborn Dec 1, 2020, 10:03 PM Dec 1, 2020, 10:01 PM

        @Daniel-Essin

        would someone please respond with instructions about how to make it work?

        Sorry, I really don’t have any.
        I just put ino in the box that I circled in red, and it works.

        A post from the future:
        @Ekopalypse I didn’t even notice that that is a default extension! :-)
        I didn’t scroll that “Default ext” field to the right!

        1 Reply Last reply Reply Quote 2
        • E
          Ekopalypse @Daniel Essin
          last edited by Dec 1, 2020, 10:02 PM

          @Daniel-Essin

          that is even a default extension

          84cae3f6-9e61-45a1-86f0-a3c2abda8348-image.png

          P 1 Reply Last reply Dec 1, 2020, 10:09 PM Reply Quote 3
          • P
            PeterJones @Ekopalypse
            last edited by Dec 1, 2020, 10:09 PM

            @Ekopalypse said in Setting a user file extension is not working:

            that is even a default extension

            I was curious: it’s been in that list since this Feb 2017 commit , which appears to have been included in released versions starting in v7.3.2.

            @Daniel-Essin : what version of Notepad++ are you using? (Supply ?-menu, Debug Info). Because you shouldn’t need to add ino to the list for c++, unless you are in an ancient version, or unless one or more of your config files is corrupt or hasn’t been updated since before 2017!

            1 Reply Last reply Reply Quote 2
            • A
              Alan Kilborn
              last edited by Dec 2, 2020, 1:20 AM

              Curious about something. What if you didn’t want .ino extensions treated this way?
              Possible to “get it out” from under C++?
              I can’t think of a use-case where I’d want to do this, but is it possible?

              P 1 Reply Last reply Dec 2, 2020, 2:00 AM Reply Quote 2
              • P
                PeterJones @Alan Kilborn
                last edited by Dec 2, 2020, 2:00 AM

                @Alan-Kilborn said in Setting a user file extension is not working:

                is it possible

                Yes. Either put it as a UDL extension, or remove it from langs.xml

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