php-markdown
php-markdown copied to clipboard
code syntax hightlight
Can you add a "source code syntaxhighlighter", so that source code blocks are colored? IMHO http://qbnz.com/highlighter/ is a nice framework to do this for different languages.
I can create a pull request maybe
Same feature requesting here, as it's supported by markdownlint and Github.
You can use fenced code block with a language specifier if you're using the MarkdownExtra parser.
I'm not going to add a dependency to another library for this, but you should be able to set the code_block_content_func
configuration variable on the parser to a function that'll color-highlight the content of the code block. More documentation on this page.