Template:hc
Appearance
Note 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.
A code block with header.
- Use Template:bc for a code block without header.
- Use Template:ic for inline code.
Known issue
Despite our best efforts, this template can not be used within a list (whether an ordered, unordered of definition list) nor indented using the MediaWiki markup.
Using raw HTML tags fixes this issue, but as their use is heavily discouraged (per Help:Style#HTML tags) editors should use a different layout for their content.
Usage
1
orhead
: the code in the top pane2
oroutput
: the code in the bottom pane
{{hc|main.h|#include <stdio.h>}}
{{hc|head=main.h|output=#include <stdio.h>}}
Example
main.h
#include <stdio.h>