0

Indentation of PHP 5.4 arrays with new square bracket notation

dan78 10 year бұрын updated by Flavio De Stefano 10 year бұрын 1

Indentation of PHP 5.4 arrays with new square bracket notation

It would be helpful to change the auto-indentation settings for PHP files  such that the content of arrays with square bracket syntax is indented.


PHP code auto-indented with ST3 v 5054 looks like this:

Image 259

For nested arrays this quickly becomes very hard to read. 


ST3 correctly indents traditional PHP arrays:

Image 260



Any suggestions how to auto-indent square bracket arrays are welcome.