Comment Syntax: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
mNo edit summary
(→‎X: XML: add [http://msdn.microsoft.com/zh-tw/library/ms748250.aspx XML 字元實體和 XAML])
Line 74: Line 74:


==X: XML==
==X: XML==
XML Code<ref>[http://www.tizag.com/xmlTutorial/xmlcomment.php xml comment]</ref>:
XML Code<ref>[http://www.tizag.com/xmlTutorial/xmlcomment.php xml comment]</ref> <ref>[http://msdn.microsoft.com/zh-tw/library/ms748250.aspx XML 字元實體和 XAML]</ref>:
<pre>
<pre>
<!--
<!--

Revision as of 15:07, 27 June 2012

程式的註解語法(Comment Syntax) << Testing

C: CSS

CSS Code: viewable when user view the HTML source code[1]

/* multiple lines
comments
*/

Conditional Comments for IE Browser msie.png

D: DOS

DOS Command Code[2]:

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[3]:

#single line comment


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

# 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)[5]:

/* multiple 
lines
*/

V: VBScript

VBScript Coding Conventions, VBScript Tutorial - Operators

' single line comment

X: XML

XML Code[6] [7]:

<!--
	multiple lines
-->

References