Yes, combine the parameters into one httpRuntime statement.
The double dash in <!-- and --> are part of the syntax. My comment about double dash in comments was that you can't do something like this:
<!-- This is a comment--and it is completely illegal. -->
But that's not relevant to your problem here.