Variable: web-mode-content-types-alist

web-mode-content-types-alist is a variable defined in web-mode.el.

Value

nil

Documentation

A list of filename patterns and corresponding web-mode content types.

For example,
(setq web-mode-content-types-alist
  '(("json" . "/some/path/.*\\.api\\\\='")
    ("jsx" . "/some/react/path/.*\\.js[x]?\\\\='")))

Source Code

;; Defined in /nix/store/2qgnz1rp30nzfz6w0apx4kdm14if1bbs-emacs-packages-deps/share/emacs/site-lisp/elpa/web-mode-20260831.219/web-mode.el
(defvar web-mode-content-types-alist nil
  "A list of filename patterns and corresponding web-mode content types.
For example,
(setq web-mode-content-types-alist
  \\='((\"json\" . \"/some/path/.*\\.api\\\\='\")
    (\"jsx\"  . \"/some/react/path/.*\\.js[x]?\\\\='\")))")