It is currently November 22nd, 2019, 2:11 pm

RainLexer 2.5.0 (syntax highlighter for Notepad++)

Plugins and Addons popular with the Community
poiru
Developer
Posts: 2875
Joined: April 17th, 2009, 12:18 pm

Re: RainLexer 0.9.0 (syntax highlighter for Notepad++)

poiru » December 26th, 2010, 8:38 am

smurfier wrote:I prefer highlighting valid values. With how key names highlight when valid, it just makes sense that the values should follow the same rule.
However, because only string options (i.e. Hidden=4 is considered valid) are highlighted (for now), I think highlighting when invalid makes more sense and also looks a tad cleaner:

Image

(I'll probably add a dialog to change options such as this sometime in the future)
User avatar
Alex2539
Rainmeter Sage
Posts: 648
Joined: July 19th, 2009, 5:59 am
Location: Montreal, QC, Canada

Re: RainLexer 0.9.0 (syntax highlighter for Notepad++)

Alex2539 » December 26th, 2010, 10:07 am

I'm against adding the equals sign. It seems like it might save the quarter of a second that it would take to type it, but I know there are a lot of people that like to make their skins readable by tabbing the equals signs or otherwise spacing them.

As for the highlighting, could you do both? Have a "correct" colour and an "incorrect" colour. Mind you, I think the best thing for incorrect would be a strikethrough. That would make it obvious.
ImageImageImageImage
poiru
Developer
Posts: 2875
Joined: April 17th, 2009, 12:18 pm

Re: RainLexer 0.9.0 (syntax highlighter for Notepad++)

poiru » December 26th, 2010, 10:42 am

Alex2539 wrote:I'm against adding the equals sign. It seems like it might save the quarter of a second that it would take to type it, but I know there are a lot of people that like to make their skins readable by tabbing the equals signs or otherwise spacing them.
That wouldn't work as leading/trailing spaces are considered part of the word (but fixed it already, thanks). I'll just include both ;)
Alex2539 wrote:As for the highlighting, could you do both? Have a "correct" colour and an "incorrect" colour
Yep, I'll do that. Strikethrough is not possible with Notepad++ as far as I know, unfortunately.
poiru
Developer
Posts: 2875
Joined: April 17th, 2009, 12:18 pm

RainLexer 0.9.1

poiru » December 27th, 2010, 2:28 pm

RainLexer 0.9.1 is out, read first post for download link and instructions.

Changes from 0.9.0:
- ADDED: Seperate highlighting for internal variables (such as #SKINSPATH#) and external variables (such as #MyVar#)
- ADDED: Highlighting for the equals sign in Keyword=Value
- ADDED: Highlighting for valid and invalid values (in cases such as StringCase=UPPER/LOWER/etc.)
- ADDED: Auto-complete (optional)
- FIXED: Leading and trailing whitespace was not ignored (e.g. Active<tab><tab>=1 was not highlighted)
- FIXED: Special keywords like MeasureNameN and ScaleN are now highlighted
- Moved keywords out of the .dll and into the .xml file
- Improved logic and performance

For the next version, I plan on including calltips (a tooltip that shows valid options for keywords) and perhaps operator (e.g. +, ?, /, etc.) highlighting as well.
User avatar
jsmorley
Developer
Posts: 19752
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RainLexer 0.9.1 (syntax highlighter for Notepad++)

jsmorley » December 27th, 2010, 3:25 pm

Outstanding! I'm in middle of getting my two new 1tb hard drives up and configured, but will try it out in just a few minutes.
User avatar
jsmorley
Developer
Posts: 19752
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RainLexer 0.9.1 (syntax highlighter for Notepad++)

jsmorley » December 29th, 2010, 10:46 am

You may have already caught this, but I notice these anomalies with #VariableName#:
12-29-2010 5-44-45 AM.png
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 19752
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RainLexer 0.9.1 (syntax highlighter for Notepad++)

jsmorley » December 29th, 2010, 10:50 am

By the way, I was not convinced I would like "auto complete", but I was wrong. It's GREAT!

This is too cool for school, poiru...
poiru
Developer
Posts: 2875
Joined: April 17th, 2009, 12:18 pm

RainLexer 0.9.2

poiru » December 29th, 2010, 11:09 am

RainLexer 0.9.2 is out, download link in first post.

Changes from 0.9.1:
- FIXED: Variables and bangs were not highlighted if the keyword was invalid
- FIXED: Highlighting was not applied completely for lines longer than 2048 characters
- FIXED: Highlighting was not applied correctly for the last line of the file
- Rewrote lexer logic for better speed
User avatar
jsmorley
Developer
Posts: 19752
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RainLexer 0.9.2 (syntax highlighter for Notepad++)

jsmorley » December 29th, 2010, 11:11 am

Seems to have fixed it poiru...
poiru
Developer
Posts: 2875
Joined: April 17th, 2009, 12:18 pm

RainLexer 0.9.3

poiru » January 5th, 2011, 9:27 am

RainLexer 0.9.3 is out! Now includes and installer so installation is a breeze. It also keeps your current colours if you're on a recent-enough version (that's either 0.9.2 or 0.9.1).

Note that auto-complete must be installed manually (for now). Read first post for download link and instructions.

Changelog:
- FIXED: Highlighting files in Unix format (newlines)
- FIXED: Variables or bangs longer than 30 characters cause crash
- FIXED: Section highlighting when section name has a space
- FIXED: Option highlighting with leading whitespace.
- FIXED: Bangs and variables in the value weren't highlighted when the keyword had non-alphanumeric characters.
- FIXED: ## was highlighted
- ADDED: Installer for easy installation
- Minor tweaks here and there