How to style a code block to make all the colours look pretty like my IDE and here in stackoverflow?
- by BritishDeveloper
When putting code samples in my blog I would like the code to have all the appropriate colours. How can I do that?
Basically if I write:
foreach (ListItem item in items)
{
item.Text = "something";
}
I want it to appear in the correct colours like it does in my Visual Studio or here at stack*overflow*.
I'm bored of styling the colours of each key word manually. Is there a pre-existing javascript library I can use?