Template:Code

From ConTeXt wiki
(Redirected from Template:code)

{{{1}}}


Print inline code, but wrapping it in a template makes changing easier. If the code contains any equal sign at all, use this idiom:

  {{code|stuff}}            % most cases
  {{code|1=location=stuff}} % if there is any equals sign at all in the code

or fall back on the ...</code> tags.