Function: web-mode-element-children-fold-or-unfold

web-mode-element-children-fold-or-unfold is an interactive and natively compiled function defined in web-mode.el.

Signature

(web-mode-element-children-fold-or-unfold &optional POS)

Documentation

Fold/Unfold all the children of the current html element.

Key Bindings

web-mode-map C-c C-e f

Source Code

;; Defined in /nix/store/2qgnz1rp30nzfz6w0apx4kdm14if1bbs-emacs-packages-deps/share/emacs/site-lisp/elpa/web-mode-20260831.219/web-mode.el
(defun web-mode-element-children-fold-or-unfold (&optional pos)
  "Fold/Unfold all the children of the current html element."
  (interactive)
  (unless pos (setq pos (point)))
  (save-excursion
    (dolist (child (reverse (web-mode-element-children pos)))
      (goto-char child)
      (web-mode-fold-or-unfold))
    ))