Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am tired of the tinymce editor in wordpress and I really love the stackoverflow editor which allows me to write with markdown grammar. So I want to write blog with markdown in wordpress.

Now I am using this plugin in my wordpress:

Plugin Name: Markdown QuickTags
Plugin URI: http://brettterpstra.com/code/markdown-quicktags
Description: Replaces the WordPress QuickTags with Markdown-compatible ones
Version: 0.8.2
Author: Brett Terpstra
Author URI: http://brettterpstra.com
License: GPLv2

It replaces the original editor of wordpress and provides a light-weight interface for me to write with markdown. However, compared with Stackoverflow's editor, it lacks:

  1. The SO editor have auto syntax highlighting. I don't need to specify which kind of language I am typing in. The Markdown QuickTags plugin do not provide the ability for syntax highlighting, and plugins like Wp-markdown-syntax-highlight requires me to manually add a tag to indicate the type of language. Also, I have no idea if the two plugins could work together.

  2. The SO editor provides live preview, which is the most cool part of SO.

Is there any wordpress plugin(s), or combination of plugins that can meet my requirement? I personally could do some development but I know little about php and js, so it's really hard for me to write one from scratch (or from the two plugins I mentioned above).

Point 1 above is the most important. And I don't care if the plugin auto-converts markdown to html, or requires me to click a button like "render" before publishing.

share|improve this question

closed as off-topic by Rarst Sep 28 '13 at 22:32

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 37 down vote accepted

Welcome to WordPress stack exchange! Just yesterday I created WP-Markdown, which enables Markdown on your posts.

It also provides the same interface as this website (the toolbar, and live preview) - however, currently only for comments and bbPress forums (if enabled). That said, (since it would be straightforward to do), I am planning on adding an option to enable a 'back-end' live preview. Hope that helps.

Edit: Since 1.1 this now includes an option to enable the toolbar and preview for the post editor, and so now actually does what the OP asked for :D.

share|improve this answer
1  
+100 from me :) –  kaiser Mar 7 '12 at 11:30
1  
Ahhh this is reaaaaaaaaaaaaaaaly awesome! I can't wait to see a back-end version for wordpress' article and page editor! –  coolcfan Mar 8 '12 at 1:30
    
I am using WP-Markdown now. It's really good. I look forward to the stackoverflow style interface for wp back-end. One thing to ask: how does the article with markdown stored in the db? Is it rendered to HTML when showing the post, or on saving the post? –  coolcfan Mar 8 '12 at 2:39
    
It's saved to db as HTML so you can deactivate without any problems. –  Stephen Harris Mar 8 '12 at 8:38
1  
@AnthonyAlberto Change the return line of function loadPrettify() to return is_singular($savedtypes) || is_home(); may be one solution. The function is in WP-Markdown.php. Don't know the line number cuz' I edited it in WP's admin page. –  coolcfan Dec 18 '12 at 8:49

Not the answer you're looking for? Browse other questions tagged or ask your own question.