Comment

1 Bash[ | ]

# comments
echo "Hello World!" # shows Hello World!
: <<'multiline_comment'
COMMENT LINE 1
COMMENT LINE 2
multiline_comment

2 C[ | ]

// inline comment
/* Comment */
/*
Comment
*/

3 C++[ | ]

// inline comment
/* Comment */
/*
Comment
*/

4 C#[ | ]

// inline comment
/* Comment */
/*
Comment
*/

5 CMD[ | ]

REM comment

6 HTML[ | ]

<!-- Comment -->

7 INI[ | ]

; Comment

8 Lua[ | ]

-- hello

--[[ hello
world
--]]

9 PHP[ | ]

bash style + c style

# inline comment
// inline comment
/* Comment */
/*
Comment
*/

10 Python[ | ]

# inline comment
"""
multiline Comment
"""

11 Perl[ | ]

# inline comment
=pod
multiline comment
=cut

12 Ruby[ | ]

# inline comment
=begin
multiline Comment
=end

13 SQL[ | ]

  • PostgreSQL
-- inline comment
/*
Comment
*/

14 VB[ | ]

inline only

'Comment
'Comment
Option Explicit
Private Sub Form_Load()
    MsgBox "Hello, World!" ' Comment
End Sub

15 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}