简体   繁体   English

在脚本中突出显示Netbeans SQL语法? (例如PHP)

[英]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.

相关问题 没有php标记的NetBeans语法突出显示 - NetBeans syntax highlighting without php tags 如何在PHP中循环$ num,例如1、2、3、4、1、2、3、4、1、2、3、4 - How to loop $num in php, e.g. 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4, PHP中的“ @”符号,例如“ @ $ name [1]”吗? - '@' symbol in php, e.g. '@$name[1]'? 将扩展的 Ascii“表”代码(例如─、┬)从 PHP 脚本打印到控制台的问题 - Issues with printing extended Ascii “table” codes (e.g. ─, ┬) to console from Php script 如何在特定时间间隔内运行PHP脚本(例如每天一次)? - How can I run PHP script in certain interval (e.g. once a day)? 如何在CLI中将命令和选项传递给PHP脚本(例如php file.php mycommand -d“ my option”) - How to pass commands and options to PHP script in CLI (e.g. php file.php mycommand -d “my option”) Netbeans语法高亮显示伏特(twig)和phtml文件中的PHP - Netbeans syntax highlighting for volt (twig) and php in phtml files SQL的扩展占位符,例如WHERE id IN(??) - Extended placeholders for SQL, e.g. WHERE id IN (??) 在netbeans中突出显示PHP shell脚本而不扩展的语法 - Syntax highlighting PHP shell scripts without extension in netbeans PHP - 更改字符排序顺序,例如“a”>“{”= True - PHP - Changing character sort order so e.g. “a” > “{” = True
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM