Author: Sanjo
Author Website:

Version: 2020-06-04

Short description: Notepad++ syntax highlighting and auto-completion for SQF (the scripting language for the Arma games).

Date: 2020-06-04 13:12


Comments: (15)
Rating:



 



Notepad++ SQF Syntax Highlighting and Auto Completion

by
Nicolas & GossamerSolid & Sanjo & Bakerman & Janez


Description:
Notepad++ SQF Syntax Highlighting and Auto Completion

Created by: Sanjo (https://github.com/Sanjo)
Maintained by: BI Forums Community (https://forums.bohemia.net/forums/topic/138891-arma-3-notepad-syntax-highlighting/)
Hosted on Armaholic: https://www.armaholic.com/page.php?id=8680

Notepad++ syntax highlighting and auto-completion for SQF (the scripting language for the Arma games).
All known functions from Arma 3 (and previous titles) are supported. Code block folding is also supported.


Installation / Usage:
Syntax Highlighting:
1. Open Notepad++.
2. Navigate "Language >> User Defined Language >> Define your language... >> Import...".
NOTE: in case of updating, under "User language", select "SQF" and click "Remove" before continuing to import.
3. Import the file "Language and Theme\SQF.xml".
4. Restart Notepad++.

Auto Completion:
The steps in the section "Syntax Highlighting" are required for auto completion.

1. Copy the file "Auto Completion\SQF.xml" into "C:\Program Files (x86)\Notepad++\plugins\APIs" folder (or where you installed Notepad++).
NOTE: as of Notepad++ version 7.6.1, copy into "C:\Program Files (x86)\Notepad++\autoCompletion".
2. Restart Notepad++.
3. Open "Settings >> Preferences..." in Notepad++.
4. Go to the tab "Auto-Completion".
5. Choose following options:
- Enable "Enable auto-completion on each input"
- Choose "Function completion"
- Set "From 3rd character" (your preference)


How to modify styles?
You can modify the styles via "Language >> User Defined Language >> Define your language...". Under "User language", select "SQF".
By default, styles under "Folding & Default >> Default style and Folding in code 1" and "Operators & Delimiters >> Operators 1 and Delimiter 1" adopt global style.
This can also be achieved for any category by right clicking on either foreground or background color (diagonal lines will appear over color selection window).
Global style is defined in "Settings >> Style Configurator >> Global Styles >> Default Style".

NOTE: if you use custom style for SQF and do not want to edit the Notepad++ menus after every update, you can just copy <Styles>...</Styles> block of code from "Language and Theme\SQF.xml" into updated files and then import.
Default path for imported User Defined Languages: "%APPDATA%\Notepad++\userDefineLang.xml" (you can just copy this path into windows file explorer).


Credits & Thanks:
Originally By: Nicolas
Contributers:
- GossamerSolid
- Sanjo - https://github.com/Sanjo/npp-sqf


License:
Please feel free to modify/contribute.


Changelog:
2020-06-04
- added: | operator

2020-06-03
- added: Magic Variables to auto-completion
- added: PreProcessor Commands to auto-completion
- updated: ReadMe.txt with improved instructions, tips and links

2020-06-02
- added: all magic variables
- fixed: auto-completion
- improved: default color scheme that should adapt better to global settings
- improved: highliting groups

2020-06-01
- added: all scripting commands and functions up to 1.98 should be included

2020-04-15
- added: scripting commands and functions introduced with 1.98

2020-02-09
- added: bezierInterpolation scripting command

2019-11-06
- revision of all CBA functions was made, everything up to version 3.12.2 should be included

2019-10-31
- added: scripting commands introduced with 1.96

2019-07-29
- added: scripting commands and functions introduced with 1.94
- added: CBA functions up to version 3.12.0

2019-05-07
ChangeLog:
- added: scripting commands and functions introduced with 1.92

2019-03-27
- added: Warlords functions introduced with update 1.86

2018-10-04
- added: BIS_fnc_compatibleItems, BIS_fnc_limitWeaponItems.

2018-09-29
- added: BIS_fnc_holdActionRemove.

2018-09-28
- added: BIS_fnc_holdActionAdd.

2018-09-19
- added: enableWeaponDisassembly.

03. August 2018
- added: ctrlAnimateModel, ctrlAnimationPhaseModel, calculatePlayerVisibilityByFriendly and getCalculatePlayerVisibilityByFriendly.

05. May 2018
ChangeLog:
- added: scripting commands and functions introduced with updates 1.78-1.82

2017-10-08
- added: allAirports, drawTriangle, lnbSetPictureColor, lnbSetPictureColorRight, lnbSetPictureColorSelected, lnbSetPictureColorSelectedRight, lnbSetPictureRight and selectRandomWeighted

2017-09-11
ChangeLog:
- added: scripting commands and functions introduced with update 1.76

2017-06-22
ChangeLog:
- added: commands introduced with 1.72

2017-05-18
- added: commands introduced with 1.70
- fixed: typo (getCustomAimingCoef should be getCustomAimCoef)

2017-04-10
- added: #ifndef

2017-03-22
- added: commands introduced with 1.68

2017-02-12
- added: commands introduced with 1.66

2016-10-18
- added: few missing commands introduced with 1.58
- added: commands introduced with 1.60
- added: commands introduced with 1.62
- added: commands introduced with 1.64

2016-04-23
- Updated to ARMA3 1.58
- Added 3DEN functions (thanks R3vo)
- Added 'CBA_fnc_addKeybind' (thanks R3vo)

v18-02-2016
3DEN compatible update

v12-01-2015
Nexus compatible update is here. As always latest CBA functions are also included.

v08-27-2015
Supports all ARMA3 functions and script commands up to version 1.50, CBA functions are also included.

v07-23-2015
- Supports all current (2015/07/23) ARMA3 functions and script commands.
- CBA functions also included.

v05-14-2015
- Fixed "diag" script commands missing underscore.

v05-13-2015
- Supports all current (2015/05/13) ARMA3 functions and script commands. CBA functions also included for those that use it.

v12-18-2014
- This is the latest version with all the current (2014/12/18) ARMA3 functions and scripting commands.

v03-14-2013_2
- Support for single quoted strings added. (as suggested by SicSemperTyrannis)
- The global default background color is now used. (as suggested by SicSemperTyrannis)
- Added a folder "themes" for user contributed styles. Currently only the Zenburn one by SicSemperTyrannis.
If you have created good custom styles and want to share them, just send them to me and I will add them to the repository.

v03-16-2013
- Added auto completion and new styling

v03-14-2013
- Added all missing functions (based on wiki Scripting Commands)
- Added all BIS_fnc_* functions (in an extra keyword field)
- Added missing operators (the word versions too)
- Added support for block folding
- Added player, _x and _forEachIndex to magic words

v03062013
- added new Arma 3 Scripting commands

v1.2
- Allows block comments via /* */
- Added all known ArmA 3 commands
- Sides (blufor, opfor, independent, etc) are now represented as light blue, underlined and bolded

v1.1:
- added some missing operators
- colors slightly tweaked



- Notepad++


Forum topic:
- BI forums




Enable javascript to be able to download from Armaholic please!



Tags: Highlight,   Notepad++,   Plugin,   Syntax