Jump to content
gossamersolid

Arma 3 Notepad++ Syntax Highlighting

Recommended Posts

This is brilliant. Just what was needed :) Scripts are now much easier to read and write.

Share this post


Link to post
Share on other sites
Yet another but this time hybrid A2 A3 syntax highlighter for Notepad ++ http://killzonekid.com/arma-2-arma-3-hybrid-syntax-highlighter-for-notepad/

Did you manage to implement the folding feature ? Planning it ? What about function references in Notepad++? Planned ?

reason i ask is is still use the very old Arma Script recoded plugin, which has all these nifty features, and a bit more, but is lacking in the AR;A 3 new commands section :-)

cheers

Sarge

Share this post


Link to post
Share on other sites

Great addon, been using it since I was born. :)

Good to have an updated list.

And I'd have a question. When I click on an .sqf in my filemanager, Notepad loads it okay, but I need to select language SQF for the first script to load my colors. Oherwise they are all black. What may cause this? (I'm also using the ancient ArmaScript plugin with project management and some handy functions)

Share this post


Link to post
Share on other sites

I have found a relatively easy way to open a script command's Biki webpage directly from Notepad++ by using the Language Help plugin:

1. Install the latest Language Help plugin for Notepad++ (currently 1.50) available on this page

2. Open Language Help options.

3. Click Add...

Example entry data:

Name:

Search Biki

Extension/file mask:

*.sqf;*.sqs;*.sqm

Extended help file path:

https://community.bistudio.com/wiki?title=Special%3ASearch&search=$word$

4. Set up other options to suit your preferences (either Ctrl+F1, context menus or toolbar icon)

The end result is right clicking on any script command in Notepad++, choose help, Biki page opens :)

Edited by ceeeb

Share this post


Link to post
Share on other sites
Did you manage to implement the folding feature ? Planning it ? What about function references in Notepad++? Planned ?

reason i ask is is still use the very old Arma Script recoded plugin, which has all these nifty features, and a bit more, but is lacking in the AR;A 3 new commands section :-)

cheers

Sarge

I tried folding but since {} is used for other things too it gets messed up. At the moment I'm quite happy how it turned out and the colour coding, so apart from updating it with new commands (which I already did BTW) I think I'll leave it alone.

Share this post


Link to post
Share on other sites

Thanks a lot for this. I always use Monokai though, so I changed the style a bit to be more like Monokai (A bit more different colors though) Here's a link

If you want to use that you can edit userDefineLanguage.xml and replace the default styles part for the SQF user language by this. Don't use notepad++ though. Just use regular notepad or so. If you use Notepad++ the file resets itself everytime you restart notepad++

Here is a screenshot

tEhHboS.jpg

Edited by Adanteh

Share this post


Link to post
Share on other sites

Scripting commands added into the list since my last post in this thread:

handgunMagazine

secondaryWeaponMagazine

primaryWeaponMagazine

removeAllHandgunItems

removeHandgunItem

removeAllPrimaryWeaponItems

canAdd

lbSetTooltip

getRepairCargo

getAmmoCargo

getFuelCargo

getArtilleryETA

difficulty

sendAUMessage

getDescription

removeAllActions

nearSupplies

simulWeatherSync

setCompassOscilation renamed -> setCompassOscillation

removeItemFromPrimaryWeapon renamed -> removePrimaryWeaponItem

Share this post


Link to post
Share on other sites
Scripting commands added into the list since my last post in this thread:

handgunMagazine

secondaryWeaponMagazine

primaryWeaponMagazine

removeAllHandgunItems

removeHandgunItem

removeAllPrimaryWeaponItems

canAdd

lbSetTooltip

getRepairCargo

getAmmoCargo

getFuelCargo

getArtilleryETA

difficulty

sendAUMessage

getDescription

removeAllActions

nearSupplies

simulWeatherSync

setCompassOscilation renamed -> setCompassOscillation

removeItemFromPrimaryWeapon renamed -> removePrimaryWeaponItem

Thanks for the update.

Any chance of getting nearEntities/Objects (and related commands) accepting an x and y format for detecting objects/entities in the area of a square/rectangle? I know triggers already sorta have this functionality available, but I don't want to use a trigger.

Share this post


Link to post
Share on other sites

Latest Notepadd++ has a nice new feature:

Enhance delimiter selection (Ctrl + Mouse Double Click) - add GUI settings in Preferences dialog.

By default it's set to ( and ) but if changed to { and } and tickmark multiline finally a fast and easy way to see if the pairs match.

Share this post


Link to post
Share on other sites

Is there a way for other files like sqm to use this sqf highlighting?

Share this post


Link to post
Share on other sites

Yes

Open "Language" menu

select "Define Your Language"

"User Defined Language" dialogue opens

In "User Language" drop down menu select "ArmaSQF" (or whatever your version is called)

Add SQM to the "Ext." field

Share this post


Link to post
Share on other sites

Is the following version is really the latest version of that plugin? I use it for a while and love it, but noticed that a lot of command are not recognized ...

Version 03-14-2013

- Added all missing functions (based on https://community.bistudio.com/wiki/...pting_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

Share this post


Link to post
Share on other sites
Is the following version is really the latest version of that plugin? I use it for a while and love it, but noticed that a lot of command are not recognized ...

I noticed that too .. but last update is a while ago but still i finde this plugin and Notpad the best!

So I just want give my graditude here for your awsome work GossamerSolid!

Share this post


Link to post
Share on other sites

This thread is pretty much dead, but what the hell.

Here's my update. All credits to Nicolas, GossamerSolid & Sanjo.

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

Download Link:

https://dl.dropboxusercontent.com/u/63047178/ARMA3%20Notepad%2B%2B.zip

http://www.armaholic.com/page.php?id=8680

Edited by Bakerman

Share this post


Link to post
Share on other sites
This thread is pretty much dead, but what the hell.

Here's my update. All credits to Nicolas, GossamerSolid & Sanjo.

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

Download Link:

https://dl.dropboxusercontent.com/u/63047178/ARMA3%20Notepad%2B%2B.zip

Much appreciated!

Share this post


Link to post
Share on other sites

I can't import the language. The error message is: "Fail to import". Does anyone know how to fix it?

Last Np++, copied the xml file on my desktop and imported in Np++

Share this post


Link to post
Share on other sites

It isn't the plugin from the OP, but it may be useful as an alternative (in fact, I originally found it from this thread over a year ago!):

Killzone_Kid's Np++ SQF language file

I find it works well, and he does continue to update it.

Share this post


Link to post
Share on other sites

Sounds awesome, gonna try this when im back home ;)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×