MOH Central

General Forums => Website Information and Support => Topic started by: Goober {sfx} on December 26, 2015, 01:48:15 PM

Title: Using Syntax Highlighter
Post by: Goober {sfx} on December 26, 2015, 01:48:15 PM
To use the syntax highlighter, which colors certain parts of text in the code box, use the following parameters (without the space between [ and code):

[ code=cpp]  TEXT HERE [/code]


The result is this:

Code (cpp) Select

GreenCorona local.origin:

local.AL_Number = randomint 70000
local.AL = spawn script_model model models/fx/corona_green_bright.tik
local.AL.targetname = ("ALLIES" + local.AL_Number)
$("ALLIES" + local.AL_Number) notsolid
$("ALLIES" + local.AL_Number).origin = local.origin
iprintlnbold_noloc "[Green Corona Added]"
$("ALLIES" + local.AL_Number) thread Flasher // Insert Girly Scream Here
end



Flasher:
self thread Marker
while(1)
{
self show
wait 1
self hide
wait 1
}
end