unable to use line predefined variable in beanshell
Submitted by Wednesday, 17 May, 2006 - 03:18
on
Hi
I am a novice user and so far am pleasantly surprised with JEdit features. I face a small problem which I think is due to my lack of exp with this. I want to do a search and replace some string with a beanshell syntax.
for eg
search - (\d+)=(\w+)
replace - _1 + text.getCaretLine() + _2 (beanshell expression).
I get an error to the effect that text is undefined. For that matter, I get the same error even for the predefined var. "line". What is going on?
Any insight will be highly appreciated.
Thanks
SK.
I am a novice user and so far am pleasantly surprised with JEdit features. I face a small problem which I think is due to my lack of exp with this. I want to do a search and replace some string with a beanshell syntax.
for eg
search - (\d+)=(\w+)
replace - _1 + text.getCaretLine() + _2 (beanshell expression).
I get an error to the effect that text is undefined. For that matter, I get the same error even for the predefined var. "line". What is going on?
Any insight will be highly appreciated.
Thanks
SK.