Summary of programming language annotations

Source: Internet
Author: User

Notes

The first class uses a double slash "//" comment line and a slash with an asterisk "/* Comment content */" to annotate multiple lines: C + +/C #/JAVA/PHP/JAVASCRIPT/CSS

The second class uses "<!--annotation content---" to annotate the content: only the programming languages with multiple lines of comment are: Html/xml

The third class uses the "#" Comment Line

  1. Python comments
      Line comment:# here is the comment
    Block Comment:"' Here is the note '
  2. JAVA/JAVASCRIPT/C/C + +/C #/Go/scala notes:
      
    Line Comment://Here is the comment
    Block Comment:/* Here is the comment * /
  3. Css
      
    Block Comment:/* Here is a comment, can be a single line or multiple lines * /

    ?

  4. HTML comments:
      
    Block notes:<!--here is a comment, one line can also be multiple lines--
  5. XML comment:
      
    Block notes:<!--here is a comment, one line can also be multiple lines--
  6. Mysql
      
    Line Comment:--here is the comment
    Line Note:#这里是注释
    Block Comment:/* Here is the comment * /
  7. SQL server/oracle Plsql:
      
    Line Comment:--here is the comment
    Block Comment:/* Here is the comment * /

    ?

Summary of programming language annotations

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.