Is there an open source project out there (written in Java Script or otherwise, for formatting code samples for well-known programming langauges?
I'm trying to create a documentation website that includes code samples. Here is an example of what my html looks like:
<pre><code>//example c#/html/etc code here</code></pre>
I'm using MarkDownSharp to format and encode the sample code, but Markdown doesn't handle the coloring. I notice when adding code samples to Stack Overflow, it automatically colors it in, making it much more readable.
Is this a proprietary technology that SO uses, or is that available somewhere?
I think CodeMirror is the one you need.
jsfiddle is using this libary as well