Comment Syntax: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
No edit summary
(add perl & sql)
Line 24: Line 24:
<pre>
<pre>
//single line comment
//single line comment
</pre>
Perl Code:
<pre>
#single line comment
</pre>
</pre>


Line 40: Line 45:
#single line comment
#single line comment
</pre>
</pre>
SQL Command:
<pre>
/* multiple
lines
*/
</pre>


XML Code:
XML Code:
Line 49: Line 63:


Reference
Reference
* [http://dev.mysql.com/doc/refman/5.0/en/comments.html MySQL ::  MySQL 5.0 Reference Manual :: 8.6 Comment Syntax]
* [http://www.csulb.edu/~murdock/rem.html DOS Command:  REM]
* [http://www.csulb.edu/~murdock/rem.html DOS Command:  REM]
* [http://www.tizag.com/phpT/comment.php using comments in php]
* [http://www.tizag.com/phpT/comment.php using comments in php]
* [http://www.tizag.com/perlT/perlsyntax.php perl - syntax]
* [http://www.tizag.com/xmlTutorial/xmlcomment.php xml comment]
* [http://www.tizag.com/xmlTutorial/xmlcomment.php xml comment]

Revision as of 14:25, 22 November 2010

CSS Code:

/* multiple lines
comments
*/

DOS Command Code:

REM [comment]
ex: REM single line comment

HTML Code:

<!-- This is an HTML Comment -->

<!-- multiple 
lines -->


Javascript Code:

//single line comment

Perl Code:

#single line comment


PHP Code:

//single line comment

/* multiple 
lines
*/

SIKULI Code:

#single line comment

SQL Command:

/* multiple 
lines
*/


XML Code:

<!--
	multiple lines
-->

Reference