Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

I am not asking for the code its just general discussion.I want to know that when we paste our code how does it automatically gets the color of code exactly as we copied.

For Example:

cmd = New SqlCommand("select * from student_details", con)

how does it know that the "New" and "SqlCommand" is blue colored and

share|improve this question

migrated from Apr 19 '11 at 13:26

This question came from our site for professional and enthusiast programmers.

this might help you: There's several others out there. I just had that one bookmarked. – PiZzL3 Apr 18 '11 at 15:30

I believe Stack Overflow is using the Google code prettifier.

share|improve this answer

Questions about stackoverflow should be on on Meta but to answer your question take a look here

Source code syntax highlighting on stackoverflow wmd

share|improve this answer

You must log in to answer this question.

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