SyntaxHighlighter is a popular code highlight tool using in wordpress.It also can be pluged into TinyMCE.
First..Download SyntaxHighlighter from its site and extract it into your app static folder.
add script and css in html
Then download another plugin for TinyMCE named SyntaxHL. Extract it and add it into TinyMCE plugin: /static/tinymce/jscripts/tiny_mce/plugins/
Add following in TinyMCE setting:
We can find code editor button appear in TinyMCE toolbar,and code is highlight at website.