Template:Compact begin code

From Tripwire Interactive Wiki
Revision as of 13:40, 18 December 2012 by Benjamin (talk | contribs)
Jump to: navigation, search

Description

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

Usage

{{Compact 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];