Q:

Applying major-mode font locking to exported org-babel snippets

Currently I have a bunch of code snippets in my Org-based presentation. I'm exporting them with ox-reveal, but the exported code doesn't have any syntax highlighting. Is there any way to:

have syntax highlighting in code blocks in org-mode?
ensure that the syntax highlighting is carried through to the exported HTML?

A:

You can enable syntax highlighting of code blocks in org-mode by setting org-src-fontify-natively to t.
That will probably not help exporting to ox-reveal. In any case "normal" HTML export syntax highlighting (without ox-reveal) is enabled by default if you have htmlize.el installed, so it may be worthwile checking if you have htmlize installed. See this answer on SO

