模板:Hcdiff

来自康健生活
Kangkk​(留言 | 贡献)2020年2月21日 (五) 15:27的版本
模板文档[查看] [编辑] [历史] [刷新]

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
{{hcdiff|main.h|#include <stdio.h>|#include2 <stdio2.h>}}
{{hcdiff|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>
#include2 <stdio2.h>