Got it, it was WordPad giving me a formatting error. Re-did the lines and it works perfectly now. Thanks for leading me towards that Chris!
Just opened in DW, and there was no syntax highlighting.
Could the problem be opening it in Wordpad(thought it was notepad originally, but turns out it’s wordpad)?