Comment Syntax: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
mNo edit summary
Line 89: Line 89:


==S: SIKULI, SQL==
==S: SIKULI, SQL==
[http://groups.csail.mit.edu/uid/sikuli/ SIKULI] Code:
[http://groups.csail.mit.edu/uid/sikuli/ SIKULI] Code: (multiple line comment is no supported[https://bugs.launchpad.net/sikuli/+bug/585342])
<pre>
<pre>
#single line comment
#single line comment

Revision as of 13:52, 30 July 2015

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

B: Bash shell

Bash (Unix shell)

# single line comment

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, JSP

Javascript Code: viewable when user view the HTML source code

//single line comment

/* multiple 
lines
*/


JSP[3]

//single line comment

/* multiple 
lines
*/

P: Perl, PHP, Python

Perl Code[4]:

#single line comment


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

# single line comment
// another single line comment

/* multiple 
lines
*/


php.ini

; single line comment

Python: The IPython Notebook[6][7]

# single line comment
'''
This is the multiline
comments.
'''

S: SIKULI, SQL

SIKULI Code: (multiple line comment is no supported[1])

#single line comment

SQL Command / MySQL 5.1 Comment Syntax:

-- single line comment

/* multiple 
lines
*/

V: VBScript

VBScript Coding Conventions, VBScript Tutorial - Operators

' single line comment

X: XML

XML Code[8] [9]:

<!--
	multiple lines
-->

References

further reading