Angular directive for showing and/or editing code snippets