NetXMS Support Forum

English Support => General Support => Topic started by: tomaskir on August 15, 2014, 04:52:51 PM

Title: NetXMS NXSL - syntax highlight and calltips (tooltips)
Post by: tomaskir on August 15, 2014, 04:52:51 PM
Hey guys,

I have created a syntax highlighter and calltips (tooltips) for Notepad++ for NetXMS's scripting language NXSL.

How the calltips work:
(http://s25.postimg.org/5ja8i8zj3/nsxl_calltips.png)

How the highlighting works:
(http://s25.postimg.org/45ilmy09r/nsxl_syntax_highlight.png)

You can find all the necessary info (and files for download) at:
https://github.com/tomaskir/netxms-notepad_pp.git

Regards,

tom
Title: Re: NetXMS Notepad++ syntax highlight
Post by: tomaskir on August 16, 2014, 03:52:11 PM
Changelog:

v2016010701:
  Added new functions from 2.0 release to syntax highlight and calltips
  Fixed cosmetic errors in Calltips
  Fixed multi-line comments not being styled
  Fixed escaped quote breaking styling in strings
  Files moved to GitHub

v2014102202:
  Added a few missing calltips

v2014102201:
  Added function calltips!
  Added new functions from 1.2.17

v2014091901:
  Fixed auto extention handling (.nxs - for real this time)
  Added .xml extension to the file for easier import into Notepad++

v2014081801:
  Fixed auto extention handling (broken in v2014081701)
  Fixed some keywords missing (broken in v2014081701)

v2014081701:
  Added missing keywords provided by Alex Kirhenshtein

v2014081601:
  Added auto extention handling (.nxs)
  Added a few missing keywords and operators

v2014081501:
  Original syntax file
Title: Re: NetXMS Notepad++ syntax highlight
Post by: Alex Kirhenshtein on August 16, 2014, 10:37:42 PM
Thank you for contributing, awesome work.

I did a quick check, and it seems that you missed couple of functions:

FindAllDCIs
GetDCIValues
_exit (instead of "exit")

There is also "nxinstall" command line tool, which provide couple more functions. I don't think that anyone except us use this tool, but here is list, just for the reference:

CopyFile
DeleteFile
RenameFile
access
chdir
fclose
feof
fgets
fopen
fputs
mkdir
rmdir
system
Title: Re: NetXMS Notepad++ syntax highlight
Post by: tomaskir on August 17, 2014, 01:09:30 PM
Thanks for listing those!

Updated the syntax file in the attachement of the main post :)
Title: Re: NetXMS NXSL - syntax highlight and calltips (tooltips)
Post by: tomaskir on October 22, 2014, 01:56:06 PM
With todays update:
Added support for NXSL function calltips in Notepad++.

If anyone gets a chance to try this, let me know if it works :)
Title: Re: NetXMS NXSL - syntax highlight and calltips (tooltips)
Post by: Riley on December 27, 2015, 05:26:49 PM
Quote from: tomaskir on October 22, 2014, 01:56:06 PMWith todays update:
Added support for NXSL function calltips in Notepad++.

If anyone gets a chance to try this, let me know if it works :)

Quote from: tomaskir on August 16, 2014, 03:52:11 PMChangelog:

v2016010701:
  Added new functions from 2.0 release to syntax highlight and calltips
  Fixed cosmetic errors in Calltips
  Fixed multi-line comments not being styled
  Fixed escaped quote breaking styling in strings
  Files moved to GitHub

v2014102202:
  Added a few missing calltips

v2014102201:
  Added function calltips!
  Added new functions from 1.2.17

v2014091901:
  Fixed auto extention handling (.nxs - for real this time)
  Added .xml extension to the file for easier import into Notepad++

v2014081801:
  Fixed auto extention handling (broken in v2014081701)
  Fixed some keywords missing (broken in v2014081701)

v2014081701:
  Added missing keywords provided by Alex Kirhenshtein

v2014081601:
  Added auto extention handling (.nxs)
  Added a few missing keywords and operators

v2014081501:
  Original syntax file

This is very cool dude. It works great and it was just what I needed. Thanks..
Title: Re: NetXMS NXSL - syntax highlight and calltips (tooltips)
Post by: tomaskir on January 07, 2016, 04:29:12 AM
Update for release of NetXMS 2.0!

v2016010701:
  Added new functions from 2.0 release to syntax highlight and calltips
  Fixed cosmetic errors in Calltips
  Fixed multi-line comments not being styled
  Fixed escaped quote breaking styling in strings
  Files moved to GitHub

All the files are now located on GitHub at:
https://github.com/tomaskir/netxms-notepad_pp.git