tags:

views:

146

answers:

1

I need to detect which programming language is used in a code snippet, there is any library to do this?

I already read this http://stackoverflow.com/questions/475033/detecting-programming-language-from-a-snippe, but I rather use a tested and working library.

+1  A: 

The link you posted is exactly what you need. That's only a couple hours of programming time. Otherwise, try googling for "bayesian spam filtering php" - the first result may be what you're looking for: http://www.phpclasses.org/browse/package/4236.html

Jan Kuboschek
I just wanted to know if it already exists before starting to code, because I'm short of time. I guess I'll have to do it.
nandu