@muZk that other solution is quite out of date. If you type ``` and press Enter (the rich-text editor supports most of markdown ;-) ) then you’ll get a code card where you can paste code and choose a language.
For the highlighting part you’ll still need to adjust your theme to have highlighting.