1

Is there a way to do syntax highlighting in org-mode code blocks without using: (setq org-src-fontify-natively t)?

Since v. 8, I have been unable to fontify the background for org-block with this option enabled. Would love to fontify my code blocks though!

  • Since Org 9 (setq org-src-fontify-natively t) and a background color with org-block work for me. It didn't work in org 8, but it was fixed with this patch for org 9. – amitp Jan 20 '18 at 1:58
  • Ah, your right. I just needed to update my packages on Elpa. All good now, thank! – Adam Jan 20 '18 at 14:23
1

This was a hold-over from version 8. The solution was to simply update my org packages on elpa: M-x list-packages. Then move the cursor to (in my case) to org-plus-contrib and hit U to mark for updating and x to execute.

Restart Emacs and it should be all good.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.