擅长:python、mysql、java
<p><code>QSciLexer*</code>类的名称有误。他们根本不是真正的雷克萨斯人。相反,它们为基于闪烁体的编辑器<a href="http://www.scintilla.org/SciTE.html" rel="nofollow">SciTE</a>使用的<em>属性文件提供包装器。属性文件包含配置特定闪烁词法器所需的所有设置(字体、颜色、关键字等)。在</p>
<p>默认情况下,QScintilla不为闪烁支持的每种语言提供<code>QsciLexer*</code>类。它只为最常用的语言提供一个,外加用户在<a href="http://www.riverbankcomputing.com/mailman/listinfo/qscintilla" rel="nofollow">mailing list</a>上请求的任何语言。AFAIK,Qscintilla的作者很乐意为scribella支持的任何语言添加一个<code>QsciLexer*</code>类,唯一的要求是为相应的lexer存在一个可用的SciTE属性文件。在</p>
<p>不幸的是,当前的SciTE源没有包含Progress 4GL lexer的属性文件!然而,完全有可能是有人在某个时间创建了一个,所以稍加搜索就可能产生一个。如果做不到这一点,你总是可以自己创造一个。在</p>
<p>PS:QScintilla不允许正确地将<code>QsciLexer</code>类作为子类(一些关键的虚拟函数不是公共的),这是一个真正的烦恼。如果是这样的话,就可以为spriclla支持的任何语言创建一个自定义包装器类,而不必要求Qscintilla的作者添加一个。在</p>