Thursday, 13 October 2016

XML : Notepad++ Custom Function List (xml) for CNC Programming

In the programming language that I use (Siemens Sinumerik 840 d sl), functions are displayed like this: %_N_CH2_SAW_MPF Now I would like to view all my functions in the function list at Notepad++. I added the following code into the functionlist.xml. But still, functions don't come up. Maybe I am doing something wrong with the code. I would be glad if someone could help me. Thanks!
<parser id="NC_function" displayName="NC_function" commentExpr="(;.*)?$"> <function mainExpr="^([%_N_]*[_A-Za-z])\w*:" displayMode="$functionName"> <functionName> <nameExpr expr="\w+"/> </functionName> </function> </parser>

No comments:

Post a Comment