Rails on Notepad++

*EDIT* after coding sometime I decided to redo some of the color schemes. Specifically, the color balance was off.

I’ve replaced the links and images with the new ones below.

Notepad++ with Launchy is now my official Rails development IDE. Launchy is to emulate “open resource” of eclipse – something that I can’t live without anymore. Notepad++ is lighter, faster, cleaner, and with some good color schemes and customization, a very comfortable editor especially for those long long coding nights.

Launchy is a great open source command line launcher that caches all the files with extensions that you want inside a folder. To make it emulate open resource, add .erb .rb .css extensions, and make it cache the folder that contains your project. Also make sure .erb, .rb, and .css files are associated with Notepad++. Finally, set the shortcut to whatever open resource used to be (ctrl+shift+r for me).

rb_note

pink?? (it stands out). You can replace it with Yellow or something less trendy if you want.

launchy1

If you are in doubt at how good Notepad++ can look, check this out:

erb_note1

colors used for .rb

I have both a custom color styles and a custom keyboard shortcuts: The custom font in the styles is Consolas.

To use replace the old xml in your %APPDATA%/Notepad++/ (typically, c:/documents and settings/<username>/application data/Notepad++/ it might be hidden). Back it up first!

————-

new colorscheme:

stylers.xml

old colorscheme:

stylers.xml (Right click, save link as… Rename it to stylers.xml)

————-

Also, if you are having trouble with .erb files having wierd <% %> tags, overwrite the old SciLexer.dll with this one in your C:/Program Files/Notepad++ folder: scilexer.dll (rename to SciLexer.dll) Notepad++ hardcodes <% to be read as ASP tags and treats ‘ as a comment. The new SciLexer.dll is a compiled version that removes the check for the ‘ as a comment in ASP tags (it doesn’t fix all the problems of it, but it looks good enough).

shortcuts.xml (Right click, save link as… Rename it to shortcuts.xml)

One day I’ll figure out how to upload xml files into a blog post.

The only thing that I have yet to do is to open up a console in Notepad++; I’m sure its doable too.

Advertisements
    • goldy
    • January 4th, 2009

    Hey thanks for this! I like your colour scheme.

      • joydispenser
      • January 8th, 2009

      your welcome šŸ™‚ thanks for using it.

  1. Thank you! šŸ™‚

    • Santiago
    • May 3rd, 2009

    Great color schema, but it not work with php.

    • Joao
    • May 4th, 2009

    Hello! the color style is great!
    But I still have problems with the .erb files.
    I replace the SciLexer.dll, buy nothing happens… I have Notepad++ v5.3.1, any ideas?

    • Alex
    • June 2nd, 2009

    “””The only thing that I have yet to do is to open up a console in Notepad++; Iā€™m sure its doable too.””” you can do that by using run, specify cmd /d “some_command_to_execute” and prompt will stay alive after command execution šŸ˜‰

    • DerekK
    • July 20th, 2009

    Not so sure about the colour scheme (though a dark background is easier on the eyes than a white one), but thanks for the SciLexer fix

    • Darshana
    • August 13th, 2009

    hi, style looks good. but mouse pointer, highlighted text disappears in the dark background. any ideas? I tried changing highlight options in styler configurator but did not have any effect.

    • tomaszdurka
    • October 17th, 2009

    Thanks for explanation on erb/asp syntax error resolution.

    • samuel
    • November 8th, 2009

    Still doesnt work for me, cant associate .erb files on the notepad

    • HalypH
    • November 22nd, 2009

    Hi,
    Thanks for fix in SciLexer.dll.
    Could you please provide fixed source code for ASP/HTML lexer or diff file?

  2. Awesome poindexters, cheers for the theme, dll and for the heads up on launchy :D.

    Quick query if I may > file associates between Launchy/launch and Notepad++ are fine with .erb and .css but Launchy/launching .rb files just launches them not not via NP…any ideas?

    Cheers.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: