"Comment"의 두 판 사이의 차이

 
(사용자 2명의 중간 판 2개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==Bash==
==Bash==
<source lang='bash'>
<syntaxhighlight lang='bash'>
# comments
# comments
echo "Hello World!" # shows Hello World!
echo "Hello World!" # shows Hello World!
7번째 줄: 7번째 줄:
COMMENT LINE 2
COMMENT LINE 2
multiline_comment
multiline_comment
</source>
</syntaxhighlight>


==C==
==C==
<source lang='c'>
<syntaxhighlight lang='c'>
// inline comment
// inline comment
/* Comment */
/* Comment */
16번째 줄: 16번째 줄:
Comment
Comment
*/
*/
</source>
</syntaxhighlight>


==C++==
==C++==
<source lang='c'>
<syntaxhighlight lang='c'>
// inline comment
// inline comment
/* Comment */
/* Comment */
25번째 줄: 25번째 줄:
Comment
Comment
*/
*/
</source>
</syntaxhighlight>


==C#==
==C#==
<source lang='c'>
<syntaxhighlight lang='c'>
// inline comment
// inline comment
/* Comment */
/* Comment */
34번째 줄: 34번째 줄:
Comment
Comment
*/
*/
</source>
</syntaxhighlight>


==CMD==
==CMD==
<source lang='bash'>
<syntaxhighlight lang='bash'>
REM comment
REM comment
</source>
</syntaxhighlight>


==HTML==
==HTML==
{{참고|HTML 주석}}
{{참고|HTML 주석}}
<source lang='html4strict'>
<syntaxhighlight lang='html4strict'>
<!-- Comment -->
<!-- Comment -->
</source>
</syntaxhighlight>


==INI==
==INI==
<source lang='ini'>
<syntaxhighlight lang='ini'>
; Comment
; Comment
</source>
</syntaxhighlight>


==Lua==
==Lua==
<source lang='lua'>
{{참고|Lua 주석}}
-- Comment
<syntaxhighlight lang='lua'>
</source>
-- hello
 
--[[ hello
world
--]]
</syntaxhighlight>


==PHP==
==PHP==
bash style + c style
bash style + c style
<source lang='php'>
<syntaxhighlight lang='php'>
# inline comment
# inline comment
// inline comment
// inline comment
66번째 줄: 71번째 줄:
Comment
Comment
*/
*/
</source>
</syntaxhighlight>


==Python==
==Python==
<source lang='python'>
<syntaxhighlight lang='python'>
# inline comment
# inline comment
"""
"""
multiline Comment
multiline Comment
"""
"""
</source>
</syntaxhighlight>


==Perl==
==Perl==
{{본문|Perl 주석}}
{{본문|Perl 주석}}
<source lang='Perl'>
<syntaxhighlight lang='Perl'>
# inline comment
# inline comment
=pod
=pod
multiline comment
multiline comment
=cut
=cut
</source>
</syntaxhighlight>


==Ruby==
==Ruby==
<source lang='Ruby'>
<syntaxhighlight lang='Ruby'>
# inline comment
# inline comment
=begin
=begin
multiline Comment
multiline Comment
=end
=end
</source>
</syntaxhighlight>


==SQL==
==SQL==
*PostgreSQL
*PostgreSQL
<source lang='sql'>
<syntaxhighlight lang='sql'>
-- inline comment
-- inline comment
/*
/*
Comment
Comment
*/
*/
</source>
</syntaxhighlight>


==VB==
==VB==
inline only
inline only
<source lang='vb'>
<syntaxhighlight lang='vb'>
'Comment
'Comment
'Comment
'Comment
111번째 줄: 116번째 줄:
     MsgBox "Hello, World!" ' Comment
     MsgBox "Hello, World!" ' Comment
End Sub
End Sub
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2021년 1월 3일 (일) 01:42 기준 최신판

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 }}