You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linguist's language detection is pretty good, but some languages (ex. Perl 5 vs Perl 6) have special logic built into pygments itself to detect which language a blob of code is. Would it be possible to enter this value as a weight of some sort when determining the correct lexer to use?
The text was updated successfully, but these errors were encountered:
@hoelzro thanks for the suggestion! A few months ago we definitely would have been interested in this, however…
We are actually moving away from pygments and using TextMate/SublimeText/Atom syntax bundles instead. We will likely be posting more about it soon, but for now that means we want to avoid any tighter coupling with pygments.
@pchaigno To satisfy any curiosity you may have, pygments returns a certainty value between 0 and 1 indicating how certain it is that a blob is of a particular language.
Linguist's language detection is pretty good, but some languages (ex. Perl 5 vs Perl 6) have special logic built into pygments itself to detect which language a blob of code is. Would it be possible to enter this value as a weight of some sort when determining the correct lexer to use?
The text was updated successfully, but these errors were encountered: