Community
    • Login

    Function list for PowerShell

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 3.1k 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.
    • empiricaldatamanE
      empiricaldataman
      last edited by

      I’m using Notepad++ x64 version 7 and I have added the code below to my functionList.xml but is not working. Can someone provide some guidance as to what is wrong with my change. Under the Function List window all I see is the name of the file but none of the function names.

      <?xml version=“1.0” encoding=“UTF-8” ?>
      <NotepadPlus>
      <functionList>
      <associationMap>
      <association langID=“53” id=“posh_function”/>
      </associationMap>
      <parsers>
      <parser id=“posh_function” displayName=“PowerShell” commentExpr=“#.+|<#\s.+[^#]#>“>
      <function mainExpr=”^(?i)FUN\w+\s+\S
      ” displayMode=“$functionName”>
      <functionName>
      <nameExpr expr=“[^<#]*”/>
      </functionName>
      </function>
      </parser>
      </parsers>
      </functionList>
      </NotepadPlus>

      1 Reply Last reply Reply Quote 0
      • MAPJe71M
        MAPJe71
        last edited by

        Try this parser.

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