Exponent in Text Area

Is there a way to get an exponent to appear in a text area?

In case you need just numbers you may use the super script Unicode digits like

²
SUPERSCRIPT TWO
Unicode: U+00B2, UTF-8: C2 B2

And a Xojo example:

me.text = “x² + x³”

2 Likes

See blog post here

SuperScript and SubScript for Xojo Textarea

And the sample project included with our plugins.

1 Like

According to this Wikipedia page, there should be more:

2 Likes

Awesome reference thank you Greg. I didn’t think of searching in that space.

Thanks Christian checking it out now :slight_smile:

Hi Christian,
It gives an NS Exception error on this line n.typingAttributes = att
Latest Xojo Version

The dictionary seems to have a nil value. Please check.