gb.highlight

自从 3.19

该组件提供了一个基于定义文件的语法高亮显示。

说明
TextHighlighter This class is the parent class of all syntax highlighters.
TextHighlighterStyle This class represents the style used for drawing a specific highlighter state.
TextHighlighterTheme This class implements an highlighter theme.

目前,提供了以下语言的高亮显示:
  • C language.

  • C++ language.

  • Cascading style sheets.

  • Diff output.

  • Gambas language.

  • HTML.

  • Javascript language.

  • Bash shell scripts.

  • SQL.

  • Gambas webpages.

The Gambas highlighter is not implemented by a definition file. Instead it is based on the Highlight.Analyze() method of the gb.eval component.

See also