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
20082026
-
wdym they've had it for years? https://github.com/github-linguist/linguist/pull/5688
comment by giraffe_lady · 2026-08-16 · in Jaithon 3, a fast programming language with the perfect syntax -
…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
comment by mk89 · 2025-11-21 · in New OS aims to provide (some) compatibility with macOS -
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 -
…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...
comment by mdaniel · 2025-05-31 · in Grammar Index, Syntax Highlighting on GitHub -
▲ 12
Grammar Index, Syntax Highlighting on GitHubstory by brianzelip · 2025-05-28 · 1 comment
-
…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...
comment by mdaniel · 2025-01-13 · in Show HN: Werk, a simple build tool and command runner -
…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…
comment by mdaniel · 2024-10-28 · in Mill: A fast JVM build tool for Java and Scala -
…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
comment by mdaniel · 2024-08-20 · in Pragtical: Practical and pragmatic code editor -
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 -
…via .gitattributes communicating to GH that it's actually yaml: https://github.com/github-linguist/linguist/blob/master/docs...
comment by mdaniel · 2024-03-28 · in Show HN: Fix – An open source cloud asset inventory for cloud security engineers -
▲ 1
GitHub's Language Analysis System Is Configurablestory by skeptrune · 2024-03-27 · 0 comments
-
▲ 1
Change F# Color on GitHubstory by mr_00ff00 · 2024-02-01 · 0 comments
-
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 -
…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 -
…`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…
comment by jakub_g · 2022-07-06 · in Bun: Fast JavaScript runtime, transpiler, and NPM client written in Zig -
…sets a negative override for any gitattribute). Here's a test demonstrating that this usage works: https://github.com/github/linguist/blob/32ec19c013a7f81ffaee...
comment by brasic · 2022-07-06 · in Bun: Fast JavaScript runtime, transpiler, and NPM client written in Zig -
…>> .gitattributes echo '*.mli linguist-language=OCaml' >> .gitattributes [1] https://github.com/github/linguist/blob/master/docs/override...
comment by mananaysiempre · 2022-04-23 · in Magic-trace – High-resolution traces of what a process is doing -
I believe this is the syntax highlighter’s repo: https://github.com/github/linguist/blob/master/CONTRIBUTING....
comment by aeldidi · 2022-04-16 · in Zig self hosted compiler is now capable of building itself -
…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…
comment by jasone · 2022-02-23 · in Ask HN: Is Jekyll on GitHub a good solution for hosting a website? -
…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 -
▲ 3
Too Many Programming Languagesstory by MihaiSandor · 2021-09-29 · 2 comments
-
▲ 1
Linguist Overridesstory by susam · 2021-09-08 · 0 comments
-
…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
comment by jamessb · 2021-08-31 · in Glean – System for collecting, deriving and querying facts about source code -
…"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 -
▲ 4
Java, Groovy had shade of same color on GH. Both wanted change: result identicalstory by gavinray · 2021-07-21 · 1 comment
-
…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 -
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 -
Wonder no more! https://github.com/github/linguist/blob/7c2adbdb15d4efd25d92... As most AI, it's regex and ifs all the way down.
comment by remram · 2020-11-25 · in A Modern Compiler for the French Tax Code -
Here you go! https://github.com/github/linguist#how-linguist-works
comment by Eikon · 2020-11-25 · in A Modern Compiler for the French Tax Code -
…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:…
comment by whitten · 2020-10-12 · in Show HN: How to X with Y. Engineering questions, answered -
…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 -
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 -
▲ 1
GitHub, Supported Languagesstory by romaintailhurat · 2020-01-29 · 0 comments
-
▲ 1
V Language Syntax Merged into GitHubstory by rvz · 2019-08-14 · 0 comments
-
https://github.com/github/linguist
comment by Klathmon · 2019-07-12 · in Mirth – a type-safe concatenative purely functional programming language -
Looks like GitHub will quickly have support for syntax highlighting of ZIL files. https://github.com/github/linguist/pull/4497
comment by sp332 · 2019-04-17 · in Source code for Zork, Hitchhiker’s Guide, and other Infocom games -
And now it's a PR. By a GitHub engineer even. https://github.com/github/linguist/pull/4497
comment by int_19h · 2019-04-16 · in Source code for Zork, Hitchhiker’s Guide, and other Infocom games -
▲ 1
GitHub Linguist Golang Color Changestory by calebwin · 2019-02-08 · 0 comments
-
…the Ruby gem GitHub uses to determine the programming language. Everything else is a workaround. https://github.com/github/linguist
comment by rmetzler · 2019-01-01 · in Merlin: A cross-platform command and control server and agent written in Go -
Create a report at: https://github.com/github/linguist
comment by omeid2 · 2018-11-12 · in 6502 source code for BBC Micro game Crazee Rider from 1987 -
Github is using Linguist[0] for analyzing languages in a repo. https://github.com/github/linguist
comment by omeid2 · 2018-11-11 · in 6502 source code for BBC Micro game Crazee Rider from 1987 -
…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 -
To some extent, you can influence GitHub's classification via gitattributes: https://github.com/github/linguist
comment by jwilk · 2017-12-13 · in Avast open-sources its machine-code decompiler -
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 -
…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 -
▲ 2
Linguiststory by tosh · 2017-09-15 · 0 comments
-
…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 -
…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 -
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