Live data from Hacker News

Posterous adds markdown and syntax highlighting support

blog.posterous.com

1–10 of 37 posts

Re: Posterous adds markdown and syntax highlighting support

#2
The line numbering behavior is curious. They seems to disappear when I click, but not if I click-and-drag to select.

Syntax highlighting with line numbers is tricky business. It is very difficult to get both 1) Perfectly aligned numbers and 2) Support for copy and paste without numbers.

There must be a decent Javascript solution...

Re: Posterous adds markdown and syntax highlighting support

#4

The line numbering behavior is curious. They seems to disappear when I click, but not if I click-and-drag to select. Syntax highlighting with line numbers is tricky business. It is very difficult to get both 1) Perfectly aligned numbers and 2) Support for copy and paste without numbers. There must be a decent Javascript solution...

Yeah, line numbering is tricky. That's why we hide the numbers when you click -- it's a mode that's built into CodeRay.

Note you can still just paste github gists on their own line and we expand those too -- so that's still another option.

Also you can probably just hide line numbers completely using CSS if you customize your theme.

Re: Posterous adds markdown and syntax highlighting support

#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!

Re: Posterous adds markdown and syntax highlighting support

#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.
Post reply on HN