blaffie
blaffie

Reputation: 505

Change color of specific characters in MATLAB Edit Text

I used two MATLAB Edit Texts to display data side by side.

I would like to highlight the differences between the two Edit Texts. The characters which are different should appear in red. Is there any method to achieve this?

An example of the intended output is shown:enter image description here

Upvotes: 0

Views: 204

Answers (1)

horchler
horchler

Reputation: 18484

It's not officially supported, as far as I know, but you can do this with HTML and bunch of hacking around with undocumented functions and Java. This post on the Undocumented Matlab site goes through the gory details. In particular, you'll need the findjobj utility from the MathWorks File Exchange.

Upvotes: 2

Related Questions