What I really don’t like that much in WordPress is, that there is no really perfect way to display source code. Today I stumbled over the idea to use gists for displaying source code in WordPress. The advantage is, you can use for exampe PHPStorm for creating your source code, create a gist right out of the IDE like shown in the screen, and use the plugin Embed Github Gist for displaying the source code in your blog article.
Screen:
Have fun, perhaps it helps someone 😉