diff --git a/twitter/widget.go b/twitter/widget.go index d878cca2..8b744900 100644 --- a/twitter/widget.go +++ b/twitter/widget.go @@ -80,6 +80,10 @@ func (widget *Widget) highlightText(text string) string { linkRegExp := regexp.MustCompile(`http[s:\/.0-9A-Za-z]*`) result = linkRegExp.ReplaceAllString(result, "[lightblue::u]${0}[white::-]") + // Hash tags + hashRegExp := regexp.MustCompile(`#[0-9A-Za-z_]*`) + result = hashRegExp.ReplaceAllString(result, "[yellow]${0}[white]") + return result }