Releases: boatbomber/Highlighter
v0.9.0: Add buildRichTextLines
Full Changelog: v0.8.3...v0.9.0
v0.8.3: Add `buffer` library
What's Changed
- Add Buffer Library by @NidhoGames in #34
New Contributors
- @NidhoGames made their first contribution in #34
Full Changelog: v0.8.2...v0.8.3
v0.8.2 Fix: Label alignment always uses latest text
- Fixed an issue where TextBoundsChanged fires before TextChanged, causing the label alignment to use an outdated text
Full Changelog: v0.8.1...v0.8.2
v0.8.1 Fix: Refresh highlights when studio theme changes
- When matching studio settings, highlighted labels will refresh when the studio settings change
Full Changelog: v0.8.0...v0.8.1
v0.8.0 Better theming, layout support, internals, and docs
What's Changed
-
Update
language.lua
to include v569 and v576 changes by @BenMactavsin in #27 and #30 -
Added
Highlighter.getTokenColor(tokenName: types.TokenName): Color3
Mainly useful for setting "background" token color on other UI objects behind your text. -
Added
Highlighter.matchStudioSettings(): ()
Matches the token colors to the Studio theme settings and refreshes all highlighted textObjects.
Does nothing when not run in a Studio plugin. -
Support for UIPadding and LineHeight (and probably AutomaticSize but that's hard to test edge cases)
-
Support for FontFace so weights work correctly
-
Smarter internals that reduce wasted work during resizes, font changes, and other layout-only updates
-
Proper docs in the README
Full Changelog: v0.7.0...v0.8.0
v0.7.0 Support string interpolation syntax
Adds support for Luau's string interpolation syntax.
Accomplishing this required a pretty hefty rewrite of the lexer internals to be more versatile, which opens doors for more features down the road!
Full Changelog: v0.6.2...v0.7.0
v0.6.2 Handle cleanup being called during bounds polling
v0.6.0 Custom tokens, exposed language, & efficient shortcuts
- Adds support for custom tokens via
props.customLang
. For example,{foo = "function"}
will highlight occurrences offoo
in the color set for"custom"
. - Exposes the language in the lexer as
lexer.language
, accessible viaHighlighter.defaultLexer.language
. Also adds type info into the language file instead of justtrue
. - Efficient shortcuts to avoid as much work as possible. Doesn't update labels or populate tables that don't truly require it!
Full Changelog: v0.5.2...v0.6.0
v0.5.2 Don't skip blank labels
Full Changelog: v0.5.1...v0.5.2
v0.5.1 Initialize with default colors
Full Changelog: v0.5.0...v0.5.1