模板:Hc:修订间差异
来自康健生活
无编辑摘要 |
无编辑摘要 |
||
| (未显示同一用户的5个中间版本) | |||
| 第1行: | 第1行: | ||
<noinclude>{{Documentation}}</noinclude><includeonly><div | <templatestyles src="Hc/style.css" /><noinclude>{{Documentation}}</noinclude><includeonly><div class="templ-hc"><div class="unique-title">{{{head|{{{1|}}}}}}</div><div class="unique-content">{{{output|{{{2|}}}}}}</div></div></includeonly> | ||
<div | |||
2026年11月25日 (三) 14:28的最新版本
这个文档嵌入自模板:Hc/doc
。
Block code with header.
- Use Template:bc for block code without header.
- Use Template:ic for inline code.
Usage
1orhead: the code in the top pane2oroutput: the code in the bottom pane
{{hc|main.h|#include <stdio.h>}}
{{hc|head=main.h|output=<syntaxhighlight lang="bash">
#include <stdio.h></syntaxhighlight>}}
Example
main.h
#include <stdio.h>