write 'undefined' instead of '' for undefined
clear selection when setting code into editor
indicate parse error in the editor