Comment Syntax: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
Line 58: Line 58:
</pre>
</pre>


SQL Command:
SQL Command / [http://dev.mysql.com/doc/refman/5.0/en/comments.html MySQL Comment Syntax (MySQL 5.0)]:
<pre>
<pre>
/* multiple  
/* multiple  
Line 64: Line 64:
*/
*/
</pre>
</pre>


==X: XML==
==X: XML==

Revision as of 11:34, 31 May 2011

程式的註解語法 << Testing

C: CSS

CSS Code: viewable when user view the HTML source code

/* multiple lines
comments
*/

D: DOS

DOS Command Code:

REM [comment]
ex: REM single line comment

H: HTML

HTML Code: viewable when user view the HTML source code

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

<!-- multiple 
lines -->

J: Javascript

Javascript Code: viewable when user view the HTML source code

//single line comment

/* multiple 
lines
*/

P: Perl, PHP

Perl Code:

#single line comment


PHP Code: not viewable when user view the HTML source code

# single line comment
// another single line comment

/* multiple 
lines
*/

S: SIKULI, SQL

SIKULI Code:

#single line comment

SQL Command / MySQL Comment Syntax (MySQL 5.0):

/* multiple 
lines
*/

X: XML

XML Code:

<!--
	multiple lines
-->

Reference