I have a suggestion on how to improve the macro though:
You have two strings, a beforelabel and an afterlabel. You would not need 2 of them if you defined a property
with a parameter {0} in it and then used the jEdit.getProperty(propertyName, argumentList) overload.
You can see lots of examples of it in jEdit_en.props. This will make localizing your macro a bit easier.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
v1
Thomas, this looks good to me. Feel free to commit it directly to svn.
I have a suggestion on how to improve the macro though:
You have two strings, a beforelabel and an afterlabel. You would not need 2 of them if you defined a property
with a parameter {0} in it and then used the jEdit.getProperty(propertyName, argumentList) overload.
You can see lots of examples of it in jEdit_en.props. This will make localizing your macro a bit easier.
I see you just mimic'd an existing macro with that pattern. I guess I should fix that one too...
But I committed a fixed version of yours. #23111.