php-mode
php-mode copied to clipboard
indent string concat
Is it possible to indent string concatenation like this ?
<?php
$str = "xxx" .
"yyy";
?>
Yes, that should be possible. Off the top of my head I do not know how to accomplish that, but it will probably involve some cc-mode settings, which PHP mode now uses for much indentation.
I will look into this, but if you would like to try writing a patch for it then you may want to check out the links that Daniel Haxney collected for cc-mode:
https://github.com/ejmr/php-mode/wiki/CC-Mode-Moral-Support