PL/SQL 开发者:变量名语法高亮显示

PL/SQL Developer: variable name syntax highlighting

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

不,这是不可能的。你甚至不能通过编写自己的 pl/sql 开发人员插件来做到这一点(你可以在 pl/sql 安装目录的 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