Any way to get syntax-highlighted code blocks with Text::MultiMarkdown?

2010-12-02 Thread Mike Doherty
Hello, I'm using Text::MultiMarkdown in my website, and I would like to know if there is any way to get syntax highlighting in code blocks. Thanks, -Mike Doherty ___ Markdown-Discuss mailing list Markdown-Discuss@six.pairlist.net http://six.pairlist.net

Re: Any way to get syntax-highlighted code blocks with Text::MultiMarkdown?

2010-12-02 Thread David Chambers
I'm not familiar with Text::MultiMarkdown, but I can say that I've found google-code-prettify to be a good fit with Markdown due to the fact that it acts upon vanilla blocks (unlike SyntaxHighlighter, for example, which only acts upon elements with

Re: Any way to get syntax-highlighted code blocks with Text::MultiMarkdown?

2010-12-02 Thread Waylan Limberg
On Thu, Dec 2, 2010 at 6:56 PM, David Chambers wrote: > I'm not familiar with Text::MultiMarkdown, but I can say that I've > found google-code-prettify to be a good fit with Markdown due to the fact > that it acts upon vanilla blocks (unlike SyntaxHighlighter, for > example, which only acts upon

Re: Any way to get syntax-highlighted code blocks with Text::MultiMarkdown?

2010-12-06 Thread Dr. Drang
I just added syntax highlighting to my blog by wedging a call to Pygments into my fork of PHP Markdown Extra (yet another abuse of Michel's code). You could do a similar thing with MultiMarkdown by changing the _DoCodeBlocks function. My fork of PHP Markdown Extra is here: https://github.com/drdr

Re: Any way to get syntax-highlighted code blocks with Text::MultiMarkdown?

2010-12-06 Thread Aristotle Pagaltzis
* Dr. Drang [2010-12-06 17:10]: > I just added syntax highlighting to my blog by wedging a call > to Pygments into my fork of PHP Markdown Extra (yet another > abuse of Michel's code). You could do a similar thing with > MultiMarkdown by changing the _DoCodeBlocks function. Markdown spits out HTM

Re: Any way to get syntax-highlighted code blocks with Text::MultiMarkdown?

2010-12-07 Thread Dr. Drang
On Mon, Dec 6, 2010 at 10:45 AM, Aristotle Pagaltzis wrote: > There is no need to wedge any of this into > Markdown itself. I'm not suggesting the purity of standard Markdown be sullied by my barbarous addition. I made the suggestion because it solved a problem I had and might also help the OP.

Re: Any way to get syntax-highlighted code blocks with Text::MultiMarkdown?

2010-12-07 Thread Aristotle Pagaltzis
* Dr. Drang [2010-12-07 18:10]: > On Mon, Dec 6, 2010 at 10:45 AM, Aristotle Pagaltzis wrote: > > There is no need to wedge any of this into Markdown itself. > > I'm not suggesting the purity of standard Markdown be sullied > by my barbarous addition. Oh no. No ivory towers were erected in the m

Re: Any way to get syntax-highlighted code blocks with Text::MultiMarkdown?

2010-12-07 Thread Mike Doherty
On 10-12-07 01:07 PM, Dr. Drang wrote: > Recall that the OP is using MultiMarkdown, which has more wedged-in > features than you can count. One more wouldn't even be noticed. Funnily enough, the *only* feature I needed was ids on headings. Well, I'll look at post-processing, as it seems to be the

Re: Any way to get syntax-highlighted code blocks with Text::MultiMarkdown?

2010-12-07 Thread David Chambers
Mike Doherty wrote: Funnily enough, the *only* feature I needed was ids on headings. My preferred method of adding ids to headings is to use *...@id=value}*syntax. For example… introducti...@id=intro} === becomes… Introduction I'm using Python-Markdown