模板:Hc:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
无编辑摘要
Kangkk​(留言 | 贡献)
无编辑摘要
 
(未显示同一用户的10个中间版本)
第1行: 第1行:
<noinclude>{{Documentation}}</noinclude><includeonly><pre style="margin-bottom: 0; border-bottom:none; padding-bottom:0.8em;background-color: #ffffff;" <noinclude></noinclude>>{{{head|{{{1|{{META Error}}}}}}}}</pre<noinclude></noinclude>><!-- The line break is needed, otherwise the wiki will generate extraneous paragraphs inside the 2nd pre block --><pre<noinclude></noinclude> style="margin-top: 0; border-top-style:dashed; padding-top: 0.8em;">{{{output|{{{2|{{META Error}}}}}}}}</pre<noinclude></noinclude>></includeonly>
<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>

2026年11月25日 (三) 14:28的最新版本

模板文档[查看] [编辑] [历史] [刷新]

Block code with header.

Usage

  • 1 or head: the code in the top pane
  • 2 or output: 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>