Fix #1886 Enable Code Highlighting: the button in the editor stays inactive

Also moved code out from the template and added support for plugin with J!3.x support:

http://geoffhayward.eu/blog/the-secret-of-joomla-s-geshi-syntax-highlighter