Template:Begin code: Difference between revisions

From Tripwire Interactive Wiki
Jump to navigation Jump to search
mNo edit summary
(Changed to monospaced font)
Line 1: Line 1:
<includeonly><{{pre}} id="{{{id}}}" style="font-size:1em;white-space:pre-wrap;word-wrap:break-word;tab-size: 4;"></includeonly><noinclude>==Description==
<includeonly><{{pre}} id="{{{id}}}" style="font-family: Courier New;font-size:1em;white-space:pre-wrap;word-wrap:break-word;tab-size: 4;"></includeonly><noinclude>==Description==
Provides a maximum-width code box with line wrap and a tab size of 4.
Provides a maximum-width code box with line wrap and a tab size of 4.



Revision as of 13:05, 23 November 2012

Description

Provides a maximum-width code box with line wrap and a tab size of 4.

Usage

{{Begin code}}
for (i = 0; i < AdditionalWeapons.Length; i++)
	WeaponList[WeaponList.Length] = AdditionalWeapons[i];
{{End code}}

Result:

for (i = 0; i < AdditionalWeapons.Length; i++)
	WeaponList[WeaponList.Length] = AdditionalWeapons[i];