Comment Syntax: Difference between revisions
Jump to navigation
Jump to search
m (Protected "Comment Syntax" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))) |
|||
| Line 76: | Line 76: | ||
</pre> | </pre> | ||
Python: [http://ipython.org/notebook.html The IPython Notebook]<ref>[http://nbviewer.ipython.org/urls/raw.github.com/ricardoduarte/python-for-developers/master/Chapter2/Chapter2_Syntax.ipynb Python for Developers - Chapter 2: Syntax]</ref> | Python: [http://ipython.org/notebook.html The IPython Notebook]<ref>[http://nbviewer.ipython.org/urls/raw.github.com/ricardoduarte/python-for-developers/master/Chapter2/Chapter2_Syntax.ipynb Python for Developers - Chapter 2: Syntax]</ref><ref>[http://stackoverflow.com/questions/7696924/multiline-comments-in-python Multiline comments in Python - Stack Overflow]</ref> | ||
<pre> | <pre> | ||
# single line comment | # single line comment | ||
</pre> | |||
<pre> | |||
''' | |||
This is the multiline | |||
comments. | |||
''' | |||
</pre> | </pre> | ||
Revision as of 16:47, 21 July 2014
程式的註解語法(Comment Syntax) << Testing
B: Bash shell
# single line comment
C: CSS
CSS Code: viewable when user view the HTML source code[1]
/* multiple lines comments */
Conditional Comments for IE
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:
#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
<!-- multiple lines -->
References
further reading