basic syntax highlighting on text input