Jump to content

Template:ic-hl

From KDE Community Wiki
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 or lang: the language of code block, to apply highlighting
  • 2 or code: the code that will be highlighted

Usage example

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.