模板:Hcdiff:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
无编辑摘要
Kangkk​(留言 | 贡献)
无编辑摘要
 
第1行: 第1行:
<templatestyles src="Hcdiff/style.css" /><noinclude>{{Documentation}}</noinclude><includeonly><div class="tmpl--hcdiff__box"><pre<noinclude></noinclude> class="tmpl--hcdiff__box-header">{{{head|{{{1|{{META Error}}}}}}}}</pre<noinclude></noinclude>><!-- The line break is needed, otherwise the wiki will generate extraneous paragraphs inside the 2nd pre block -->
<templatestyles src="Hcdiff/style.css" /><noinclude>{{Documentation}}</noinclude><includeonly><div class="templ--hcdiff__box"><pre<noinclude></noinclude> class="templ--hcdiff__box-header">{{{head|{{{1|{{META Error}}}}}}}}</pre<noinclude></noinclude>><!-- The line break is needed, otherwise the wiki will generate extraneous paragraphs inside the 2nd pre block -->
<div class="tmpl--hcdiff__box-content"><div class="tmpl--hcdiff__box-content_left">{{{output|{{{2|{{META Error}}}}}}}}</div><div class="tmpl--hcdiff__box-content_right">{{{output2|{{{3|{{META Error}}}}}}}}</div></div></div></includeonly>
<div class="templ--hcdiff__box-content"><div class="templ--hcdiff__box-content_left">{{{output|{{{2|{{META Error}}}}}}}}</div><div class="templ--hcdiff__box-content_right">{{{output2|{{{3|{{META Error}}}}}}}}</div></div></div></includeonly>

2022年12月16日 (五) 03:15的最新版本

模板文档[查看] [编辑] [历史] [刷新]

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>