So, I started to use orgmode for writing the documentation for my latest software project. This means, that I have code blocks and lots of special characters in my document. I will have to export this whole file to LaTex/pdf, so my colleague can bind it into his project documentation and this is exactly where my problems are. First of all: how can I turn of the need to manually stop the code execution for code blocks when exporting? I have the single line src_bash{} blocks but also the multiline versions:
#+begin_src bash :
#code
#+ends_src
The next thing is, that my function names include underscores, which in orgmode translates to making the following text lowercase. I tried using \ to escape it, but that only breaks it in a new way and I seriously cant comprehend how this so called zero width space is supposed to be used.
First off, while I like using org-mode for my own private documents, I'd recommend against it for use with other people for pretty much anything other than maybe emacs software. The problem is that org-mode is a continuously-evolving format that only really emacs fully implements, though there is some partial implementation by, say, vim and some other packages. That's not great for an interchange format, since one can't really expect other people who might work with the document to be emacs users.
I'd be more-inclined, if one wants a pure-text-friendly format that will be exported to some sort of formatted form, to use something like AsciiDoc.
But, okay. Set that aside. Say you definitely want to use org-mode. I don't know how you're doing the export, but you might try using Pandoc instead of emacs, which has its own implementation of org-mode and can export to PDF; people using Pandoc could use other editors. My guess is that Pandoc's implementation most-likely doesn't support executing code in the first place, which might indirectly avoid the problem in the first place.
I'm not sure what you mean by underscores making text lowercase. I regularly type underscores in org-mode.
EDIT: Maybe you have some other mode you have active making underscore do something special? You might hit
C-h k _in org-mode to see what the underscore key is invoking. On my system, it'sorg-self-insert-command.save