Eric James Michael Ritz
Eric James Michael Ritz
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](https://www.gnu.org/software/emacs/manual/html_mono/ccmode.html) settings, which PHP mode...
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...
> Is that even possible? Yes, but strictly in the technical sense. I know it _can_ be done, but I also cannot readily think of the best way to implement...
Thank you both @ReneFroger and @jwdunne for your ideas. > However, I would not speaking strictly about finding the SQL keywords for indentation, but looking where the string ends. Perhaps...
> Perhaps using PHP_EOL might be a better separator - the line of error will be reported by the SQL server. Good idea, thanks!
Thank you for the bug report. The behavior is an error and not what we expect. I am going to make a unit test of this and work on fixing...
Note to self: Creating the unit test for this will likely require addressing #122 first.
[Initial work in progress.](https://github.com/ejmr/php-mode/blob/document-customizing-indentation/README.md#customizing-indentation-styles)
> Can we include an example on how to get it back to the GNU style C indentation that earlier versions of php-mode used to use? Good idea. It can...
> It seems older php-mode was essentially GNU indentation style with some slight adjustments. I never used the `"gnu"` style so I honestly wasn't aware that PHP Mode originally made...