Color Splash is a website and a service that you can use to pygmentize your code.
I am a big fan of Jekyll and I use it for my blog. I used to write a lot about programming, therefore I often needed to add a code snippets in my posts. Jekyll makes it very easy, but the more posts you have that uses Jekyll's approach, the more difficult it would be to migrate to another platform. There is also a problem with Windows. It can be resolved, but if you are not a technical person, it is a pain in the ass.
A while ago I decided not to use the Jekyll's support for pygments and started to generate all the necessary HTML directly with Pygments. It solved one of the problems, but it still requires you to have Python and Pygments installed and configured correctly. If you are on Windows, you do not want to do that (believe me, I know).
Color Splash was born in one day out of my frustration with Python (no offence, pythonistas), and it resolves all of my problems with code snippets. You still get the power and flexibility of Pygments, but you do not need to worry about all the dependencies.
There are 3 ways you can use Color Splash:
- Use it directly from the site (genius).
- Use it as a service by posting to the
http://color-splash.dzerviniks.com/html/generate/raw
URL and sending a JSON object withcode
andlexer
keys. - Fork it and create your own service :)
- Add more lexers.
You can always find me on Twitter as @aigarsdz.