Skip to content

Instantly share code, notes, and snippets.

@mojombo
Created January 2, 2011 01:58
Show Gist options
  • Save mojombo/762200 to your computer and use it in GitHub Desktop.
Save mojombo/762200 to your computer and use it in GitHub Desktop.
XML Comments Suck
<container>
<thing />
<!--
I think this is the least horrible way to format XML comment
blocks. Even though it wastes two lines, at least it doesn't
involve tons of indenting or horribly misaligned edges.
-->
<fooblah size="10" count="alot" />
</container>
@veganstraightedge
Copy link

I agree. I do the same thing when I need to write lengthy HTML comments.

@benatkin
Copy link

benatkin commented Jan 2, 2011

Tell me about it. At least it has support for comments, though! @getify has been trying to get people interested in a dialect of JSON that allows comments. That wouldn't go far enough for me - I want multiline strings.

@kevinsawicki
Copy link

I agree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment