I have a feeling it might have to do with the type of quotes used. It looks like there are what I call “curly quotes”.
In my experience, curly quotes look good in print media, but can cause problems when used in code.
True, the simple boring ASCII “straight quotes” may not look as nice, but for code they cause a lot fewer problems.
I don’t know where they are coming from (maybe they aren’t in the code and are being cooked in here?) but I think if you can not use them you’ll have less trouble.