On 08/09/2022 23:20, Perry Smith wrote:
I’d like to be able to separate out things like file
paths, code samples (both in line and block), keywords, environment
variables, code variables, etc.
...
It would also help me to be more
consistent while I write because I’m (currently) having to remember “Ok…
how did I format variables? Was that ‘code' or ‘italics'? … Hmm…”
Depending on export backend and desired output quality you may use
info "(org) Macro Replacement"
https://orgmode.org/manual/Macro-Replacement.html or you may define
custom link type with :export property and type e.g.
[[style:file-path][/dev/null]]. The latter is a kind of hack, but it
might be more convenient in some cases.
E.g. macros are used in the doc/org-manual.org file
{{{kbd(M-x list-packages)}}}
see doc/doc-setup.org for its definition.