Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans SQL syntax highlighting within a script? (e.g. PHP)

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.

like image 562
velo9 Avatar asked Nov 05 '22 03:11

velo9


1 Answers

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.

like image 144
Diego Tolentino Avatar answered Nov 07 '22 21:11

Diego Tolentino