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

来自康健生活
Kangkk​(留言 | 贡献)
无编辑摘要
Kangkk​(留言 | 贡献)
无编辑摘要
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
{{DISPLAYTITLE:Template:hc}}
Block code with header.
Block code with header.


第13行: 第11行:
  <nowiki>{{hc|main.h|#include <stdio.h>}}</nowiki>
  <nowiki>{{hc|main.h|#include <stdio.h>}}</nowiki>


  <nowiki>{{hc|head=main.h|output=#include <stdio.h>}}</nowiki>
  <nowiki>{{hc|head=main.h|output=<syntaxhighlight lang="bash">
#include <stdio.h></syntaxhighlight>}}</nowiki>


==Example==
==Example==


{{hc|head=main.h|output=#include <stdio.h>}}
{{hc|head=main.h|output=<syntaxhighlight lang="bash">
#include <stdio.h></syntaxhighlight>}}


<!-- 本行下加入模板(Documentation)的分类 -->
<!-- 本行下加入模板(Documentation)的分类 -->

2020年2月21日 (五) 13:44的最新版本

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>