5 ms·
Posterous adds markdown and syntax highlighting support
- snprbob86 16y agoThe 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...
- rantfoil 16y agoYeah, 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.
- bradgessler 16y agoCool. When are you guys going to support posting Ruby rack applications? TeX and PostScript would be a nice addition too.
- deleted 16y ago[deleted]
- NathanKP 16y agoDoes the syntax highlighting support mixed PHP and HTML? Very few online syntax highlighters seem to handle this very well, not even gists from github.
- ihodes 16y agoWonderful! 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!
- mcav 16y agoSecond vote for Clojure, though a generic Liap dialect ought to get you halfway there.
- mhartl 16y agoThis was the last thing keeping my tech blog at WordPress. Bravo!
- nex3 16y agoI'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.
- MrRage 16y agoSo it's more the library they're using? I thought it was strange they support Delphi and Java but not C#.
- nex3 16y agoYeah. Syntax highlighting plugins take effort to write for any highlighting library, so usually a major decision factor is the plugins already available.
- twoism 16y agoTruth 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.
- nex3 16y agoFrom a user's perspective, at least, I would think that language coverage would trump most other things when considering different highlighters.
- twoism 16y agoTrue. However, working within our architecture and finding a good fit for most use cases was what trumped all else for the feature launch. I like the library we chose and hope it gains traction as a pure ruby highlighting lib but if for some reason it doesn't fit our users needs, we can certainly find a way to accommodate them.
- 16y ago
- alecthomas 16y agoThank God! Their editor was horrendous for applying any kind of precise formatting. I stopped using Posterous because of it, now I will happily be able to try it again!
- iamwil 16y agoI was about to quit posterous for my technical blogs because of the bad code posting support, and then they come out with this. It's like they read my mind, and feedback.
- Judson 16y agoI 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_another_simple_markup_in_posterous http://getsatisfaction.com/posterous/topics/markdown_or_anot... Better late than never, eh?
- tdavis 16y agoPosterous was in my YC batch and the first thing I suggested to them was reST support. They've obviously had bigger fish to fry. Meanwhile, instead of taking an hour to implement a simple script to process markdown files into HTML and send them to Posterous, you've chosen to complain that a super-niche feature was actually released.
- epochwolf 16y agoThere is no reST library for ruby that I could find.
- tdavis 16y agoYeah, I wouldn't really hold my breath for one, either. The closest anybody has come as far as I can tell is here: http://github.com/alphabetum/rbst http://github.com/alphabetum/rbst and all that does is wrap docutils' reST processing.
- Judson 16y agoMarkdown is super-niche? News to me. The point is not about complaining, its that the company said a year ago that they would push it soon
- speby 16y agoYea, really, who cares? The overwhelming majority of people will never use this feature.
- DCoder 16y agoAw, no assembler highlight. Even nano can do that...
- swombat 16y agoA tad slow! I think I requested this a couple of years ago :-P Garry added some preliminary support back then, but it never worked properly. Good to see it works better now.
- aidanf 16y agoThe feature I would really like to see added at Posterous is the ability to opt out of having affiliate links added to my posts. I was looking through the user preferences yesterday to see if they had added this option but couldn't see anything. I was on the verge of moving my blogs to Posterous when the affiliate link thing came to light. I can't see myself going back to the service until I can opt out of that.