What should I use in Emacs to develop PHP files with SQL queries?
When indenting the buffer, the code should look like this:
<?php
$query = "
SELECT
id,
name
FROM
products
WHERE
id > 12"
?>
In web mode and in php mode it looks like this:
<?php
$query = "
SELECT
id,
name
FROM
products
WHERE
id > 12"
?>
If this is not possible, one alternative would be to enable manual indentation (using TABand Shift TAB, as in Sublime and other editors), when in multi-line lines in PHP code. How should I do it?
source
share