mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
Added a lot of nice text filetypes that are often already highlighted by ACE
This commit is contained in:
parent
70576793d9
commit
e54646ac52
15
file/info.go
15
file/info.go
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user