On Dec 24, 2005, at 1:36 AM, Jason Jung wrote: > I spent around an hour looking for a Ruby syntax highlighter for Nano. > I couldn't find one so I decided to try my best at creating my > own. If > anyone has any suggestions or wants to help improve it, be my guest. > > Get it here: http://jungsource.pastebin.com/477379 > > To install: > Copy and add all of the text from pastebin to the bottom of ~/.nanorc > If .nanorc does not exist create it. > > Nanorc doc - http://www.nano-editor.org/dist/v1.2/nanorc.5.html > > Note: Tested using Nano 1.2.4 in Fedora Core 3 Linux > > -- > Posted via http://www.ruby-forum.com/. > One quick edit to your script. If you swap the following two segments, the highlighter won't think "# {expression}" is a comment. # Words in Quotes #color green ""[^\"]*"" color green ""[^"]*"|qq\|.*\|" color green "'[^']*'" # Comments color brightyellow "#.*" TO # Comments color brightyellow "#.*" # Words in Quotes #color green ""[^\"]*"" color green ""[^"]*"|qq\|.*\|" color green "'[^']*'"