It is possible, but I don't know how is it done.
相关问题
- Resharper 7 on VS2012 ignores assembly redirect in
- Error installing MVVMCross from nuget into a PCL
- Why can't I bind to winproc?
- Getting Sum of an SQL table column until the sum r
- OPENCV linking Error - Win32 & VS2012
相关文章
- Visual Studio Hangs on Loading UI Library
- “Csc.exe” exited with code -1073741819
- Add Fakes Assembly option missing
- Visual Studio wants to build with wrong platform t
- Visual Studio 2012 debug tests keyboard shortcut
- Visual Studio: How to properly build and specify t
- What are skipped tests in visual studio?
- Visual Studio 2012 designer error
There are several solutions. Personally, I simply formaat the label text in Word, use a screen capture and save it as an image that I use with a label.
Use the Windows Charmap.exe applet. In the Font combobox select a font that has a lot of glyphs, Arial Unicode MS is a very good choice. Tick the Advanced view checkbox and type "super" in the Search box. The grid will show all superscript glyphs, select and copy from that and paste into your source code.
Or copy/paste one of these:
¹²³⁴⁵⁶⁷⁸⁹⁰
Subscript characters:
₀₁₂₃₄₅₆₇₈₉
One more way for WPF users,
Change BaselineAlignment to TextBottom if you want to use as subscript.
Since there is a tag visual-studio-2012, I assume you are running Windows. There is a great opensource program called WinCompose, which allows to use easy-to-remember and intuitive shortcuts for a huge amount of Unicode symbols, including numerical super- and subscripts. Every shortcut is invoked via a
Meta
key (e.g.Right Alt
), for example:Meta
+^
+1
gives¹
;Meta
+_
+9
gives₉
.WinCompose also supports search, can be run in background, and eliminates tedious procedure of calling Character Map with subsequent copy-pasting or remembering the Unicode charsets (but the latter are also listed):
P. S. I'm not affiliated with this software by any means. Just a happy user.
Adding more details to complement @HansPassant's answer. Other frequently used sets which can be used as is by copy/paste:
Superscript small case letters:
ᵃᵇᶜᵈᵉᶠᵍʰⁱʲᵏˡᵐⁿᵒᵖʳˢᵗᵘᵛʷˣʸᶻ
Subscript small case letters:
ₐ ₑ ₕ ᵢ ⱼ ₖ ₗ ₘ ₙ ₒ ₚ ᵣ ₛ ₜ ᵤ ᵥ ₓ
If you're wondering why few letters are missing in above series then please read below posts: