I've noticed strange things happening to code in comments lately
Wrote the following comment
`"XS1".getBytes(Charset.forName("US-ASCII"))`
After adding the comment, this appeared however:
"XS1".getBytes(Charset.forName("US-ASCII";))
Just for fun I added a backslash before the "
, i.e.
`"XS1".getBytes(Charset.forName("US-ASCII\"))`
but this resulted in
"XS1".getBytes(Charset.forName("US-ASCII\"))
Also I observed code at the end of the link text breaking the link markup.
I checked the page containing the comment in Firefox and Chrome and both rendered the result the same...
What is happening there?
I noticed it here: Part of a string not getting inserted (not the exact code comment text, but I tested and deleted some versions of this comment, including the ones mentioned above.)
"XS1".getBytes(Charset.forName("US-ASCII"))
"You_should_totally_drop_that_and_use_jQuery""
\"
many times:\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"