fix highlighting and syntax errors