Hacker GitHub

← All repos

github-linguist/linguist

View on GitHub ↗ ★ 13,760 Ruby

Language Savant. If your repository's language is being reported incorrectly, send us a pull request!

94 mentions on Hacker News by 79 people: 12 stories, 82 comments · first 2011-12-19 · latest 2026-08-16

Mentions per year 94 mentions · busiest year 2014 (20)
20082026
  1. wdym they've had it for years? https://github.com/github-linguist/linguist/pull/5688
  2. …but still), I don't know if I want to believe it's less than 2.6% Perl. [0]. "It's fixed". [0]: https://github.com/github-linguist/linguist/issues/1626
  3. Renaming it on GitHub.com in this PR: https://github.com/github-linguist/linguist/pull/7475
    comment by welder · 2025-06-30 · in JavaScript Trademark Update
  4. …verify that every one of these is in the readme, but the more programmatic version of that list https://github.com/github-linguist/linguist/blob/v9.1.0/.git...
  5. ▲ 12
    Grammar Index, Syntax Highlighting on GitHub
    story by brianzelip · 2025-05-28 · 1 comment
  6. …the case with your own language https://github.com/simonask/werk/blob/5990c8a9536a1a76c3da59... 1: https://github.com/github-linguist/linguist/blob/v9.0.0/docs...
  7. …files by informing it they're actually Scala, which would make reading those files much nicer IMHO: https://github.com/github-linguist/linguist/blob/v8.0.1/docs... Or, I believe you can submit a PR to linguist to make it globally…
  8. …2: https://github.com/JetBrains/intellij-community/blob/idea/24... 3: https://github.com/github-linguist/linguist/blob/v7.30.0/lib... 4: https://github.com/microsoft/vscode-textmate 5: https://github.com/highlightjs/highlight.js
  9. You can tweak/exclude with .gitattributes https://github.com/github-linguist/linguist/blob/master/docs...
    comment by badlibrarian · 2024-07-02 · in Diff-pdf: tool to visually compare two PDFs
  10. …via .gitattributes communicating to GH that it's actually yaml: https://github.com/github-linguist/linguist/blob/master/docs...
  11. ▲ 1
    GitHub's Language Analysis System Is Configurable
    story by skeptrune · 2024-03-27 · 0 comments
  12. ▲ 1
    Change F# Color on GitHub
    story by mr_00ff00 · 2024-02-01 · 0 comments
  13. There’s already a draft pr for this: https://github.com/github-linguist/linguist/pull/6686
    comment by mr_00ff00 · 2024-01-24 · in Change F#'s Color on GitHub
  14. …there. Hopefully this helps get started on improving the poor syntax highlighting experience. [0] https://github.com/github/linguist/blob/master/CONTRIBUTING.... [1] https://github.com/github/linguist/blob/c34f887f48d81e2ed42b... [2]…
    comment by TheAceOfHearts · 2023-03-21 · in Java 20 / JDK 20: General Availability
  15. …`T` has been driving me crazy for YEARS!) Correct me if I'm wrong, but checking those two files: - https://github.com/github/linguist/blob/master/lib/linguist/... - https://github.com/github/linguist/blob/master/lib/linguist/... I don't…
  16. …sets a negative override for any gitattribute). Here's a test demonstrating that this usage works: https://github.com/github/linguist/blob/32ec19c013a7f81ffaee...
  17. Thanks! This is how GitHub started to support V: https://github.com/github/linguist/pull/4564
    comment by amedvednikov · 2022-07-01 · in V 0.3
  18. …>> .gitattributes echo '*.mli linguist-language=OCaml' >> .gitattributes [1] https://github.com/github/linguist/blob/master/docs/override...
  19. I believe this is the syntax highlighter’s repo: https://github.com/github/linguist/blob/master/CONTRIBUTING....
  20. …issue I'm frustrated with is that syntax highlighting for code blocks depends on GitHub's blessing: https://github.com/github/linguist/issues/2598 For example, this page from my blog highlights OCaml code, but not the language I'm…
  21. …file must be present with something like, *.ixx linguist-language=C++ More info here, https://github.com/github/linguist/blob/master/docs/override...
    comment by pjmlp · 2022-02-11 · in Ray Tracing for the TI-84 CE
  22. ▲ 3
    Too Many Programming Languages
    story by MihaiSandor · 2021-09-29 · 2 comments
  23. ▲ 1
    Linguist Overrides
    story by susam · 2021-09-08 · 0 comments
  24. …can be used to identify the programming language of a single file (edit: or of a whole project): https://github.com/github/linguist#single-file
  25. …"My Research Software" version: 2.0.4 doi: 10.5281/zenodo.1234 date-released: 2017-12-18 url: "https://github.com/github/linguist" https://citation-file-format.github.io/
    comment by westurner · 2021-08-21 · in Enhanced Support for Citations on GitHub
  26. ▲ 4
    Java, Groovy had shade of same color on GH. Both wanted change: result identical
    story by gavinray · 2021-07-21 · 1 comment
  27. …at github/linguist, that's what recognizes languages in repos. It has this rule for FreeMarker: https://github.com/github/linguist/blob/32ec19c013a7f81ffaee... It seems a .ftl extension means FreeMarker to linguist, so those localizations…
    comment by TheDong · 2021-05-05 · in Send: A Fork of Mozilla's Firefox Send
  28. It is similar to the tool github uses to detect language of files ( https://github.com/github/linguist ) but about 2x faster. Here is the CLI binary repo: https://github.com/go-enry/enry
    comment by ducktective · 2021-01-16 · in A faster file programming language detector
  29. Wonder no more! https://github.com/github/linguist/blob/7c2adbdb15d4efd25d92... As most AI, it's regex and ifs all the way down.
  30. Here you go! https://github.com/github/linguist#how-linguist-works
  31. …accepted on github as of 2016 (it is a simple list, suitable for a dropdown list). The page https://github.com/github/linguist/blob/master/lib/linguist/... gives more details about the languages recognized by linguist. 2) Not reproducible:…
  32. …have to do some server-side analysis of the entire file and make an educated guess. For example, https://github.com/github/linguist . But if the language is known in advance, then you could send the grammar rules to the client.
    comment by bhl · 2020-06-27 · in Xi-Editor Retrospective
  33. I found this link [1], but nothing related to ML@B with it. [1] https://github.com/github/linguist
    comment by bhl · 2020-02-14 · in GitHub CLI is now in beta
  34. ▲ 1
    GitHub, Supported Languages
    story by romaintailhurat · 2020-01-29 · 0 comments
  35. ▲ 1
    V Language Syntax Merged into GitHub
    story by rvz · 2019-08-14 · 0 comments
  36. https://github.com/github/linguist
  37. Looks like GitHub will quickly have support for syntax highlighting of ZIL files. https://github.com/github/linguist/pull/4497
  38. And now it's a PR. By a GitHub engineer even. https://github.com/github/linguist/pull/4497
  39. ▲ 1
    GitHub Linguist Golang Color Change
    story by calebwin · 2019-02-08 · 0 comments
  40. …the Ruby gem GitHub uses to determine the programming language. Everything else is a workaround. https://github.com/github/linguist
  41. Create a report at: https://github.com/github/linguist
  42. Github is using Linguist[0] for analyzing languages in a repo. https://github.com/github/linguist
  43. …fast, high-quality combination. [1] https://macromates.com/manual/en/language_grammars [2] https://github.com/github/linguist/issues/1717#issuecomment-... [3] https://github.com/trishume/syntect [4] https://github.com/sourcegraph/syntect_se…
    comment by emidoots · 2018-09-07 · in Rethinking Classical Concurrency Patterns
  44. To some extent, you can influence GitHub's classification via gitattributes: https://github.com/github/linguist
  45. By the way, GitHub's language detection is powered by their Linguist library [1]. [1] https://github.com/github/linguist
    comment by niftich · 2017-10-13 · in Analysing C# code on GitHub with BigQuery
  46. …the files tend not to have unique suffixes. [1] https://github.com/John-Nagle/ttyloopdriver [2] https://github.com/github/linguist/issues/3812
    comment by Animats · 2017-09-19 · in How to Read a Schematic
  47. ▲ 2
    Linguist
    story by tosh · 2017-09-15 · 0 comments
  48. …OpenVista. At one point we had to argue with Github to support syntax highlighting for M/MUMPS: https://github.com/github/linguist/pull/148 [0] https://en.wikipedia.org/wiki/VistA [1] https://en.wikipedia.org/wiki/VistA#Usage_in_non-governm…
    comment by doughj3 · 2017-03-13 · in The Mumps Programming Language
  49. …and get it's width, height. You could support ignoring binary/generated code with a Linguist( https://github.com/github/linguist ) wrapper(ruby). Hope it didn't sound like criticism, just wanted to talk about it. Not everyone wants to talk…
    comment by ortuna · 2017-02-13 · in Building Code Posters with Elixir
  50. Probably worth reporting to Language Servant [0]. [0] https://github.com/github/linguist
    comment by 0xmohit · 2016-07-21 · in Programming Language Rankings: June 2016