PL/SQL Developer:变量名语法高亮显示



是否可以突出显示SQL窗口中的所有变量,以'l'或'g'开始?我们的样式代码要求我们以这样的方式调用变量名,例如,局部变量以'l'为前缀,全局变量以'g'为前缀,等等。

不,不可能。你甚至不能通过编写自己的pl/sql开发者插件(你可以在pl/sql developer安装目录下的PlugInDoc子文件夹中找到开发pl/sql开发者插件的指南和一些示例)。

即使编写插件,你也只能添加一组已知的关键字:你不能添加基于前缀或子字符串的语法高亮方案。

这是为插件开发人员提供的仅有的两个调用的文档,用于影响语法高亮显示:

 ---IDE_SetCustomKeywords : Available in version 300
      C++     void IDE_SetCustomKeywords(char *Keywords) 
      Delphi  procedure IDE_SetCustomKeywords(Keywords: PChar) 
 Fills the custom keywords with the words in the Keywords parameter. 
 Words should be separated by cr/lf. 
 The currently used keywords will be overwritten. 

 --- IDE_SetKeywords : Available in version 300
     C++     void IDE_SetKeywords(int ID, int Style, char *Keywords) 
     Delphi  procedure IDE_SetKeywords(ID, Style: Integer; Keywords: PChar) 
 Adds a number of keywords with a specific style. 
 This function is more specific then IDE_SetCustomKeywords because 
 this one can set multiple sets of keywords for different highlighting styles.
 ID should be the PlugIn ID as returned by the IdentifyPlugIn function. 
 Style can be one of the following values: 
 10: Custom 
 11: Keywords 

最新更新