Rails on Notepad++

Posted on November 23, 2008. Filed under: Uncategorized |

*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.

Make a Comment

Make a Comment: ( 7 so far )

blockquote and a tags work here.

7 Responses to “Rails on Notepad++”

RSS Feed for The ruby-way road Comments RSS Feed

Hey thanks for this! I like your colour scheme.

your welcome :) thanks for using it.

[...] no responses I have been using notepad++ for rails for about a month now, and I’m loving it. See original post for my setup. [...]

[...] a side note, I’ve been doing some rails development, and this blog post has some nice highlight and shortcuts Notepad++ setup for .erb [...]

“”"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 ;)

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


Where's The Comment Form?

Liked it here?
Why not try sites on the blogroll...