I want to start a blog with lots of code examples (thus SyntaxHighlighter) but I also need to be able to do most of my editing in plain text (thus Markdown). I've tried to use them both with FormatStack, but it seems I get just one or the other, depending on the order in which they're "stacked." Am I doing something wrong? What do other people who blog about software do?
Reported on Movable Type 4.2
Answering my own question, I figured out how to do it here.
Thanks for finding that. I am not familiar with Markdown and I suspect it would have been a long time before I realized that.
I should probably add some verbiage about possible bad interactions between formatters.
I spent some time trying to make this work and my opinion at this point is that there is a bug in MTSyntaxHighlighter. I was able to make these two work together via FormatStack without any problems, once I got MTSyntaxHighlighter to work at all. As an aside, I recommend putting MTSyntaxHighlighter first, as Markdown will then ignore the code because it is inside PRE elements.
To make this all work, I had to modify MTSyntaxHighlighter to not use the "onload" event but to simply execute the logic in that function in the HEAD element. That's how the demo page at SyntaxHighlighter works. That is, simply
near line 151.
P.S. The "If you need to share code" link doesn't work from Preview.
I'm not seeing any problems myself. It seems to be working fine for me as long as I put MTSyntaxHighlighter first, as you suggest. What am I missing?
BTW, maybe you should report the issues you found on the MTSyntaxHighlighter site?