Function list for PowerShell
-
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> -
Try this parser.