It is currently April 19th, 2024, 4:35 pm

RainLexer 2.20.0 (syntax highlighter for Notepad++)

Plugins and Addons popular with the Community
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5396
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

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

Post by eclectic-tech »

mr.derek wrote:...I just thought I'd contribute my findings - I use the function list in Notepad++ to navigate quickly around a big ini file...
This is great addition! :thumbup:

Thanks mr.derek!
MikeG621
Posts: 87
Joined: March 18th, 2013, 1:59 pm

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

Post by MikeG621 »

Is ini_section built-in, or do you have a parser in functionList? I've got a few languages, but cycling langID didn't get me anywhere.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5396
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

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

Post by eclectic-tech »

MikeG621 wrote:Is ini_section built-in, or do you have a parser in functionList? I've got a few languages, but cycling langID didn't get me anywhere.
From what I see, the answer is ''Yes", the 'bracketed' ini_section [...] is built-in (look at his image of the functionlist.xml, LangID="13" is "ini_section").

I had to use the process described by mr.derek, of incrementing the langID, starting at 56, save and restart Notepad++, open a skin file and see if the function lists the sections. When I used langID="57", the functions list started populating with section names on restart.

Hope this helps.

(Edit: 'started' typo)
Last edited by eclectic-tech on April 1st, 2015, 1:29 pm, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

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

Post by jsmorley »

Mine ended up as "57" as well. That might be a good place to start with a reasonably default setup.
MikeG621
Posts: 87
Joined: March 18th, 2013, 1:59 pm

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

Post by MikeG621 »

Well for whatever reason my NPP install doesn't have the INI or XML parsers, which were supposed to be added after 6.5. So that's where my problem lies with this.

Would one of you guys mind posting the code for the parsers?
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5396
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

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

Post by eclectic-tech »

MikeG621 wrote:Well for whatever reason my NPP install doesn't have the INI or XML parsers, which were supposed to be added after 6.5. So that's where my problem lies with this.

Would one of you guys mind posting the code for the parsers?
This is the ini_section from functionList.xml for my NPP install v6.7.5

Code: Select all

			<parser id="ini_section" displayName="INI Section" commentExpr="((#.*?$)|(;.*?$))">
				<function
				    mainExpr="^[\t ]*[\["][\w_.; \(\)-]+[\]"]"
					displayMode="$functionName">
					<functionName>
						<nameExpr expr="[^\[\]"]*"/>
					</functionName>
				</function>
			</parser>

Since I have AutoIt installed my LangID="57"; so as JSMorley suggested, you may want to start with that number.

Let me know if you need something more...
MikeG621
Posts: 87
Joined: March 18th, 2013, 1:59 pm

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

Post by MikeG621 »

That did the trick, thanks :thumbup:
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

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

Post by jsmorley »

Updated first post for new RainLexer v1.1.19 version.

Added keywords for Loop measure and its options.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5396
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

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

Post by eclectic-tech »

'Topmost' for InputText plugin, not being recognized in Rainlexer 1.1.19 as a legitimate keyword.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

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

Post by jsmorley »

eclectic-tech wrote:'Topmost' for InputText plugin, not being recognized in Rainlexer 1.1.19 as a legitimate keyword.
Thanks for reporting. I will have some others to add very soon here (grin) and will do that one at the same time.