imathis / octopress

Octopress is an obsessively designed framework for Jekyll blogging. It’s easy to configure and easy to deploy. Sweet huh?
http://github.com/imathis/octopress
9.32k stars 2.62k forks source link

Show where pygments can't parse code #1764

Open danijeljw opened 8 years ago

danijeljw commented 8 years ago

Sometimes I make multiple edits to files and then when I try to rake generate my site I get a pygments parse error but I don't know where the file is. This will dump the code from the page that is causing the error to the stdout so the user can see which file is causing the problem and go into the file to find where the error is and repair it. I have scraped many websites using Jekyll because it's too cumbersome for me to back over many many posts looking for an error and moved back and forth to Wordpress because of this. Now that I know how to resolve this, I will no longer have to scrap whole posts and move from Markdown back to HTML. This will help future users too.

danijeljw commented 8 years ago

Solution comes from here: http://reckhhh.github.io/blog/2015/05/01/octopress-error-pygments-cant-parse-unknown-language/