(새 문서: {{#tag:syntaxhighlight|{{{code|{{{1}}}}}}|lang={{{lang|{{{2|text}}}}}}|class={{{class|}}}|id={{{id|}}}|style={{{style|}}}|inline=1}}<noinclude> {{설명문서}} </noinclude>) |
(차이 없음)
|
2024년 5월 18일 (토) 03:46 기준 최신판
{{{1}}}
짧은 텍스트를 <syntaxhighlight>를 이용하여 나타냅니다. 긴 문장의 경우 <pre>...</pre>나 <syntaxhighlight>...</syntaxhighlight>를 사용해야 합니다.
사용법[원본 편집]
{{code|본문}}
예시[원본 편집]
| 마크업 | 결과 |
|---|---|
다람쥐 {{code|헌 '''쳇바퀴'''}}에 타고파.
|
다람쥐 헌 '''쳇바퀴'''에 타고파. |
{{code |lang=cpp |int foo(const std::string& bar, const std::vector<long double*>& baz);}}
|
int foo(const std::string& bar, const std::vector<long double*>& baz); |
{{code |lang=javascript |code=var img = document.getElementsByTagName("img");}}
|
var img = document.getElementsByTagName("img");
|
다른 틀을 이 틀과 사용하는 경우, 해당 틀의 HTML 값이 나옵니다. 틀:Markup
같이 보기[원본 편집]