Added a lot of nice text filetypes that are often already highlighted by ACE

This commit is contained in:
sinni800 2016-11-03 15:38:01 +01:00 committed by GitHub
parent 70576793d9
commit e54646ac52

View File

@ -103,14 +103,19 @@ func (i Info) CanBeEdited() bool {
} }
extensions := [...]string{ extensions := [...]string{
"md", "markdown", "mdown", "mmark", ".md", ".markdown", ".mdown", ".mmark",
"asciidoc", "adoc", "ad", ".asciidoc", ".adoc", ".ad",
"rst", ".rst",
".json", ".toml", ".yaml", ".json", ".toml", ".yaml", ".csv", ".xml", ".rss", ".conf", ".ini",
".tex", ".sty"
".css", ".sass", ".scss", ".css", ".sass", ".scss",
".js", ".js",
".html", ".html",
".txt", ".txt", ".rtf",
".sh", ".bash", ".ps1", ".bat", ".cmd",
".php", ".pl", ".py",
"Caddyfile",
".c", ".cc" ".h" ".hh" ".cpp" ".hpp" ".f90" ".f" ".bas" ".d" ".ada" ".nim" ".cr" ".java" ".cs" ".vala" ".vapi",
} }
for _, extension := range extensions { for _, extension := range extensions {