Since underscores are not used very often in regular text, it's likely that your use of them is for small snippets of code. If this is the case, it's simplest to use a
verbatim environment or macro. This will render pretty much anything as it is typed, with no escaping of special characters required. It will also display the text in the current
Without any packages you can use
| character used to delimit the text can be
| or any non-reserved non-alphanumeric character.
If you have a lot of these, it's useful to make the markup even simpler. You can do this by loading the
fancyvrb package (other packages can do the same thing) and define the delimiter explicitly, in which case you don't need the