title: code detection in a text
body: <p><strong>DESCRIPTION :</strong>
  I have a text area in which user can write any thing that includes formatting the text he/she is writting.</p>
  
  <p>But before posting the text I want my jquery or javascript to check whether the text contains any code of any language, if yes then is it formatted? if yes then it should proceed the posting process otherwise alert that code should be formatted.. 
  e.g here in StackOverflow it doesnt allow you to post the problem description unless the code is formatted .. how can I do that or where should I start ?? any thing?  </p>