When a paste's content is text, the user can choose to have the paste processed with pygments for syntax-highlighting (and/or line-numbering). This is done through requesting the paste to be parsed with a lexer. Luckily, all we need to do is modify the URL returned to the user.
Prerequisites
When a paste's content is text, the user can choose to have the paste processed with pygments for syntax-highlighting (and/or line-numbering). This is done through requesting the paste to be parsed with a lexer. Luckily, all we need to do is modify the URL returned to the user.