The MC Expression Language has lots of parenthesis, brackets, and other punctuation, so sometimes it's nice to have a little help in keeping things straight.
So following up on my previous release... I'm pleased to announce the availability of
Version 2 of the Syntax Highlighter for JRiver Expression Language!
This new version represents a whole new approach compared to version 1, and is a dramatic improvement in all areas.
It lets you transform your Expression Language editing experience...
Major Features and Enhancements- Draws a box around the currently selected expression, making it easy for you to see where it begins and ends.
- All Functions and Database fields are highlighted. Database field names are validated and colored based on if they are recognized/spelled correctly.
- Database fields are highlighted correctly even when inside expressions or directly adjacent to other text.
- Database fields are highlighted correctly even when used with optional modes.
- HTML tags are colorized
- Variable names are colorized when prefixed with v_
- Escaped delimiters are respected
- Quoted strings and numeric constants are highlighted
RequirementsThe Syntax Highlighting is an add-in for the Notepad++ Editor, also known as NPP. If you have not used NPP, you should. It's an excellent, free, highly configurable, and very powerful text editor. You can read more about it and download it here:
https://notepad-plus-plus.org/In order to enable the advanced features in this new version, the Syntax Highlighting leverages the open-source PythonScript plugin for NPP. Python allows me to override and work around the limitations in the built-in NPP lexer, so a lot of the functionality of this version is through Python code. This allows me to use Regular Expressions to identify and colorize text, to draw the animated outline box, and to do more sophisticated delimiter parsing than NPP is capable of. Installation instructions for the PythonScript plugin are included in the archive.
Both components can be installed in a lightweight, portable manner without making registry modifications or changing and system defaults.
---------------
A Note on Colors:
I come from the old school, where editors should display text (preferably green) on a black background, like in the good old days. If you grew up in the age of Microsoft Word and black-on-white text, you just feel free to change all the colors however you like. This can be done through the various "Styler" buttons in the Define Your Language dialog in NPP. NPP also has a Style Configuration dialog on the Settings menu where you can configure default colors. Learning how to use NPP I leave as an exercise for the reader. If you want to change the color of database fields or HTML tags, you would have to edit the Python code.
To see the colors to best effect, the easier but not as good way is to use the "Black board" theme from Settings->Style Configurator. But better is to go to Settings->Style Configurator and edit the default style: make the background color BLACK and the foreground color whatever you prefer (but real men prefer green). You can also set your default font in this dialog. Your default font settings will be respected by the Syntax Highlighter, only colors are altered. You can obviously change other defaults in this dialog as well.
Full installation instructions are included in the archive. Just look at the README files.
Download link is below. Enjoy!
-Will
------------
13-May-2020: Release of version 2.0
13-May-2020: Quick patch to v2.1; only necessary to replace JRiverUDLEnhancer.py
22-May-2020: v2.2 bug fix to prevent Boxer from improperly activating. Only necessary to replace BracketBoxes.py