markwatkinson / luminous

Accurate and powerful syntax highlighting library
http://luminous.asgaard.co.uk
GNU Lesser General Public License v2.1
50 stars 5 forks source link

Language guessing #7

Closed markwatkinson closed 13 years ago

markwatkinson commented 13 years ago

It would be useful if Luminous was able to make a guess at the language of a piece of source code. Pygments implements this by having each of its lexers implement a method which takes a string of source code and returns a probability value, which seems like a sensible way to go about it.