Notepad2 with Syntax highlighting for Ruby, YAML, Bash and Conf
The free, open source Notepad2 is my favorite text editor. I use Notepad2 to edit HTML, PHP, JavaScript etc. Unfortunately, Notepad2 does not have syntax highlighting for all file types supported by Scintilla. Wesner Moise offers a version of Notepad2 with Ruby support. I have created a modified version of Notepad2 that is based on Wesner Moise’s changes to Ruby and Makefile support and Scintilla 1.65 and added Syntax highlighting for YAML, Bash shell scripts and Apache configuration files. I have compiled an English and German version (I have extracted the German strings from the official German Notepad2 build using Resource Hacker). I also added the extensions .rhtml (for Ruby on Rails), .php4 and .php5 to the HTML lexer (if you have previously used Notepad2, you may have to add them manually under View -> Customize Schemes). It does however not highlight the included Ruby code in .rhtml files, because the Scintilla HTML Lexer does not yet support included Ruby in HTML. It should be possible to include that feature in LexHTML.cxx somehow, but that Lexer is quite complex. I don’t know if someone is working on that. If you find something, please let me know.
Download modified Notepad2 (includes English and German binaries + source code)
This version comes with syntax highlighting support for HTML, XML, CSS, JavaScript, VBScript, ASP, PHP, CSS, Perl, C, C++, C#, Java, Visual Basic, Pascal, Assembler, SQL, Python, NSIS, INI, REG, INF, BAT, DIFF, Ruby, YAML, Bash and Apache configuration files.
Update: I have replaced the download with a newer version which includes an improved Ruby lexer. See my post Improved Ruby syntax highlighting for Notepad2. If you need the old version, here it is.

August 19th, 2005 at 5:56 pm
Thank you Pablo, well done
September 3rd, 2005 at 7:06 pm
[...] Pablo’s Development Blog « Notepad2 with Syntax highlighting for Ruby, YAML, Bash and Conf [...]
March 4th, 2006 at 10:48 pm
Notepad++ is favorite text (code source) editor :
http://notepad-plus.sourceforge.net/
It supports tons of languages, including HTML, PHP, JavaScript and ruby.
Some of the things that stand out to me: Macros, Multi-document sync’d scrolling, Vector-style zoom in/out, and Code highlighting that is on-par with Dreamweaver. It also has comparable site-wide find and replace. Another nice feature are tabs that behave like Firefox. They are draggable, and a middle-click closes them. Anything I could say won’t do it justice. In short, what Firefox is to the browsing, Notepad++ is to code.
December 20th, 2006 at 2:26 am
Well.. where the bash scripting highlight is being enabled? I have downloaded Notepad2, but I was unable to find such a feature.
January 22nd, 2008 at 4:54 pm
Thanks a lot, was looking for a version of Notepad2 with bash script support!
April 4th, 2008 at 10:27 pm
Much thanks. I’m an avid user of notepad2 and needed bash support for a project. I have two suggestions. Perhaps change the title bar to read Notepad2mod rather than just Notepad2, to differentiate. Also, months after I used your program, I couldn’t remember the differences between notepad2mod and the original notepad2. There’s no change log or diff log that I could find, nor a link back to this site for reference, but I found you. I wrote a short one myself that now lives in my notepad2mod directory. Here it is, if you’d like (or want to add to it.) Maybe you could include it in the notepad2mod.zip archive for others’ reference.
Notepad2mod – notes – added by JMP (not associated with program author)
- supports additional script syntax highlighting schemes
+ ruby
+ YAML
+ bash
+ apache config files (conf)
- rearranged menu layouts
Program Homepage:
http://mel.melaxis.com/devblog/2005/08/14/notepad2-with-syntax-highlighting-for-ruby-yaml-bash-and-conf/
Thanks again. Wonderful work!