emacs-php / php-mode

A powerful and flexible Emacs major mode for editing PHP scripts
GNU General Public License v3.0
583 stars 118 forks source link

New feature: php-format.el #731

Closed zonuexe closed 1 year ago

zonuexe commented 1 year ago

Note This is an experimental feature. We are looking for your feedback to improve the usability.

This feature is for execute PHP code formatting tools.

Supported tools:

It supports both per-project and globally installed ones.

How to use

Add following line to setup function for php-mode.

(php-format-auto-mode +1)

Customization

These variables can be set either by dir-locals.el or by custom-set-variable.

Display methods

How formatting is performed and how the results are displayed can be controlled by the following keywords.