Is there a library that will detect the source code language of a block of code?
<p>Writing a python script and it needs to find out what language a block of code is written in. <strong>I could easily write this myself, but I'd like to know if a solution already exists.</strong></p>

<p>Pygments is insufficient and unreliable.</p>
