A port of Mono.TextEditor to Xwt.