Reference for macros
Submitted by Thursday, 2 February, 2006 - 17:56
on
I miss some kind of reference for building macros in jEdit (I can't find it anywhere).. like what properties (if there's any) textArea has etc. Is there any reference on web?
My issue:
I have macro:
------------
textArea.collapseFold();
textArea.expandFold(true);
------------
I'd like first line to be exectuted only if focused line start of not folded content. I thought of something like:
------------------
if (!textArea.folded) {
textArea.collapseFold();
}
textArea.expandFold(true);
---------------------
Of course as I'm just guessing what properties or syntax to use.. it don't work.
Any help?
Thank you.
My issue:
I have macro:
------------
textArea.collapseFold();
textArea.expandFold(true);
------------
I'd like first line to be exectuted only if focused line start of not folded content. I thought of something like:
------------------
if (!textArea.folded) {
textArea.collapseFold();
}
textArea.expandFold(true);
---------------------
Of course as I'm just guessing what properties or syntax to use.. it don't work.
Any help?
Thank you.