russross/blackfriday — Issue #10: Code highlighting
Author: piranha
Created: 2012-02-24 02:54:14+00:00
State: open

It would be nice to be able to highlight code on server-side instead of doing that on client-side (right now I'm thinking about HTML and not Latex output). I see two possibilities here:

- get blocks of code from the resulting HTML (by parsing it), highlight them and inject back,
- provide (optional) highlighting function to blackfriday which will be called during rendering parts of the code.

I believe that latter is better option both API- and performance-wise. Do you have any thoughts/opinion about this?