Template:Begin code: Difference between revisions

From Tripwire Interactive Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 4: Line 4:
== Usage ==
== Usage ==


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

Revision as of 13:12, 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];