News for hackers. Stuff that matters.
Re:Distraction free writing and the simplest blogging platfo... by vjeux on Sunday January 06, 2013 @06:37PM (#5018270)
Would be nice to randomize the url id so that you cannot see all the posts that have ever been written just by doing +1 on the number.

Also, I usually stick to Wordpress because you can embed code. Any plans to allow syntax highlighting?

Thanks!

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)
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)
Re:Distraction free writing and the simplest blogging platfo... by fizx on Sunday January 06, 2013 @06:46PM (#5018308)
What language are you in? pygments seems to be the best regarded.