Bill Fenner wrote: > > This is possible to some extent from a macro. For example, I have the > following macro to insert an <?rfc ?> PI with the content > include='reference.' and set the cursor position immediately following > the period: > > > <command name="xml2rfc.addRFCInclude"> > <macro undoable="true"> > <sequence> > <choice> > <command name="insertNode" parameter="piInto[implicitElement] rfc" > /> > <command name="insertNode" parameter="piAfter[implicitNode] rfc" /> > <command name="insertNode" parameter="piAfter[implicitElement] rfc" > /> > </choice> > <command name="insertString" parameter="include='reference.'" /> > <set variable="dotOffset" expression="19" /> > </sequence> > </macro> > </command> > > (The "choice" there is to try to get the right position of the PI > depending on where the cursor is and what's selected.)
Excellent macro-command: useful, short, simple, readable.

