Documentation
¶
Overview ¶
Package regexstyle provides a widget that highlights the content of its subwidget according to a regular expression. The widget is also given an occurrence parameter which determines which instance of the regex match is highlighted, or if -1 is supplied, all instances are highlighted. The widget currently wraps a text widget only since it depends on that widget being able to clone its content.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentWidget ¶
type ContentWidget interface { gowid.IWidget Content() text.IContent SetContent(gowid.IApp, text.IContent) }
This is the type of subwidget supported by regexstyle
type Widget ¶
type Widget struct { ContentWidget Highlight }
func New ¶
func New(w ContentWidget, hl Highlight) *Widget
func (*Widget) RegexMatches ¶
func (*Widget) SetRegexOccurrence ¶
Click to show internal directories.
Click to hide internal directories.