Can you recommend a CSS stylesheet that formats C# code? [closed]
Asked Answered
F

2

6

I'm working on a code generation tool where the output is display in a tag and wondered if anyone knew of a CSS stylesheet that would format the output. My rendering engine is Javascript based and I'd like to continue perform all operations of rendering client side.

Football answered 30/11, 2009 at 15:48 Comment(0)
R
6

JavaScript isn't client side? Or am I not understanding your question?

you may want to look at Google Prettify, which, if I remember correctly, is what StackOverflow uses

Reseda answered 30/11, 2009 at 15:53 Comment(1)
Thanks Neil - Prettify will do the trick.Football
K
5

You could take a look at http://alexgorbatchev.com/wiki/SyntaxHighlighter . It is web based, open source, and uses separate CSS style sheets for formatting and highlighting. Not sure if it is exactly what you want, but maybe worth a look.

Keeter answered 30/11, 2009 at 15:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.