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

时间:2015-08-12 07:48:41

标签: syntax-highlighting plsqldeveloper

是否可以突出显示SQL窗口中的所有变量,以“l”或“g”开头?我们的样式代码使我们以这种方式调用变量的名称,例如,局部变量以“l”为前缀,全局为“g”,依此类推。

1 个答案:

答案 0 :(得分:1)

不,这是不可能的。您甚至可以通过编写自己的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