PEG Markdown Highlight
|
For a fairly automatic solution for syntax highlighting an NSTextView in a Cocoa application, see HGMarkdownHighlighter.
For parsing a Markdown document for syntax highlighting purposes in any C program, see pmh_markdown_to_elements().
See The Syntax of PEG Markdown Highlight Stylesheets for an overview of how to write stylesheets.
For parsing stylesheets in C, see pmh_parse_styles().
For parsing stylesheets in Objective-C (Cocoa), see applyStylesFromStylesheet:withErrorDelegate:errorSelector: (HGMarkdownHighlighter).