I know this has been mentioned before somewhere, but what about FLTK? Don't they already use a hacked-up version of NEdit for their text widget? I'm not sure about portability, but it's small enough to be statically linked, and as a bonus it runs natively on Windows. - Jeff