cc – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix tip) |
Lou Montana (talk | contribs) m (Fix example) |
||
Line 78: | Line 78: | ||
<pre><code>{{cc| | <pre><code>{{cc| | ||
this | this | ||
code | code<br> | ||
is | is | ||
wonderful | wonderful |
Revision as of 00:56, 30 November 2020
Displays a code comment.
Usage
spaced /*
test1 test2 test3 */ |
spaced + line return /*
test1 test2 test3 */ |
code tag
|
code tag + line return
|
{{cc|message}}
- message: comment to display
Code | Result |
---|---|
{{cc}} | // -no comment defined- |
{{cc|this code is wonderful}} | // this code is wonderful |
<code>{{cc|this code is wonderful}}</code> |
/*
this code is wonderful */ |
<code>{{cc| this code<br> is wonderful }}</code> |
/*
this code is wonderful */ |
Source
<span style="color: #00F; font-style: italic"><nowiki>//</nowiki> {{Trim|{{{1|-no comment defined-}}}}}</span>