Skip to content

Is it possible to detect language used in README.md? #6602

Discussion options

You must be logged in to vote

No, Linguist does not detect the languages used in a README.md as Linguist doesn't support multiple languages per file and README.md files are technically markdown, which is detected, though not counted by default.

I wonder is there a way to set SQL as a language used in the repository?

Yes, but keep in mind that your repo doesn't technically contain SQL files... it only contains markdown files. So the only way is to override the .md extension language, but that then comes with the caveat that the files will be considered SQL and not markdown. I'm not sure what would happen in terms of rendering, but I know the syntax highlighting will likely look wrong as the SQL grammar would be appli…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alexeymezenin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants