implementation of syntax highlighting refs closes #2