03-25-2010, 08:27 PM
Can create macro that encloses nonselected parts of QM editor code into #if 0 ... #endif and runs the macro. But then will need to undo.
Other macro could undo it, even if edited. Add some special string to #if 0 and #endif to find what to undo.
#if 0 ;;undo
don't run this
don't run this
don't run this
#endif ;;undo
run this selected text
run this selected text
run this selected text
#if 0 ;;undo
don't run this
don't run this
don't run this
#endif ;;undo
-----------------------
Or insert goto.
goto undo1
don't run this
don't run this
don't run this
;undo1
run this selected text
run this selected text
run this selected text
goto undo2
don't run this
don't run this
don't run this
;undo2
Other macro could undo it, even if edited. Add some special string to #if 0 and #endif to find what to undo.
#if 0 ;;undo
don't run this
don't run this
don't run this
#endif ;;undo
run this selected text
run this selected text
run this selected text
#if 0 ;;undo
don't run this
don't run this
don't run this
#endif ;;undo
-----------------------
Or insert goto.
goto undo1
don't run this
don't run this
don't run this
;undo1
run this selected text
run this selected text
run this selected text
goto undo2
don't run this
don't run this
don't run this
;undo2
