Skip to content

Commit 8538c96

Browse files
authored
Identify .mt files as Myst on GitHub
Since GitHub doesn't want to flood their language detection with tiny, unpopular languages, we can manually override their detection for `.mt` files. This will disable highlighting, but will accurately reflect the language in the info bar for the repo.
1 parent b832a14 commit 8538c96

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.gitattributes

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# For now, treat Myst source files with Ruby syntax highlighting.
2-
# They are similar enough that this should be fairly accurate.
3-
# Anything is better than Mathetmatica, though.
4-
*.mt linguist-language=Ruby
1+
# Since GitHub doesn't want to flood their language detection with
2+
# tiny, unpopular languages, we can manually override their detection
3+
# for `.mt` files. This will disable highlighting, but will accurately
4+
# reflect the language in the info bar for the repo.
5+
*.mt linguist-language=Myst

0 commit comments

Comments
 (0)