Both =foo=
and ~foo~
seem to be used in org for inline bits of code. How do they differ? Which should I use, and when?
For example, from the ORG-NEWS
file:
If you want to exclude a headline from export while using its contents
for setting options, use =:noexport:= (see =org-export-exclude-tags=.)
...
The key sequences =C-c C-n= and =C-c C-p= are now bound to
~org-next-visible-heading~ and ~org-previous-visible-heading~ respectively,
rather than the =outline-mode= versions of these functions. The Org
version of these functions skips over inline tasks (and even-level
headlines when ~org-odd-levels-only~ is set).
There isn't an obvious pattern here: org-export-exclude-tags
and org-odd-levels-only
are both variables, and org-next-visible-heading
and outline-mode
are both functions.
Do either of these syntaxes support jumping to *Help*
buffers the way `foo'
does in docstrings?
~ .. ~
, and instead using= .. =
for everything verbatim, including inline code snippets.