title: Detect Programming Language from code snippet
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/475033/detecting-programming-language-from-a-snippet">Detecting programming language from a snippet</a>  </p>
  </blockquote>
  
  
  
  <p>Is there a way to identify the following for a text snippet?</p>
  
  <ol>
  <li>Whether it is a piece of code</li>
  <li>The programming language in which it is written</li>
  </ol>