Difference between revisions of "Template:Hc"

(Create Hc template)
 
 
Line 2: Line 2:
 
<includeonly><pre<noinclude></noinclude> style="margin-bottom: 0;
 
<includeonly><pre<noinclude></noinclude> style="margin-bottom: 0;
 
border-bottom:none; padding-bottom:0.8em;">{{{head|{{{1|{{META Error}} }}} }}}</pre<noinclude></noinclude>>
 
border-bottom:none; padding-bottom:0.8em;">{{{head|{{{1|{{META Error}} }}} }}}</pre<noinclude></noinclude>>
<pre<noinclude></noinclude> style="margin-top: 0; border-top-style:dashed; padding-top: 0.8em">{{{output|{{{2|{{META Error}} }}} }}}</pre<noinclude></noinclude>></includeonly>
+
<pre<noinclude></noinclude> style="margin-top: 0; border-top-style:dashed; padding-top: 0.8em">{{{output|{{{2|{{META Error}} }}} }}}</pre<noinclude></noinclude>></includeonly><noinclude>
 
 
<noinclude>
 
  
 
Block code with header. Take from [wiki.archlinux.org].
 
Block code with header. Take from [wiki.archlinux.org].

Latest revision as of 20:31, 10 May 2021


Block code with header. Take from [wiki.archlinux.org].

Usage[edit source]

Specify code in top and bottom panes.

{{hc|main.h|#include <stdio.h>}}
{{hc|head=main.h|output=#include <stdio.h>}}

Example[edit source]

main.h
#include <stdio.h


No categories assignedEdit