문제

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..)

도움이 되었습니까?

해결책

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.

다른 팁

I use http://jsfiddle.net/

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top