.ex
4 claimants
4 primary
0 secondary
shared primary (4)
SWH popularity
Distinct files in the full Software Heritage archive (2026-06-04 export), dated by first appearance, following Desmazières, Di Cosmo, Lorentz (MSR 2025). Case-aggregated. citation.
6.7M
total files
2.9M
first seen 2021–2025 (42.5%)
2020
median year (half its files since)
Case variants in archive: .ex (6.7M), .EX (4.2K), .Ex (101), .eX (1) — aggregated above.
Attribution status
This extension is attributed to Elixir; Elixir (programming language); Euphoria; HTML+EEX as primary by 6 authoritative claims.
Claimants (8)
Languages that list
.ex among their extensions. Strength reflects whether the upstream source treated it as their primary extension.| Language | Source | Strength |
|---|---|---|
| Elixir | linguist | primary |
| Elixir | pygments | primary |
| Elixir | wikidata | primary |
| Elixir (programming language) | pygments | primary |
| Euphoria | pygments | primary |
| HTML+EEX | pygments | primary |
| Euphoria | linguist | secondary |
| Euphoria | wikipedia | proposed |
Wikidata says… (2)
File formats, image formats, audio codecs and other non-PL
entities that claim
.ex on Wikidata
(property P1195) or in the Wikipedia infobox.
Source: data/derived/external_extension_index.csv.
Click Use as new PL on any row to open the
Add-PL form pre-filled with that entry's name, Wikipedia/Wikidata
URL, and this extension — one submission creates the PL + claim.
| Format | Class (Wikidata P31) | Suggested label | MIME | Notes | Action |
|---|---|---|---|---|---|
| Elixir source code file Q129081321 file format | file format | — | text/x-elixir | — | Use as new PL ↗ |
| Fashion Tracker module Q105858239 file format | file format | — | audio/x-mod | — | Use as new PL ↗ |
Disambiguation rules (2)
Linguist heuristics that decide, by content, which language a
.ex file actually is.| Rule | Predicts | Kind | Predicates (truncated) | Measured on SWH |
|---|---|---|---|---|
h/linguist/.ex/0 | Elixir | predicates | [{"kind": "any", "regexes": ["^\\s*@moduledoc\\s", "^\\s*(?:cond|import|quote|unless)\\s", "^\\s*def(?:exception|impl|macro|module|protocol)[(\\s]"]}] | |
h/linguist/.ex/1 | Euphoria | predicates | [{"kind": "any", "regexes": ["^\\s*namespace\\s", "^\\s*(?:public\\s+)?include\\s", "^\\s*(?:(?:public|export|global)\\s+)?(?:atom|constant|enum|function|integer|object|procedure|sequence|type)\\s"]}] |
SWH-mined examples (0)
No archived examples for .ex in our local mirror yet.