Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tm4e-dev] Tm4e as standalone source viewer

Hi,

I suggest you that you use a TextViewer instead of StyledText and you could create your own TMViewer like https://github.com/eclipse/tm4e/search?q=TMViewer&unscoped_q=TMViewer

Reagrd's Angelo

Le lun. 18 févr. 2019 à 09:55, Mickael Istria <mistria@xxxxxxxxxx> a écrit :
Hi,

I don't think TM4E provides directly the API to colorize directly a StyledText widget, with something like `TMUiPlugin.colorize(styleText, "source.js")` or `TMUiPlugin.computeStyleRanges(styledText, "source.js")`. It would be a good thing if you could develop and contribute such API to TM4E. Looking at TMPresentationReconcilier and trying tp extract some reusable finer-grained methods would be the best entry-point.

Cheers.
_______________________________________________
tm4e-dev mailing list
tm4e-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/tm4e-dev

Back to the top