Difference between revisions of "Template:Hc"

From ArchWiki
Jump to: navigation, search
(apply fix by User:Larivact to fix hc breakage in lists, see Template_talk:Hc#hc_breaks_in_lists)
m (style)
Line 2: Line 2:
'''Block code with header.'''
Block code with header.
* Use [[Template:bc]] for block code without header.
* Use [[Template:bc]] for block code without header.

Revision as of 14:25, 13 August 2018

This page is a template. It contains no Arch Linux-related information, but should be used as part of other articles. For more information, read Help:Template.

Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.

Feel free to voice your opinion regarding this template.

Block code with header.


  • 1 or head: the code in the top pane
  • 2 or output: the code in the bottom pane
{{hc|main.h|#include <stdio.h>}}
{{hc|head=main.h|output=#include <stdio.h>}}


#include <stdio.h>