i have XML files with XML-Tags instead of Function Names or types.
like: <LOAD name="ld_something" into="my_varname" type="vartype">
or <WORK name="workqueue">
or <INCLUDE filename="filename.xml" section="some_definition" >
In the FunctionList plugin i use the following regexp parse rule to define those tags:
Function begin: <LOAD+name=\"
Function List Name: + (allowed characters)
Function end: \".*>
So it lists me all LOAD-Tags with their names.
How can i get this to work in Source Cookifier? And is it possible to parse the Document for all those into="…" parameters to have them schown as fields/variables.
try like this:
Regarding your "fields/variables" I didn't get you.
As an additional tagtype?
Or right behind your function tags as parameters?
So that you would have an output like this:
"ld_something (my_varname)" ?
*then try something like this:
Output: \1 (\3)
**if you want it to be parsed as "real" args:
thanks for the replies. I tried the different methods, but didn't get it to work at all.
Do i have to set the TagType to something specific?
Here is a file example, maybe you can figure out the solution. That would really make my life much easier!
<?xml version="1.0" encoding="UTF-8"?>
<LOAD name="ld_something" into="var_name1" type="GLOBAL">
<PARAMETER name="search" fieldname="tfsearch" fieldtype="TEXTFIELD"/>
Sorry, hehe.. I forgot about a bug which I fixed meanwhile but didn't release, yet.
You still can't use space chars (" ") in expressions, so simply try like this:
woohoo. work's like charm.
My new favourite NPP plugin :-D
thanks a lot!
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.