change innerHTML to textContent where appropriate
fix syntax error when comment is the last symbol of a code snippet
fix error display
better fix for valid code bug
refactor Editor#setEditorContent