There are some text formats which help us to provide more readable answers,comments,questions but I learned them by Editing other answers, I don't know where is the source, for example:

code style (ctrl+k or `your text`)

Big Style (#Big Style)

Bold Style (ctrl+b or **your text**)

some functionalities like: &le; → ≤ or &Omega; → Ω or a<sub>1</sub> → a1 , ...

....

But I don't know other text magics for this site, The &x; format is not exactly same as Tex symbols and it's not easy to find true format. I think there should be a guidance for this Formats and other hidden features of SO.

Also this formattings does not work in code style, for example if I have a pseudocode and I want to use &x; formats It wouldn't work there.

share|improve this question
    
text magics for this site is at meta.stackoverflow.com/questions/3122/formatting-sandbox –  gnat Feb 17 '12 at 11:52
    
related: meta.stackoverflow.com/questions/1777/… –  Flexo Feb 17 '12 at 13:45
    
@awoodland, thanks very nice. –  Saeed Feb 17 '12 at 17:09
add comment

2 Answers

up vote 4 down vote accepted

&le; and similar are HTML character entities. You can generate pretty much any symbol using them. See the linked list for more.

You can also of course just paste the character itself instead of the entity. For example &rarr; will produce →, but it's the same when I just copy the arrow → (see the source of this post to see what it looks like).

You can also paste them from a Character viewer like on OS X:


To "fake" code, you can create a blockquote with >, and then wrap the actual code in backticks.

> `this.looksLike("code")` &rarr; but it isn't!

will result in:

this.looksLike("code") → but it isn't!


The rest of allowed HTML and Markdown syntax you can find here:

What HTML tags are allowed on Stack Exchange sites?

Stack Overflow Editing Help

You can generate many desired looks with this. Feel free to experiment in the formatting sandbox, where others test or show off their HTML h4xx0r skillz.

share|improve this answer
    
Wow very nice, but you know how to enable them in codding format for example using &rarr; in coding format? Or in comments? –  Saeed Feb 17 '12 at 12:00
    
Also this not shown a<sub>1</sub> format or similar approaches for power, .... –  Saeed Feb 17 '12 at 12:03
    
HTML entities aren't allowed in comments. For the "fake" code, see my edit above. –  slhck Feb 17 '12 at 12:24
add comment

With a little bit of experimenting I've fount that:

&le;
&ge;
&div;
&plus;
&minus;
&times;
&equals;
&not;

gives:



÷
+

×
=
¬

share|improve this answer
    
These are simple ones e.g my sample &rarr; is harder than them, but there is lot of such things, and they aren't same as Tex format, there should be some good guidance not experience. –  Saeed Feb 17 '12 at 11:55
    
@Saeed - see the Wikipedia page linked to by slhk in his answer –  ChrisF Feb 17 '12 at 11:57
    
I see that chris. –  Saeed Feb 17 '12 at 12:01
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .