Dec. 22, 2012, 10:55 AM
Hi,
longtime user who got by modifying posted filters and creating simple website specific filters but now I have a question on how to use the counter filter.
I want to wrap PRE tags in a TABLE tag which would allow me to use javascript to copy specific "tables" to the clipboard. This simple filter works (improvements welcome of course)
But there can be more as one PRE on a page I need a unique ID added to the table so I thought of adding a counter like table id=pre1, table id=pre2 etc but I have no clue on how to use the $LST(Count). If I simply do this
I get ProxomiTron Application Error - Read Over=randomhugenumber msgboxes (which I will admit never had seen before)
Any guidance or tips would be appreciated.
longtime user who got by modifying posted filters and creating simple website specific filters but now I have a question on how to use the counter filter.
I want to wrap PRE tags in a TABLE tag which would allow me to use javascript to copy specific "tables" to the clipboard. This simple filter works (improvements welcome of course)
Code:
Match = "<pre\1/pre>"
Replace = "<table border="0"><tr><td><pre\1/pre></td></tr></table>"
Code:
Match = "<pre\1/pre>"
Replace = "<table border="0" id=pre($TST(($GET(n)+)=$LST(Count)|*)$SET(n=$GET(i)))><tr><td><pre\1/pre></td></tr></table>"
I get ProxomiTron Application Error - Read Over=randomhugenumber msgboxes (which I will admit never had seen before)
Any guidance or tips would be appreciated.