@ Carolin
I highly recommend the Code Snippets plugin. Add a new snippet, copy/paste the example I gave and then save and activate the snippet.
Hope that helps!