Code formating is something I've needed since the start.
Turns out, theres an intent for that.
document.execCommand("formatBlock", false, "pre");
and done.