I have not found it anywhere so I am asking.
How can I write string with upper index? Prefferably in resources.
For example I want write square meters as m2 where 2 is upper index.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If it is only for ² and ³: Those are available at UTF 00B2 resp. 00B3 so you can just use the entity notation:
The area is 2 m\u00B2.. Or use the character directly, if your keyboard supports it or copy and paste it into the file.