模板:Hcdiff/doc

来自康健生活
Kangkk​(留言 | 贡献)2020年2月21日 (五) 15:28的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

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>