Big Idea: Don`t make it an AddOn to the editor. Instead, make it a stand alone program, that changes the new code into normal JASS, so you can just CnP.
use java?
not that i expect any of you to succeed...
<function name="aa" takes="nothing" returns="nothing">
<var type="unit" name="u"></var>
<u><CreateUnit>Player(0),'dumy',0,0,0</CreateUnit></u>
</function>
<function name="aa" takes="nothing" returns="nothing">
<var type="unit" name="u"></var>
<u><CreateUnit param=Player(0);'dumy';0;0;0 /></u>
</function>
function aa takes nothing returns nothing
local unit u
u = CreateUnit(xxxxxxx)
endfunction
//example;
globals
pool unit undead
endglobals