Interface SyntaxSupport

interface for custom syntax highlight, comments toggling, smart indents, and other language dependent features for source code editors

Properties

Name Type Description
content [get] EditableContent returns editable content
content [set] SyntaxSupport set editable content
supportsToggleBlockComment [get] bool return true if toggle block comment is supported for file type
supportsToggleLineComment [get] bool return true if toggle line comment is supported for file type

Methods

Name Description
applySmartIndent apply smart indent after edit operation, if needed
canToggleBlockComment return true if can toggle block comments for specified text range
canToggleLineComment return true if can toggle line comments for specified text range
findPairedBracket returns paired bracket {} () [] for char at position p, returns paired char position or p if not found or not bracket
supportsSmartIndents returns true if smart indent is supported
toggleBlockComment toggle block comments for specified text range
toggleLineComment toggle line comments for specified text range
updateHighlight categorize characters in content by token types

Authors

Vadim Lopatin, coolreader.org@gmail.com

Copyright

Vadim Lopatin, 2014

License

Boost License 1.0