• Login
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.9k 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.
  • T
    Tim Wright
    last edited by Jul 20, 2016, 7:37 PM

    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?

    C 1 Reply Last reply Jul 23, 2016, 12:27 AM Reply Quote 0
    • C
      Claudia Frank @Tim Wright
      last edited by Jul 23, 2016, 12:27 AM

      @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
      2 out of 2
      • First post
        2/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors