I've been playing around with the source lair lately. It uses the API from code mirror for the editor part and is able to run C.
If you google 'in browser ide', you'll get a bunch of results (coderun, cloud9, etc) with various capabilities that you can judge against.