Comment Syntax: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
(add VBScript)
Line 68: Line 68:


==V: VBScript ==
==V: VBScript ==
[http://www.tizag.com/vbscriptTutorial/vbscriptoperators.php VBScript Tutorial - Operators]
[http://msdn.microsoft.com/en-us/library/ektke1b0(VS.85).aspx VBScript Coding Conventions], [http://www.tizag.com/vbscriptTutorial/vbscriptoperators.php VBScript Tutorial - Operators]
<pre>
<pre>
' single line comment
' single line comment

Revision as of 16:14, 24 November 2011

程式的註解語法(Comment Syntax) << 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
*/

V: VBScript

VBScript Coding Conventions, VBScript Tutorial - Operators

' single line comment

X: XML

XML Code:

<!--
	multiple lines
-->

Reference