How to style a code block to make all the colours look pretty like my IDE and here in stackoverflow?
Posted
by BritishDeveloper
on Stack Overflow
See other posts from Stack Overflow
or by BritishDeveloper
Published on 2010-03-31T16:15:05Z
Indexed on
2010/03/31
16:33 UTC
Read the original article
Hit count: 402
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?
© Stack Overflow or respective owner