It’s because there is a “<” in the code that shouldn’t be there, maybe you pasted <?php by accident.
If you have edited the code in WP, you are not going to be able to make the change in there. You will have to overwrite the file using an FTP client.
I can’t really tell you the issue if I can’t see the code