Template:Code

From UE4: Community Wiki
Jump to: navigation, search

{{{1}}}

Usage[edit]

All this template does is map the inline <syntaxhighlight inline=1> which also uses <code> at display time.
Has the id crepl for CSS purposes so that I can differentiate between code tags usages, block vs inline should look different.
Sometimes you may want to have options for which color of highlight you would like to use in cases where you need to differentiate between types.

Example[edit]

{{code|Your code}}
If you would like to highlight Your code, this is a helpful way to do it.

Code Blocks[edit]

<syntaxhighlight lang="C++">/* is used for blocks of code in any language */</syntaxhighlight>

/* is used for blocks of code in any language */

No Wiki[edit]

Needs embedded nowiki tags (if possible) so it can be used for all instances of code text.