Re:Distraction free writing and the simplest blogging platfo...
by sfard on Sunday January 06, 2013 @06:43PM
(#5018299)
A front-end dev friend of mind asked for code-embedding/syntax highlighting too! I'd be happy to add it if I can come up with an elegant implementation. Is there a "markdown" for code that you know of?
Re:Distraction free writing and the simplest blogging platfo...
by Shank on Sunday January 06, 2013 @06:46PM
(#5018309)
Github uses Pygments: http://pygments.org/
I don't know what language you're using, but here's a Ruby library for it: https://github.com/tmm1/pygments.rb
Edit: Scrolled down and saw Django. Pygments is native to Python, so you might be in luck if you want to use that.
Re:Distraction free writing and the simplest blogging platfo...
by sfard on Sunday January 06, 2013 @09:07PM
(#5018832)
Awesome, thanks. Will definitely add code support in coming days/weeks.
Re:Distraction free writing and the simplest blogging platfo...
by lighthazard on Sunday January 06, 2013 @10:09PM
(#5019058)
http://alexgorbatchev.com/SyntaxHighlighter/ is a great place to start.
Re:Distraction free writing and the simplest blogging platfo...
by tikhonj on Sunday January 06, 2013 @08:27PM
(#5018681)
If you're going to add support for code (and you should!), consider also adding support for TeX. Something like MathJax[1] should work well.
Re:Distraction free writing and the simplest blogging platfo...
by manveru on Monday January 07, 2013 @09:31AM
(#5021076)
I always like https://code.google.com/p/google-code-prettify/
Also, I usually stick to Wordpress because you can embed code. Any plans to allow syntax highlighting?
Thanks!