[英]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. 当一个SQL块被包含在PHP中的引号(表示一个字符串)时,突出显示该SQL语法会很棒。 I'm looking for standard SQL highlighting at the very least, but PostgreSQL 9.1 compliant would be exactly what I need.
我至少在寻找标准的SQL突出显示,但PostgreSQL 9.1兼容性正是我所需要的。 I'm open to any suggestions no matter how complex (eg recompiling Netbeans) to achieve this.
无论多么复杂(例如重新编译Netbeans)来实现这一点,我都会接受任何建议。
All the IDE's make the sintax highlighted with auto tokenize approach List of Parser Tokens . 所有IDE都使用自动令牌化方法突出显示sintax ,解析器令牌列表 。 In this case the SQL text and the simple text in echo/print are same token (T_STRING).
在这种情况下,SQL文本和echo / print中的简单文本是相同的标记(T_STRING)。 With a hard hacking in the IDE to see sintax highlighted SQL text's, all text are also afected.
通过在IDE中进行严格的黑客攻击以查看sintax突出显示的SQL文本,所有文本也都受到了影响。
Sublime_text具有这种功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.