NetXMS NXSL - syntax highlight and calltips (tooltips)

Started by tomaskir, August 15, 2014, 04:52:51 PM

Previous topic - Next topic

tomaskir

Hey guys,

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

How the calltips work:


How the highlighting works:


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

Regards,

tom

tomaskir

#1
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

Alex Kirhenshtein

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

tomaskir

#3
Thanks for listing those!

Updated the syntax file in the attachement of the main post :)

tomaskir

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 :)

Riley

Quote from: tomaskir on October 22, 2014, 01:56:06 PM
With todays update:
Added support for Phen24 and 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 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

This is very cool dude. It works great and it was just what I needed. Thanks..

tomaskir

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