emacs-php / emacs-php/php-mode

Proposal for better indentation for SQL strings?

Open
#282 8 comments 1 reaction 0 assignees View on GitHub
Dominant language
Emacs Lisp
Stars
602
Forks
117
Avg merge
12h 54m
Merged PRs (30d)
3

Description

Would it be possible to indent on specific keywords of SQL strings in PHP-mode? For example, when I'm typing a SQL string, and press RET on line 2:

```
public function FooBar() {
$sSql = 'SELECT foo, bar
FROM footable
WHERE foo = 1'
}
```

I would like to see have the indentation in PHP-mode like this:

```
public function FooBar() {
$sSql = 'SELECT foo, bar
FROM footable
WHERE foo = 1'
}
```

Is that even possible?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.