How to write superscript characters in gedit?

A Character Map plugin is available for gEdit. Enable the plugin in the Preferences. Enable the Side Pane in the View menu. Click on the Character Map icon at the bottom of the Side Pane, then choose "Common" and you will find the superscript 4 (even though it looks like am missing superscript 1-3). Below that are the subscripts and other special characters.

To use a certain character, just drag it from the character map on the Side Pane to the document. You can then copy-paste it in the right position.

From a question in the comments below:
After enabling the character map plugin, you can open/view the characters by click the icon that looks like a key with an "a" on it on the bottom left corner.

In my screenshot below, there are three icons in the Side Pane: The first is the documents icon to view all open documents, the second is the file browser for the file browser plugin and the third is the Character Map plugin.

Check screenshot below:

enter image description here


As terdon said, an ASCII Text file means ONLY text, no formatting as in Libreoffice writer files.

But in the specific case , you can use the unicode characters that refer to superscripted 0-9 and subscripted 0-9.

Here are they ⁰ ¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ ₀ ₁ ₂ ₃ ₄ ₅ ₆ ₇ ₈ ₉

A document on how to tpye special characters is available offline in Ubuntu Desktop Guide(search for Enter special characters) as well as online here on gnome.org.


gedit can and does support Unicode files. Use the Character Map to obtain Unicode characters. The Character Map isn't part of gedit, but is a separate application. Just click the Dash button in the corner and type 'Character Map'. Or press Alt+F2 and type charmap and press enter.

Tags:

Gedit