When I am using the PHP opening and closing tags, I get this error. If I don't use the tags I don't get syntax highlighting.
It looks like you are using the php-cli. You do not need to use the opening and closing tags as the cli is expecting PHP code. If you were using the php enabled web server then you would need to use the tags.
@malvoliothegood Cool thanks!