Markers and Line selection - Need Help.
Submitted by Friday, 15 April, 2011 - 16:45
on
Hello. I am a developer trying to switch from Years of using Multi-Edit/Brief to JEdit.
I need a macro that will select a range of lines so I can then TAB or Shift-Tab or Delete or search within the selected area.
My old macro would do this:
* Look for the ending tag, set a marker.
* Search backwards for the starting tag, set a marker.
* Go to the end marker and start line text selection
* Jump to starting marker so that all lines from End to Start are selected.
* Stop
This then returns control to me, but leaves many lines selected so I can indent or tab or delete or copy, etc.
I am looking through the textArea API. I see deprecated calls like "getMarkLine()" which look like the functions I want - but it's deprecated.
Basically - interacting with Markers and selecting text - I'm just not getting how to do it. Any advice would be helpful.
I need a macro that will select a range of lines so I can then TAB or Shift-Tab or Delete or search within the selected area.
My old macro would do this:
* Look for the ending tag, set a marker.
* Search backwards for the starting tag, set a marker.
* Go to the end marker and start line text selection
* Jump to starting marker so that all lines from End to Start are selected.
* Stop
This then returns control to me, but leaves many lines selected so I can indent or tab or delete or copy, etc.
I am looking through the textArea API. I see deprecated calls like "getMarkLine()" which look like the functions I want - but it's deprecated.
Basically - interacting with Markers and selecting text - I'm just not getting how to do it. Any advice would be helpful.