Template:bc-hl
Appearance
This page is a template, editing it will affect all the pages that make use of it, so users should be especially careful when editing it. For more details on how to use templates see "A Quick Guide to Templates"
Block code without header. With highlighted syntax.
- Use Template:hc-hl for block code with header with highlighted syntax.
- Use Template:hc for block code with header.
- Use Template:ic for inline code.
Usage
1
orlang
: the language of code block, to apply highlighting2
orcode
: the code in the bottom pane
{{bc-hl|python| def quick_sort(arr): less = []}}
{{bc-hl|lang=python|code= def quick_sort(arr): less = []}}
Example
def quick_sort(arr):
less = []