emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Font lock for org-babel shell scripts?


From: Derek Chen-Becker
Subject: Font lock for org-babel shell scripts?
Date: Tue, 28 Mar 2023 11:24:39 -0600

Hi,

I'm trying to figure out whether there's a bug or just a misconfiguration on my end with font lock for org-babel shell source blocks. If I run emacs 28.2 (with -q) and open the following org file, I can evaluate both source blocks but only the "bash" block has syntax highlighting. I've confirmed that opening a zsh script (e.g. with a zsh shebang) highlights correctly. If this list isn't the right place to ask about this issue, does someone know where I could look for help?

Thanks,

Derek

#+begin_src bash
  if [ -z $TEST ]; then
      echo Good
  fi
#+end_src

#+begin_src zsh
  if [ -z $TEST ]; then
      echo Good
  fi
#+end_src

# Local Variables:
# org-babel-load-languages: ((shell . t))
# End:



--
+---------------------------------------------------------------+
| Derek Chen-Becker                                             |
| GPG Key available at https://keybase.io/dchenbecker and       |
| Fngrprnt: EB8A 6480 F0A3 C8EB C1E7  7F42 AFC5 AFEE 96E4 6ACC  |
+---------------------------------------------------------------+


reply via email to

[Prev in Thread] Current Thread [Next in Thread]