Community
    • Login

    Function List: I can't get Function List to recognize file extension

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 2.1k 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.
    • Tim WrightT Offline
      Tim Wright
      last edited by

      I know regex, but haven’t even got to that part because I can not get a file extension to be recognized. If I open a *.c file or a *.xml, the function list component displays the root tree node with the file name and any function underneath.

      I can not get a squirrel-lang file, *.nut, to show up in the FunctionList. I tried

      <association ext=“.nut” id=“squirrel_function”/>
      <association userDefinedLangName=“squirrel” id=“squirrel_function”/>

      both lines or just the file extension tag, in both the FunctionList.xml in the %Appdata folder and the installation folder. I expect that even if my regex doesn’t work that the FunctionList will recognize the file extension and put the root tree node with the file name into the Function List component.

      Is that not the case?

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @Tim Wright
        last edited by

        @Tim-Wright

        I would have expected this to be a one liner

        <association ext=".nut" userDefinedLangName="squirrel" id="squirrel_function"/>
        

        and once defined in functionlist.xml did you restart npp?
        The above seems to work.

        Cheers
        Claudia

        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