Variable: markdown-fontify-code-blocks-natively

markdown-fontify-code-blocks-natively is a customizable variable defined in markdown-mode.el.

Value

nil

Documentation

When non-nil, fontify code in code blocks using the native major mode.

This only works for fenced code blocks where the language is specified where we can automatically determine the appropriate mode to use. The language to mode mapping may be customized by setting the variable markdown-code-lang-modes.

This variable was added, or its default value changed, in markdown-mode version 2.3.

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
;;; GFM Code Block Fontification ==============================================

(defcustom markdown-fontify-code-blocks-natively nil
  "When non-nil, fontify code in code blocks using the native major mode.
This only works for fenced code blocks where the language is
specified where we can automatically determine the appropriate
mode to use.  The language to mode mapping may be customized by
setting the variable `markdown-code-lang-modes'."
  :group 'markdown
  :type 'boolean
  :safe #'booleanp
  :package-version '(markdown-mode . "2.3"))