Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I color my code on Stack Overflow when posting an answer? [closed]

Tags:

colors

How can I color my code on Stack Overflow when posting an answer? How should I format my code?

like image 979
Wasim A. Avatar asked Feb 25 '11 07:02

Wasim A.


People also ask

How do you answer a closed question on Stack Overflow?

Closed questions cannot and should not be answered at all. They have to be reopened to get an answer, and they can only be reopened if the Question content itself is an appropriate question. Comments don't count. So edit the Question, and get it to a point where it should be opened, and then vote to reopen.

Is taking code from Stack Overflow illegal?

So, in summary: code snippets on Stack Overflow are protected by copyright unless they are so small that any two programmers would come up with substantially the same code.

Why Stack Overflow is yellow and red?

The colors are designed to draw the user's attention to certain features of the site.


1 Answers

Select your code and press CTRL+K

Also add your language as a tag in your question or answer

like image 150
Harry Joy Avatar answered Sep 18 '22 13:09

Harry Joy