Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 1.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.
    • Tim WrightT
      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
        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors