Skip to content

Releases: boatbomber/Highlighter

v0.9.0: Add buildRichTextLines

11 Nov 01:31
Compare
Choose a tag to compare

v0.8.3: Add `buffer` library

28 Mar 07:43
9d5330f
Compare
Choose a tag to compare

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

09 Aug 06:26
Compare
Choose a tag to compare
  • 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

25 Jul 00:15
Compare
Choose a tag to compare
  • 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

25 Jul 00:08
d9be2e2
Compare
Choose a tag to compare

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

07 Jan 20:59
Compare
Choose a tag to compare

Adds support for Luau's string interpolation syntax.

image

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

24 Nov 19:56
Compare
Choose a tag to compare

v0.6.0 Custom tokens, exposed language, & efficient shortcuts

21 Nov 23:19
Compare
Choose a tag to compare
  • Adds support for custom tokens via props.customLang. For example, {foo = "function"} will highlight occurrences of foo in the color set for "custom".
  • Exposes the language in the lexer as lexer.language, accessible via Highlighter.defaultLexer.language. Also adds type info into the language file instead of just true.
  • 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

18 Sep 21:14
Compare
Choose a tag to compare

v0.5.1 Initialize with default colors

18 Sep 19:52
Compare
Choose a tag to compare