"Tanis, Craig" <craig-ta...@utc.edu> writes:

> SRC blocks don't show correct face when a language is specified.
>
> #+begin_src
>   correctly shows in 'org-block face
> #+end_src
>
> #+begin_src language
> incorrectly shows in 'default face
> #+end_src

I suspect that in your second block you're using text the would have the
default face in a buffer for that language.

Depending on the value of org-src-fontify-natively, Org will try to
highlight the block according to the language.

So

#+begin_src
  (message "yes")
#+end_src

will use the org-block face, but

#+begin_src elisp
  (message "yes")
#+end_src

will highlight according to emacs-lisp-mode.

If org-src-fontify-natively is nil, the org-block face will be used for
the second block as well.

--
Kyle

Reply via email to