模板:Hc/doc:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
创建页面,内容为“{{DISPLAYTITLE:Template:hc}} Block code with header. * Use Template:bc for block code without header. * Use Template:ic for inline code. ==Usage== * {{ic…”
 
Kangkk​(留言 | 贡献)
无编辑摘要
第17行: 第17行:
==Example==
==Example==


{{hc|head=main.h|output=#include <stdio.h>}}</noinclude>
{{hc|head=main.h|output=#include <stdio.h>}}


<noinclude><!-- The &lt;noinclude>&lt;/noinclude> hack is needed to allow wiki markup inside the pre tags; reference: http://www.gossamer-threads.com/lists/wiki/mediawiki/118688#118688 --></noinclude>
<!-- 本行下加入模板(Documentation)的分类 -->
<includeonly>[[Category:工具模板]]</includeonly>
<!-- 本行下加入模板的子页面(Documentation/doc)分类 -->
<noinclude>[[Category:模板说明文件]]</noinclude>

2020年2月18日 (二) 14:48的版本


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=#include <stdio.h>}}

Example

main.h
#include <stdio.h>