1. Double click on a shape or a connector to edit its label.
  2. Select the text in the label that you want to turn into a superscript or subscript.
  3. In the Text tab of the format panel on the right, click the Superscript or Subscript button.

Note: When you select the shape, make sure the Formatted Text checkbox is enabled so that you can see the Superscript and Subscript buttons in the Text tab.