SQF Highlighter – Extension
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page creation) |
Lou Montana (talk | contribs) m (Fix table) |
||
Line 9: | Line 9: | ||
|- | |- | ||
! style="vertical-align: top" | Version | ! style="vertical-align: top" | Version | ||
| | | 0.5b (continuous updates as of 2022-03-14) | ||
|- | |||
! style="vertical-align: top" | Release Date | |||
| 2022-03-12: First upload | |||
|- | |||
! style="vertical-align: top" | Project Start | |||
| 2022-03-08: Project start | |||
|} | |} | ||
== Installation == | == Installation == |
Revision as of 20:31, 14 March 2022
SQF Highlighter | |
---|---|
Description | Highlights and links SQF commands and functions |
Author | Lou Montana |
Version | 0.5b (continuous updates as of 2022-03-14) |
Release Date | 2022-03-12: First upload |
Project Start | 2022-03-08: Project start |
Installation
- Unzip the directory to wiki/extensions/SQFHighlighter
- Add
wfLoadExtension('SQFHighlighter');
to LocalSettings.php - There are no settings.
Usage
Using <sqf> tags will auto-generate syntax highlighting and links to the pages.
Code | Result |
---|---|
<sqf/> |
-no SQF code provided-
|
<sqf></sqf> |
-no SQF code provided-
|
<sqf>hint "It Works!";</sqf> |
hint "It Works!"; |
<sqf> // your code here hint "good!"; </sqf> |
|
<sqf> #define FADE_IN 3 if (not alive player) then { hint "You are dead"; cutText ["", "Black", playerRespawnTime]; }; waitUntil { alive player }; sleep 3; cutText ["Welcome!", "Black in", FADE_IN]; </sqf> |