mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-14 12:19:08 +00:00
Add hosts file syntax highlighting
This commit is contained in:
@@ -25,11 +25,11 @@ public class FormatDetector
|
||||
|
||||
internal IFormatDetector[] TextDetectors =
|
||||
[
|
||||
new CMakeListsDetector(),
|
||||
new XMLDetector(),
|
||||
new JSONDetector(),
|
||||
new MakefileDetector(),
|
||||
new CMakeListsDetector(),
|
||||
//new HostsDetector(),
|
||||
new HostsDetector(),
|
||||
new DockerfileDetector(),
|
||||
];
|
||||
|
||||
|
@@ -24,7 +24,7 @@ public sealed class HostsDetector : IFormatDetector
|
||||
{
|
||||
public string Name => "Hosts";
|
||||
|
||||
public string Extension => null;
|
||||
public string Extension => ".hosts";
|
||||
|
||||
public bool Detect(string path, string text)
|
||||
{
|
||||
|
Reference in New Issue
Block a user