Jump to content
gossamersolid

Arma 3 Notepad++ Syntax Highlighting

Recommended Posts

Its broken. Anytme i try to install it to my Notepad++ it says  "Fail to Import"

Share this post


Link to post
Share on other sites

Its broken. Anytme i try to install it to my Notepad++ it says  "Fail to Import"

 

You must be doing something wrong. It works as intended. Make sure you have the latest version of Notepad++ and that you are not importing the wrong file. You have to import SQF.xml from Language folder. The one from Auto folder is for auto-completion feature (you have to manually copy this one into "Notepad++\plugins\APIs".

Share this post


Link to post
Share on other sites
2 hours ago, magicsrp said:

how to deal with #ifndef ?

 

#ifndef - #else - #endif

What do you mean?

Share this post


Link to post
Share on other sites

Sorry for undetailed question about syntax highlighting color. 
I have some <#ifdef, #else, #endif> phrase and <#ifndef, #else, #endif> phrase. I.e. 

#ifdef blah-blah

   ... blah blah... ;
#else
   ... blah blah...;
#endif
The color for syntax highlighting is all Orange for '#ifdef', '#else' and '#endif'.

 

But, 

#ifndef __DEBUG__
... blah blah...;
#else
... blah blah.. ;
#endif

In this case, the color of '#else' and '#endif' is "Orange", but #ifndef is not.

So how to change the color of  #ifndef into Orange like the color of #else and #endif?

Share this post


Link to post
Share on other sites

Hi,

 

thanks for bringing this up. Updated syntax highlighting file with #ifndef. You can download new version here or manually add #ifndef under Keywords\7th group, either in SQF.xml (<Keywords name="Keywords7">#define #undef #ifdef #ifndef #else #endif #include</Keywords>) file or in Notepad++ menu (Language\Define your language..., select User language: SQF\Keywords Lists\7th group).

https://drive.google.com/open?id=0B4t_aUHHFVYLVElwVUVIdl9SMWs

10. April 2017
ChangeLog:
- added: #ifndef

Share this post


Link to post
Share on other sites
38 minutes ago, Janez said:

 


10. April 2017
ChangeLog:
- added: #ifndef

 

 

Thanks, but still different color from #else and #endif for me. is it my own problem?

Share this post


Link to post
Share on other sites
4 minutes ago, magicsrp said:

Thanks, but still different color from #else and #endif for me. is it my own problem?

 

#ifdef, #else and #endif are also defined in "Folding in code 2 style" for open, middle and close. You can either use Styler button to customize their color or remove them (Language\Define your language...\Folding in code 2 style\Styler).

Share this post


Link to post
Share on other sites

I found some missing commands that are listed Here but are not highlighted in Notepadd++:

  • lnbSetPictureRight
  • lnbSetPictureColor
  • lnbSetPictureColorRight
  • lnbSetPictureColorSelected
  • lnbSetPictureColorSelectedRight

That is not a complete list, but i can confirm that these commands exist, work and get recognized by the debug console (including info Popups). (And yes these are probably only used in very rare cases.)

 

P.S. also it looks like some of the 1.76 commands are missing too (allAirports, drawTriangle, selectRandomWeighted).

Edited by nesias
Forgot the P.S. part
  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

@nesias, thanks for reporting these. Missing 1.76 commands weren't listed yet when I updated the files. Be sure to report anything else missing.

 

Updated files can be found here:

https://drive.google.com/open?id=0B4t_aUHHFVYLTFJ6VlFTdjZZVEk

 

Quote

08. October 2017

ChangeLog:

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

  • Like 1

Share this post


Link to post
Share on other sites
1 minute ago, Janez said:

@nesias, thanks for reporting these. Missing 1.76 commands weren't listed yet when I updated the files. Be sure to report anything else missing.

 

Updated files can be found here:

https://drive.google.com/open?id=0B4t_aUHHFVYLTFJ6VlFTdjZZVEk

Well that was fast, if i find some more of them i will post a list here.

Thanks for the update btw.

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

×