Coding in Chrome OS

Does anybody know a good way to code in Chrome OS. I really need basic C/C++ and Java. At very lease does someone know a good text editor with syntax highlighting like gedit or notepad++. I don't necessarily need to run the code on Chrome OS as I usually ssh into a server to run it, but it would be a plus. Also an easy way to save the files to an SSH server would be a huge plus.