模板:Hcdiff

来自康健生活
Kangkk​(留言 | 贡献)2020年2月21日 (五) 15:26的版本 (创建页面,内容为“Block code with header. * Use Template:bc for block code without header. * Use Template:ic for inline code. ==Usage== * {{ic|1}} or {{ic|head}}: the code…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

Block code with header.

Usage

  • 1 or head: the code in the top pane
  • 2 or output: the code in the bottom left pane
  • 3 or output2: the code in the bottom right pane
{{hc|main.h|#include <stdio.h>|#include2 <stdio2.h>}}
{{hc|head=main.h|output=<syntaxhighlight lang="bash">
#include <stdio.h></syntaxhighlight>|output2=<syntaxhighlight lang="bash">
#include2 <stdio2.h></syntaxhighlight>}}

Example

main.h
#include <stdio.h>