When a block of SQL is enclosed in quotes in PHP (denoting a string) it would be great to have that SQL syntax highlighted. I'm looking for standard SQL highlighting at the very least, but PostgreSQL 9.1 compliant would be exactly what I need. I'm open to any suggestions no matter how complex (e.g. recompiling Netbeans) to achieve this.
Asked
Active
Viewed 1,021 times
5
-
I suppose suggesting PHPStorm is not an option? :) – Artjom Kurapov Mar 22 '12 at 18:00
-
Funnily, NetBeans does have [code completion](https://netbeans.org/kb/docs/php/editorguide.html#cc-sql). – Álvaro González Oct 16 '13 at 08:14
2 Answers
2
All the IDE's make the sintax highlighted with auto tokenize approach List of Parser Tokens. In this case the SQL text and the simple text in echo/print are same token (T_STRING). With a hard hacking in the IDE to see sintax highlighted SQL text's, all text are also afected.

Diego Tolentino
- 29
- 2