5

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

I already read this Detecting programming language from a snippet, but I rather use a tested and working library.

Community
  • 1
  • 1
Franco
  • 905
  • 1
  • 7
  • 16

1 Answers1

2

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 K.
  • 1,607
  • 2
  • 13
  • 22
  • 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. – Franco Mar 21 '10 at 02:00