Variable: LaTeX-fancyvrb-chars

LaTeX-fancyvrb-chars is a customizable variable defined in tex-style.el.

Value

nil

Documentation

List of characters toggling verbatim mode.

When your document uses the fancyvrb package and you have a
\DefineShortVerb{\|} in your file to write verbatim text as
|text|, then set this variable to the list (?|). Then AUCTeX
fontifies |text| as verbatim.

Preferably, you should do this buffer-locally using a file variable near the end of your document like so:

  %% Local Variables:
  %% LaTeX-fancyvrb-chars: (?|)
  %% End:

When you customize this variable to a non-nil value, then it becomes the default value meaning that verbatim fontification is always performed for the characters in the list, no matter if your document actually defines shortverb chars using
\DefineShortVerb.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex-style.el
;; style/fancyvrb.el

(defcustom LaTeX-fancyvrb-chars nil
  "List of characters toggling verbatim mode.
When your document uses the fancyvrb package and you have a
\\DefineShortVerb{\\|} in your file to write verbatim text as
|text|, then set this variable to the list (?|).  Then AUCTeX
fontifies |text| as verbatim.

Preferably, you should do this buffer-locally using a file
variable near the end of your document like so:

  %% Local Variables:
  %% LaTeX-fancyvrb-chars: (?|)
  %% End:

When you customize this variable to a non-nil value, then it
becomes the default value meaning that verbatim fontification is
always performed for the characters in the list, no matter if
your document actually defines shortverb chars using
\\DefineShortVerb."
  :type '(repeat character)
  :safe #'listp)