Template:hc

From HackRVA
Revision as of 23:20, 2 December 2024 by Dfire (talk | contribs) (Created page with "<noinclude>{{DISPLAYTITLE:Template:hc}} {{Template}} Block code with header. * Use Template:bc for block code without header. * Use Template:ic for inline code. ==Usage== * {{ic|1}} or {{ic|head}}: the code in the top pane * {{ic|2}} or {{ic|output}}: the code in the bottom pane <nowiki>{{hc|main.h|#include <stdio.h>}}</nowiki> <nowiki>{{hc|head=main.h|output=#include <stdio.h>}}</nowiki> ==Example== {{hc|head=main.h|output=#include <stdio.h>}}</noinclu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


 Note: This page is a template. It contains no HackRVA-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.

Usage

  • 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>}}

Example

main.h
#include <stdio.h>