Function: php-ts-mode-send-region

php-ts-mode-send-region is an interactive and byte-compiled function defined in php-ts-mode.el.gz.

Signature

(php-ts-mode-send-region BEG END)

Documentation

Send region between BEG and END to the inferior PHP process.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/php-ts-mode.el.gz
(defun php-ts-mode-send-region (beg end)
  "Send region between BEG and END to the inferior PHP process."
  (interactive "r")
  (if-let* ((php-process
	     (get-buffer-process php-ts-mode-inferior-php-buffer)))
      (progn
	(php-ts-mode-show-process-buffer)
	(comint-send-string php-process "\n")
	(comint-send-string
	 php-process
	 (buffer-substring-no-properties beg end))
	(comint-send-string php-process "\n"))
    (message "Invoke run-php first!")))