I've never tried this but have always been curious:
http://firstforge.wpi.edu/sf/projects/ucpp
Something like that on a Ubuntu thumbdrive w/ gedit or Vim would be awesome. Especially at my school where we can't install software on the PCs. I've never had the time to look into solutions.