18 Responses

  1. Mike Schinkel (@mikeschinkel)
    Mike Schinkel (@mikeschinkel) March 16, 2013 at 19:21 | | Reply

    Hi Jean,

    I considered using Gist for HardcoreWP but decided against it because I find their color syntax highlighting less than inspiring and I don’t like the fact that the “View Raw” loads another page vs. a pop-up. Instead I’m using Better WordPress Syntax Highlighter which uses GeSHi on the server side vs. a Javascript highlighter.

    To resolve the editor situation I wrote a simple plugin to disable WYSIWYG mode and then I write my posts in Markdown Pro (which I love). But it’s still a pain because I have to manually change the markup surrounding the code before I post.

    However, you’ve got me thinking about creating another plugin that will let me name and add code snippets in a metabox and then use a shortcode to merge them into the post by name exactly where I want them. Something else for my todo list!

  2. Brian Jackson
    Brian Jackson March 17, 2013 at 04:31 | | Reply

    Thanks for the writeup on this. Had me excited. But after testing for a little bit I realized that the syntax coloring for PHP doesn’t register unless you add the starting PHP tag at the top. For snippets I don’t actually want that because it can confuse users.
    I bet they will improve this with time, but for now I think I am going to stick with Google Syntax Highlighter for WordPress. I love the idea though of GIST, and managing all my code snippets from blog in a central location.

  3. Brian Jackson
    Brian Jackson March 17, 2013 at 08:04 | | Reply

    Oops, ya I was referring to Gist in my comment.

  4. Mahesh
    Mahesh May 22, 2013 at 12:01 | | Reply

    The code resides on Github servers and anyone can share that code in their blog posts right. If that saves a plugin from our WordPress installation , that’s good thing for WordPress blogs hosted in shared hosting

Leave a Reply