Comment Syntax: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
(→‎C: CSS: add Conditional Comments for IE)
Line 8: Line 8:
*/
*/
</pre>
</pre>
[http://msdn.microsoft.com/en-us/library/ms537512(v=vs.85).aspx Conditional Comments] for {{IE}}


==D: DOS==
==D: DOS==

Revision as of 06:15, 24 July 2011

程式的註解語法 << Testing

C: CSS

CSS Code: viewable when user view the HTML source code

/* multiple lines
comments
*/

Conditional Comments for IE Browser msie.png

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