Live data from Hacker News

Posterous adds markdown and syntax highlighting support

blog.posterous.com

11–20 of 37 posts

Re: Posterous adds markdown and syntax highlighting support

#14
post #12

I'm surprised they went with CodeRay rather than a more fleshed-out highlighting library. They only list 20 or so supported languages, whereas something like Pygments (which Github uses) supports closer to 100.

So it's more the library they're using? I thought it was strange they support Delphi and Java but not C#.

Re: Posterous adds markdown and syntax highlighting support

#15
post #10
post #9

Wonderful! Every day, more and more reasons not to build my own blogging engine. One wee request? If you've got the inclination, Clojure's a language that's growing fast and is eminently useful: it might be useful to have a highlighting mode for it. Keep up the good work!

Second vote for Clojure, though a generic Liap dialect ought to get you halfway there.

The Lisp syntax-highlight category has been killed by lisppaste:

http://paste.lisp.org/

Re: Posterous adds markdown and syntax highlighting support

#16
post #14
post #12

I'm surprised they went with CodeRay rather than a more fleshed-out highlighting library. They only list 20 or so supported languages, whereas something like Pygments (which Github uses) supports closer to 100.

So it's more the library they're using? I thought it was strange they support Delphi and Java but not C#.

Yeah. Syntax highlighting plugins take effort to write for any highlighting library, so usually a major decision factor is the plugins already available.

Re: Posterous adds markdown and syntax highlighting support

#18
I didn't use Posterous because it lacked markdown support. Funny though, that a little over a year ago, "Gary Tan" (company rep) said the company wanted to implement this "soon".

http://getsatisfaction.com/posterous/topics/markdown_or_anot...

Better late than never, eh?

Re: Posterous adds markdown and syntax highlighting support

#19
post #15
post #10

Earlier quoted context omitted.

Second vote for Clojure, though a generic Liap dialect ought to get you halfway there.

The Lisp syntax-highlight category has been killed by lisppaste: http://paste.lisp.org/

Doesn't do anything for Clojure.

Re: Posterous adds markdown and syntax highlighting support

#20
post #12

I'm surprised they went with CodeRay rather than a more fleshed-out highlighting library. They only list 20 or so supported languages, whereas something like Pygments (which Github uses) supports closer to 100.

Truth is, I picked CodeRay for two reasons. It's fast and it's pure ruby. Pygments is great and I spent some time on a version that used it but CodeRay just fits better within our app. It's pure ruby, supports most languages I thought we should start with, it's extensible and has a roadmap for things that I could see our users asking for.
Post reply on HN