Question

I've been searching google for a while to determine the most coder-friendly example boxes.

I'm wanting to share varying forms of ECMA script (JS for example) etc that provides the user with color coding and a simple way of copying the code. I know there are several out there, but I wanted to get some opinions from SOF since you guys probably have good experience with code.

so- What's the code-sharing tool you [would] use?

the solution

I ended up using Gist for complete snippets and am using Syntax Highlighter for *incomplete * code samples. There's a Drupal plugin for the Syntax Highlighter, but I dare say it's more of a pain to figure out the plugin than it is to just do things the old fashioned way (old fashioned being like 5 years ago..)

Was it helpful?

Solution

gist has syntax highlighting and users can download the files separately, as a zip archive or using git. You can embed the files easily on other sites.

Additionally, the site tracks changes and other users can add comments or fork a gist to change it themselves.

OTHER TIPS

I use http://jsfiddle.net/

Color coding — check
HTML, CSS, JS — check
Live demo — check

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top