Comment Syntax: Difference between revisions

Jump to navigation Jump to search
1,080 bytes added ,  28 March 2022
m
(+R)
 
(13 intermediate revisions by the same user not shown)
Line 8: Line 8:




== B: Bash shell ==
== B: Bash (shell script) ==
[http://en.wikipedia.org/wiki/Bash_(Unix_shell) Bash (Unix shell)]
[http://en.wikipedia.org/wiki/Bash_(Unix_shell) Bash (Unix shell)]
<pre>
<pre>
Line 14: Line 14:
</pre>
</pre>


==C: CSS==
== C: CSS, Cron ==
CSS Code: '''viewable''' when user view the HTML source code<ref>[http://www.w3schools.com/css/css_syntax.asp CSS Syntax]</ref>
CSS Code: '''viewable''' when user view the HTML source code<ref>[http://www.w3schools.com/css/css_syntax.asp CSS Syntax]</ref>
<pre>
<pre>
Line 24: Line 24:
[http://msdn.microsoft.com/en-us/library/ms537512(v=vs.85).aspx Conditional Comments] for {{IE}}
[http://msdn.microsoft.com/en-us/library/ms537512(v=vs.85).aspx Conditional Comments] for {{IE}}


==D: DOS==
[https://zh.wikipedia.org/wiki/Cron Cron] jobs code<ref>[https://www.webhostingtalk.com/showthread.php?t=619350 How to comment cron job? | Web Hosting Talk]</ref>
<pre>
# single line
# 0 0 * * 0 execute some script weekly
</pre>
 
==D: DOS, Dockerfile ==
DOS Command Code<ref>[http://www.csulb.edu/~murdock/rem.html DOS Command:  REM]</ref>:
DOS Command Code<ref>[http://www.csulb.edu/~murdock/rem.html DOS Command:  REM]</ref>:
<pre>
<pre>
REM [comment]
REM [comment]
ex: REM single line comment
ex: REM single line comment
</pre>
Dockerfile or [https://docs.docker.com/compose/compose-file/ compose file] (docker-compose.yml)
<pre>
# single line comment
</pre>
</pre>


Line 63: Line 75:
MySQL configuration file
MySQL configuration file
<pre>
<pre>
#single line comment
# single line comment
 
-- single line comment. Note there are one space between '--' with 'single line comment'.
 
/* multiple
  lines
  comments
*/
</pre>
</pre>


==P: Perl, PHP, Python==
==P: Perl, PHP, Postman, Python==
Perl Code<ref>[http://www.tizag.com/perlT/perlsyntax.php perl - syntax]</ref>:
Perl Code<ref>[http://www.tizag.com/perlT/perlsyntax.php perl - syntax]</ref>:
<pre>
<pre>
#single line comment
# single line comment
</pre>
</pre>


Line 87: Line 106:
<pre>
<pre>
; single line comment
; single line comment
</pre>
Postman<ref>[https://github.com/postmanlabs/postman-app-support/issues/3358 Feature request: Raw body editor JSON comment · Issue #3358 · postmanlabs/postman-app-support · GitHub]</ref>
<pre>
// single line comment
</pre>
</pre>


Line 102: Line 126:


== R ==
== R ==
[https://www.r-project.org/ R: The R Project for Statistical Computing]
[https://www.r-project.org/ R: The R Project for Statistical Computing]: [https://google.github.io/styleguide/Rguide.xml#comments Commenting Guidelines]


<pre>
<pre>
#single line comment
# single line comment
</pre>
</pre>


[http://stackoverflow.com/questions/1231195/multiline-comment-workarounds r - Multiline Comment Workarounds? - Stack Overflow]
Multiline lines comment : Use [https://www.rstudio.com/ RStudio] ([https://support.rstudio.com/hc/en-us/articles/200484448-Editing-and-Executing-Code Editing and Executing Code – RStudio Support]) to comment/uncomment the selected code. [http://stackoverflow.com/questions/1231195/multiline-comment-workarounds r - Multiline Comment Workarounds? - Stack Overflow]


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


Anonymous user

Navigation menu