code snippets now use code mirror editors...added edit button to code snippets