oc_forums
2013-09-03 12:38:53 UTC
Hi,
From version 6.4.3 the new feature "function list" seems usable. ( http://notepad-plus-plus.org/features/function-list.html ). I want to list everything that is a procedure so I added in the file functionList.xml the following lines :
After the association map :
--------------------------
<association langID = "29" id="tcl_procedure"/>
And then, in the parser section, the lines :
--------------------------------------------
<parser id="tcl_procedure" displayName="Tcl source" commentExpr="(#)">
<function
mainExpr="^[\t ]*((proc)[\s]+)"
displayMode="$className->$functionName">
<functionName>
<nameExpr expr="([\w]|:)+"/>
</functionName>
<className>
<nameExpr expr="[\w_]+"/>
</className>
</function>
</parser>
But the display only gives :
--------------------------------
-- (Filename)
-----"proc" as a class
------- proc
------- proc
------- .... (there is a proc foreach procedure that has been found )
I cannot catch the name of the procedure.
Has anyone tried to use this feature ( with success ;-) ) ?
Thanks,
Olivier.
From version 6.4.3 the new feature "function list" seems usable. ( http://notepad-plus-plus.org/features/function-list.html ). I want to list everything that is a procedure so I added in the file functionList.xml the following lines :
After the association map :
--------------------------
<association langID = "29" id="tcl_procedure"/>
And then, in the parser section, the lines :
--------------------------------------------
<parser id="tcl_procedure" displayName="Tcl source" commentExpr="(#)">
<function
mainExpr="^[\t ]*((proc)[\s]+)"
displayMode="$className->$functionName">
<functionName>
<nameExpr expr="([\w]|:)+"/>
</functionName>
<className>
<nameExpr expr="[\w_]+"/>
</className>
</function>
</parser>
But the display only gives :
--------------------------------
-- (Filename)
-----"proc" as a class
------- proc
------- proc
------- .... (there is a proc foreach procedure that has been found )
I cannot catch the name of the procedure.
Has anyone tried to use this feature ( with success ;-) ) ?
Thanks,
Olivier.