Comment Syntax: Difference between revisions
Jump to navigation
Jump to search
m (→X: XML) |
|||
| Line 129: | Line 129: | ||
* [http://blog.csdn.net/haoel/article/details/5782907 五種應該避免的代碼注釋 - 陳皓專欄](簡體) | * [http://blog.csdn.net/haoel/article/details/5782907 五種應該避免的代碼注釋 - 陳皓專欄](簡體) | ||
* [https://en.wikipedia.org/wiki/Comment_(computer_programming) Comment (computer programming) - Wikipedia, the free encyclopedia] | * [https://en.wikipedia.org/wiki/Comment_(computer_programming) Comment (computer programming) - Wikipedia, the free encyclopedia] | ||
* [https://phpunit.de/manual/current/en/appendixes.annotations.html PHPUnit Manual – Appendix B. Annotations] | |||
[[Category:Web_Dev]] [[Category:Programming]] | [[Category:Web_Dev]] [[Category:Programming]] | ||
Revision as of 16:28, 26 August 2015
程式或網站服務設定檔的註解語法 (Comment syntax for programming languages or server configuration file) << 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, Java, JSP
Javascript Code: viewable when user view the HTML source code
//single line comment /* multiple lines */
//single line comment /* multiple lines */
M: MySQL
MySQL configuration file
#single line comment
P: Perl, PHP, Python
Perl Code[5]:
#single line comment
PHP Code: not viewable when user view the HTML source code[6]
# single line comment // another single line comment /* multiple lines */
php.ini
; single line comment
Python: The IPython Notebook[7][8]
# single line comment
''' This is the multiline comments. '''
S: SIKULI, SQL
SIKULI Code: (
multiple line comment is not supported for SIKULI IDE 1.x[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
<!-- multiple lines -->
References
further reading