According to the color-coding of my code in EditPlus, it seems to be the equals sign in the dynamic URL that is causing the problems. Without these, eg. with a url to a static page, the color-coding appears fine.
Maybe there is an alternative to get around this issue? Another symbol? Escaping...