Content deleted Content added
Stevebroshar (talk | contribs) →Examples: merge SQL into double dash section |
Stevebroshar (talk | contribs) →Examples: Merge xml, html, coldfusion |
||
Line 470:
"""Method docstring"""
</syntaxhighlight>
===Browser markup===
Markup languages in general vary in comment syntax, but some of the notable internet markup formats such as [[HTML]] and [[XML]] delimit a block comment with <code><!--</code> and <code>--></code> and provide no line comment support. An example in XML:
<syntaxhighlight lang="xml">▼
<!-- select the context here -->▼
<param name="context" value="public" />▼
</syntaxhighlight>▼
For compatibility with [[SGML]], double-hyphen (--) is not allowed inside comments.▼
[[ColdFusion]] provides syntax similar to the [[HTML comment]], but uses three dashes instead of two. CodeFusion allows for nested block comments.
===Double dash===
Line 620 ⟶ 633:
shut
exit
▲</syntaxhighlight>
</syntaxhighlight>
Line 748 ⟶ 746:
}
</syntaxhighlight>
▲<syntaxhighlight lang="xml">
▲<!-- select the context here -->
▲<param name="context" value="public" />
▲For compatibility with [[SGML]], double-hyphen (--) is not allowed inside comments.
==Security issues==
|