Template:ic-hl
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"
Inline code with highlighted syntax.
- Use Template:hc-hl for headed block code with highlighted syntax.
- Use Template:hc for headed block code (without syntax highlighting).
- Use Template:ic for inline code (without syntax highlighting).
Parameters
1
orlang
: the language of code block, to apply highlighting2
orcode
: the code that will be highlighted
Usage
Some text {{ic-hl|python|def quick_sort(arr):}} text continues.
Some text {{ic-hl|lang=python|code=def quick_sort(arr):}} text continues.
Result
Some text
def quick_sort(arr):
text continues.