I have tried many different languages and copied various examples, but none of my code blocks within orgmode get syntax highlighting. Here is what I\'m trying:
I had a similar problem where despite adding htmlize.el, I couldn't get the code syntax highlighting when exporting to html. I then found this very useful post and just followed the steps:
Syntax highlighting R code in WordPress using Emacs
Just to reiterate the steps:
Do you have this?
(setq org-src-fontify-natively t)