You can use visualruby, and you could write it in about an hour:
http://visualruby.net
You would build your window in the glade interface designer, then add a menu to your window with all your menu options. All of this can be done in the glade software so no code is required. Then you could give your menu options names that you reference later:
menuClear
menuIndent
menuComment
menuQuit
etc.
You could have the editor itself be a textview named textview1.
Then your code could be:
class MyEditor
def show
load_glade(__FILE__)
show_window()
end
def menuClear__clicked
@builder["textview1"].buffer.text = ""
end
def menuIndent__clicked
current_line = tab + current_line
end
def menuComment__clicked
current_line = "#" + current_line
end
def menuQuit__clicked
destroy_window
end
end
MyEditor.new.show
I think its easier than any of the other toolkits, and its more robust because its GTK.
All of the above statement are explained on the website. Good luck.