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{
"md", "markdown", "mdown", "mmark",
"asciidoc", "adoc", "ad",
"rst",
".json", ".toml", ".yaml",
".md", ".markdown", ".mdown", ".mmark",
".asciidoc", ".adoc", ".ad",
".rst",
".json", ".toml", ".yaml", ".csv", ".xml", ".rss", ".conf", ".ini",
".tex", ".sty"
".css", ".sass", ".scss",
".js",
".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 {