模板:Hc:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
无编辑摘要
Kangkk​(留言 | 贡献)
无编辑摘要
第1行: 第1行:
<noinclude>{{Documentation}}</noinclude><includeonly><pre <noinclude></noinclude> style="margin-bottom: 0; border-bottom:none; padding-bottom:0.8em;background-color: #ffffff;">{{{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>
<noinclude>{{Documentation}}</noinclude><includeonly><pre <noinclude></noinclude> style="margin-bottom: 0; border-bottom:none; padding-bottom:0.8em;background-color: #ffffff;">
{{{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>

2020年2月19日 (三) 05:36的版本

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

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

<pre <noinclude></noinclude> style="margin-bottom: 0; border-bottom:none; padding-bottom:0.8em;background-color: #ffffff;">

main.h
#include <stdio.h>