Implement simple pretty-printing in editor