<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://codex.uoaf.net/index.php?action=history&amp;feed=atom&amp;title=User%3AVKing%2FSQF_Highlighting</id>
	<title>User:VKing/SQF Highlighting - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://codex.uoaf.net/index.php?action=history&amp;feed=atom&amp;title=User%3AVKing%2FSQF_Highlighting"/>
	<link rel="alternate" type="text/html" href="http://codex.uoaf.net/index.php?title=User:VKing/SQF_Highlighting&amp;action=history"/>
	<updated>2026-05-10T12:55:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0-rc.0</generator>
	<entry>
		<id>http://codex.uoaf.net/index.php?title=User:VKing/SQF_Highlighting&amp;diff=1140&amp;oldid=prev</id>
		<title>VKing: Created page with &quot;SQF syntax highlighting for the [http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi MediaWiki GeSHi syntax highlighting extension]. Written by User:VKing| and i...&quot;</title>
		<link rel="alternate" type="text/html" href="http://codex.uoaf.net/index.php?title=User:VKing/SQF_Highlighting&amp;diff=1140&amp;oldid=prev"/>
		<updated>2015-01-11T11:54:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;SQF syntax highlighting for the [http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi MediaWiki GeSHi syntax highlighting extension]. Written by &lt;a href=&quot;/index.php/User:VKing&quot; title=&quot;User:VKing&quot;&gt;User:VKing&lt;/a&gt; and i...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;SQF syntax highlighting for the [http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi MediaWiki GeSHi syntax highlighting extension].&lt;br /&gt;
Written by [[User:VKing|VKing]] and implemented for the UO wiki by [[User:Verox|Verox]].&lt;br /&gt;
&lt;br /&gt;
Report any suggestions etc. in the [http://forums.unitedoperations.net/index.php/topic/24207-syntax-highlighting-for-sqf-is-implemented/ forum thread].&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;sqf&amp;quot;&amp;gt;&lt;br /&gt;
//Code goes here&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Additional parameters documented [http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi#Parameters here].&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sqf&amp;quot;&amp;gt;&lt;br /&gt;
// #define DEBUG_MODE_FULL&lt;br /&gt;
#include &amp;quot;script_component.hpp&amp;quot;&lt;br /&gt;
&lt;br /&gt;
PARAMS_1(_unit);&lt;br /&gt;
&lt;br /&gt;
private [&amp;quot;_markerData&amp;quot;,&amp;quot;_markerArray&amp;quot;,&amp;quot;_killedType&amp;quot;,&amp;quot;_pos&amp;quot;,&amp;quot;_dummy&amp;quot;];&lt;br /&gt;
&lt;br /&gt;
[fnord] call BIS_fnc_arrayPop;&lt;br /&gt;
&lt;br /&gt;
_markerData = _unit getVariable QGVAR(markerData);&lt;br /&gt;
_markerArray = _unit getVariable QGVAR(markerArray);&lt;br /&gt;
_killedType = _unit getVariable QGVAR(killedType);&lt;br /&gt;
_bft = _unit getVariable QGVAR(markerBFT);&lt;br /&gt;
&lt;br /&gt;
if (isNil &amp;quot;_markerData&amp;quot;) exitWith {&lt;br /&gt;
	TRACE_1(&amp;quot;No markerData for unit&amp;quot;,_unit);&lt;br /&gt;
	if (!isNil &amp;quot;_markerArray&amp;quot;) exitWith {&lt;br /&gt;
		_unit setVariable [QGVAR(markerArray),nil,true];&lt;br /&gt;
	};&lt;br /&gt;
};&lt;br /&gt;
if (isNil &amp;quot;_markerArray&amp;quot;) exitWith {&lt;br /&gt;
	TRACE_1(&amp;quot;No markerArray for unit&amp;quot;,_unit);&lt;br /&gt;
	_unit setVariable [QGVAR(markerData),nil,true];&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
EXPLODE_7(_markerData,_name,_mods,_type,_size,_scale,_visibleTo,_text);&lt;br /&gt;
_pos = getPos _unit;&lt;br /&gt;
&lt;br /&gt;
if (isNil &amp;quot;_killedType&amp;quot;) then {&lt;br /&gt;
	_killedType = GVAR(gKilledType);&lt;br /&gt;
};&lt;br /&gt;
TRACE_2(&amp;quot;&amp;quot;,_killedType,_bft);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sqf&amp;quot;&amp;gt;&lt;br /&gt;
_logic = _this select 0;&lt;br /&gt;
&lt;br /&gt;
//--- Execute Functions&lt;br /&gt;
if (isnil &amp;quot;bis_fnc_init&amp;quot;) then {&lt;br /&gt;
	_logicFnc = (group _logic) createunit [&amp;quot;FunctionsManager&amp;quot;,position player,[],0,&amp;quot;none&amp;quot;];&lt;br /&gt;
};&lt;br /&gt;
waituntil {!isnil &amp;quot;bis_fnc_init&amp;quot;};&lt;br /&gt;
&lt;br /&gt;
//--- Track List&lt;br /&gt;
_trackList = if (isnil {_logic getvariable &amp;quot;trackList&amp;quot;}) then {[]} else {_logic getvariable &amp;quot;trackList&amp;quot;};&lt;br /&gt;
_logic setvariable [&amp;quot;trackList&amp;quot;,_trackList,true];&lt;br /&gt;
&lt;br /&gt;
//--- Delay&lt;br /&gt;
_delay = if (isnil {_logic getvariable &amp;quot;delay&amp;quot;}) then {3} else {_logic getvariable &amp;quot;delay&amp;quot;};&lt;br /&gt;
_logic setvariable [&amp;quot;delay&amp;quot;,_delay,true];&lt;br /&gt;
&lt;br /&gt;
[_trackList,_delay] spawn bis_fnc_music;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>VKing</name></author>
		
	</entry>
</feed>