Return to Index
created by gbSnippets
'Scintilla is an open source text editing component, with features which
'make it particularly useful for editing source code. It comes with complete
'source code and a license that permits its use in any free project or
'It is similar, though much more powerful, in usage to a Windows RichEdit
'control, but uses messages that are unique to the Scintilla control.
'Key features related to use as a source code editor include:
' - Syntax Highlighting - selectively apply colors/fonts to keywords/punctuation
' - Call Tips - display popup window, content based on what user has typed
' - AutoCompletion - display selectable text list based on what user has typed
' - Folding - hide/display portions of source code
'These features are largely implemented within Scintilla, but do require that
'the container application provide a fair amount of coding. The features are
'greatly facilitated, but not completely provided, by the Scintilla control.
'The combination of call tips and autocompletion features are similar in scope to the
'Intellisense feature that programmers are use to seeing in Microsoft language IDEs.
'Scintilla uses what it calls a "style", which is identified by a style number. Each style
'number can be assigned FG/BG colors, a font, and other attributes. Each character contained
'in the Scintilla control can indepently be assigned a style. The combination of styles
'applied to to the content of the control is often referred to as "syntax highlighting".
'In Scintilla terminology, the code which applies a style to each character entered into the
'control is called a lexer. Lexers break the content into language objects (keywords, strings,
'operators, ...) and decide which style to apply to each object. Scintilla comes with a number
'of pre-defined lexers, corresponding to a variety of supported programming languages.
'Scintilla also allows the container application to override the built-in lexers in two
'ways - using code within the application or by using an external lexer DLL.
'For more information, see the Scintilla Web Site: http://www.scintilla.org
'The 40+ PowerBASIC snippets in this library demonstrate the various features of
'Scintilla, which is (soon-to-be) used as the gbSnippet's source code editor. You
'can also view the snippets online at http://www.garybeene.com/power/code.
'Another example of PowerBASIC source code which uses Scintilla can be found at
'Jose Roca's web site. His free SED editor uses the Scintilla control and the source
'code for the editor is available at his site, http://www.jose.it-berater.org.
created by gbSnippets