Comment Syntax: Difference between revisions
Jump to navigation
Jump to search
(→X: XML) |
|||
| Line 27: | Line 27: | ||
</pre> | </pre> | ||
==J: Javascript== | ==J: Javascript, JSP== | ||
Javascript Code: '''viewable''' when user view the HTML source code | Javascript Code: '''viewable''' when user view the HTML source code | ||
<pre> | |||
//single line comment | |||
/* multiple | |||
lines | |||
*/ | |||
</pre> | |||
JSP<ref>[http://www.xyzws.com/JSPfaq/how-to-use-comments-in-jsp-pages/8 How to use comments in JSP pages?]</ref> | |||
<pre> | <pre> | ||
//single line comment | //single line comment | ||
Revision as of 18:52, 6 September 2013
程式的註解語法(Comment Syntax) << Testing
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
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
S: SIKULI, SQL
SIKULI Code:
#single line comment
SQL Command / MySQL Comment Syntax (MySQL 5.0)[6]:
/* multiple lines */
V: VBScript
VBScript Coding Conventions, VBScript Tutorial - Operators
' single line comment
X: XML
<!-- multiple lines -->
References
further reading