News for hackers. Stuff that matters.
Re:World’s largest battery maker announces major breakthroug... by supernova87a on Friday April 21, 2023 @08:24AM (#35652665)
by the way, how did you do all those subscript formatting tricks?? It would be great to know how to post more advanced things in the comments here.
Re:World’s largest battery maker announces major breakthroug... by the_third_wave on Friday April 21, 2023 @08:34AM (#35652757)
I use the compose key (which I mapped to Scroll Lock) for subscript:

  <compose> + _ + [0-9]
For superscript I use a dead key, ^:

  superscript: ^ + [0-9]
O₀ … O₉

O⁰… O⁹

Re:World’s largest battery maker announces major breakthroug... by jwilk on Friday April 21, 2023 @09:38AM (#35653559)
Re:World’s largest battery maker announces major breakthroug... by dspillett on Friday April 21, 2023 @11:44AM (#35655495)
Assuming you are on desktop/laptop:

The long-winded way is to use your OS's character map tool: find the glyph you want there and copy+paste. Under Windows 10+ there is the emoji keyboard (hit [win]+;) which also gives access to much more including super-/sub- script characters, which is a little more convenient than character map. Presumably other OSs have similar available too.

Better is to have support for a compose key sequence. Usually build in to Linux & similar, you just might have to find the setting to turn it on and configure what your compose key is. Under Windows I use http://wincompose.info/ and there are a couple of similar tools out there. In any case it is useful for more than super- and sub-scripts: accented characters & similar (áàäæçffñ), some fractions (¼,½,¾), other symbols (°∞™®↑↓←→‽¡¿⸘♥⋘»‱), and configurable too so you can make what you use most easiest to access (and if you are really sad like me you can do something https://xkcd.com/2583/ to type hallelujah too!).

On mobile devices a fair few “special” characters are usually available (though it depends what keyboard you have installed) via long-press on the right keys of the virtual keyboard.