Jump to content

Template:bc-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"

Block code without header. With highlighted syntax.

Usage

  • 1 or lang: the language of code block, to apply highlighting
  • 2 or code: 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 = []