View unanswered posts | View active topics It is currently August 22nd, 2014, 3:55 am



Reply to topic  [ 113 posts ]  Go to page 1, 2, 3, 4, 5 ... 12  Next
 RainLexer 1.1.13 (syntax highlighter for Notepad++) 
Author Message

Developer

User avatar

Joined: April 17th, 2009, 12:18 pm
Posts: 3068
Location: Helsinki, FIN
Post RainLexer 1.1.13 (syntax highlighter for Notepad++)
December 21st, 2010, 9:51 pm
RainLexer

RainLexer is a plugin for Notepad++ 6.0 or greater that allows proper syntax highlighting for Rainmeter .ini and .inc files.

It adds color coding for Rainmeter specific syntax when editing files, as well as a way to refresh Rainmeter or the skin you are working on within Notepad++. It does not provide auto-complete or other Rainmeter specific functionality.



The first shot is taken using the default Notepad++ theme, whereas the second is taken with the Zenburn theme active. The installer supports both of these themes. If you're using some other theme, you'll have to adjust the colors to fit.

For more information, check the project page.

Install Notepad++

If you have not yet installed Notepad++, the first step is to do that.

Notepad++ can be downloaded and installed from Notepad++ Download

Download RainLexer

The latest version of RainLexer is at: RainLexer 1.1.13

Download this file, but hang on one second before you install it.

Decide on a theme

Before you install RainLexer, you should decide if you prefer the "Default" or "Zenburn" themes in the images above. If you prefer the default Notepad++ theme, then you can skip the next steps.

Installing RainLexer with Zenburn theme

In order to have the installer for RainLexer detect that you want to use the Zenburn theme and install that version of the color scheme for Rainmeter .ini/.inc files, you should first set Zenburn as the theme in Notepad++ before you run the RainLexer installer.

In Notepad++, change the theme to Zenburn in the "Style Configurator".




Then exit Notepad++ and simply install RainLexer, selecting the "Reset style settings" option in the dialog.


I changed my mind!

To change between the Zenburn or default themes later, simply change the theme in Notepad++ using the "Select theme:" pull-down at the top of the "Style Configurator", save that choice, exit Notepad++, and run the RainLexer installer again, selecting that "Reset style settings" option in the dialog.

Changing the colors

If you want to customize the colors used in Rainmeter (either theme, Default or Zenburn) you can use the "Style Configurator", select the Rainmeter element you want to change in the list, and click on the color square to bring up a color picker dialog.


Updating RainLexer

As features and functions are added in Rainmeter, color coding for new keywords and values will be added to RainLexer. To update RainLexer, simply download the latest version, and install it.

Note: If you have changed any of the colors for Rainmeter using the "Style Configurator" as described above, be sure that the "Reset style settings" option in the dialog is not selected when you install the latest RainLexer. That will preserve your changes while updating the functionality.

Profile WWW
User avatar

Joined: April 18th, 2010, 2:16 pm
Posts: 698
Location: NY, USA
Post Re: RainLexer (syntax higlighting for Notepad++)
December 21st, 2010, 10:17 pm
I believe the collapsing sections would be useful,
In case you're fixing a problem on a skin and you know certain meters/measures are correct but some are not.

I don't use Notepad++ enough to know if this already exists/if it's possible, but possibly like a 'bookmark' of where your are.
Say you're looking at a top of the skin, and there's something relevant to that at the end you can switch to that exact spot and then back to where you where with a click or something.

Profile

Joined: December 19th, 2010, 8:06 pm
Posts: 1
Location: Kansas City
Post Re: RainLexer (syntax higlighting for Notepad++)
December 22nd, 2010, 2:12 am
I agree with the folding, you should add it. Can't wait until you put up the download link.

Profile WWW

Administrator


Joined: April 3rd, 2009, 4:31 am
Posts: 1337
Location: NC, US
Post Re: RainLexer (syntax higlighting for Notepad++)
December 22nd, 2010, 4:16 am
Do you mean the +/- next to each section name?

Profile

Developer

User avatar

Joined: April 17th, 2009, 12:18 pm
Posts: 3068
Location: Helsinki, FIN
Post Re: RainLexer (syntax higlighting for Notepad++)
December 22nd, 2010, 4:23 am
dragonmage wrote:
Do you mean the +/- next to each section name?

Yep.

Profile WWW

Developer

User avatar

Joined: April 17th, 2009, 12:18 pm
Posts: 3068
Location: Helsinki, FIN
Post RainLexer 0.9.0
December 22nd, 2010, 11:01 am
Updated first post with download, check it out..

Profile WWW

Administrator


Joined: April 3rd, 2009, 4:31 am
Posts: 1337
Location: NC, US
Post Re: RainLexer 0.9.0 (syntax highlighter for Notepad++)
December 22nd, 2010, 11:24 am
Why not? It doesn't hurt anything.

Profile
User avatar

Joined: April 24th, 2009, 3:17 pm
Posts: 570
Location: Bucharest, Romania Lat 44,43° Lon 26,1°
Post Re: RainLexer 0.9.0 (syntax highlighter for Notepad++)
December 22nd, 2010, 11:26 am
thanks :beer: :beer1:

Profile WWW

Developer

User avatar

Joined: April 17th, 2009, 12:18 pm
Posts: 3068
Location: Helsinki, FIN
Post Re: RainLexer 0.9.0 (syntax highlighter for Notepad++)
December 22nd, 2010, 11:27 am
dragonmage wrote:
Why not? It doesn't hurt anything.

It's included in 0.9.0 :)

Profile WWW

Developer

User avatar

Joined: April 19th, 2009, 11:02 pm
Posts: 10827
Location: Fairfax, VA
Post Re: RainLexer 0.9.0 (syntax highlighter for Notepad++)
December 22nd, 2010, 1:12 pm
Very nice indeed. Great job.

Couple of things just based on a very quick look:

1) Missing "ScriptFile=" (I missed it too in my latest UserDefineLang)

2) I gather you are not going to highlight the "value" part of Key=Value when there are defined options?

Meter=Image
Measure=Calc
StringStyle=Bold

I'd miss that... I make as many mistakes with improper values as I do with improper keys.

I'll look at it further when I get back from the holiday, but I'm impressed. I have looked at the whole lexer thing, and know how much effort this was... Wow.

Profile
Display posts from previous:  Sort by  
Reply to topic   [ 113 posts ]  Go to page 1, 2, 3, 4, 5 ... 12  Next

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.