-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic language detection #14
Comments
Using something like this would be an option, although the trained models are pretty big (approx. 150 MB): Integrating this seems to be relatively easy:
|
A more naive approach could be to simply count the number of role matches for all available rule books and use the one with the highest count. |
It would also be nice to inlude common file extensions in the rule book, to detect the language simply based on the file name. Both detection variants should be usable independently. |
Is your feature request related to a problem? Please describe.
Currently the dev has to know what syntax highlighter to use for a given text.
Describe the solution you'd like
The KodeEditor (or a layer in between) should be able to detect what language is most likely used and apply syntax highlighting automatically. This behaviour should be optional so that the dev can still force a specific language if desired.
The text was updated successfully, but these errors were encountered: