I've had this bug me a few times when I work with here documents in bash. #+begin_src sh some-command <<'EOF' * some text EOF #+end_src
the line beginning with * is treated as a title and folded. The same goes for example blocks, and perhaps other things. as a workaround, I can insert a tab char, and change the redirection operator to <<- to strip leading tabs some-command <<-'EOF' * some text EOF - Ian