From ad1730cf4a86a1a5dff33c33473bacac5e78c908 Mon Sep 17 00:00:00 2001 From: ema Date: Thu, 25 Sep 2025 01:32:53 +0800 Subject: [PATCH] Expand supported text file formats list Added a comprehensive list of supported text and script file extensions to SUPPORTED_FORMATS.md, detailing various programming, configuration, and markup formats recognized by QuickLook. --- .../ShellExRegister.cs | 1 - SUPPORTED_FORMATS.md | 128 +++++++++++++++++- 2 files changed, 125 insertions(+), 4 deletions(-) diff --git a/QuickLook.Plugin/QuickLook.Plugin.OfficeViewer/ShellExRegister.cs b/QuickLook.Plugin/QuickLook.Plugin.OfficeViewer/ShellExRegister.cs index f5d1026..16726a3 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.OfficeViewer/ShellExRegister.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.OfficeViewer/ShellExRegister.cs @@ -1,6 +1,5 @@ using Microsoft.Win32; using System; -using System.IO; using System.Security.Principal; namespace QuickLook.Plugin.OfficeViewer; diff --git a/SUPPORTED_FORMATS.md b/SUPPORTED_FORMATS.md index 493fbb6..63cb747 100644 --- a/SUPPORTED_FORMATS.md +++ b/SUPPORTED_FORMATS.md @@ -1,5 +1,3 @@ - - ## Supported formats in QuickLook Update not completed yet... @@ -7,7 +5,131 @@ Update not completed yet... ### Text files - `.txt` (Plain text file) - `.rtf` (Rich Text Format) -- Most other plain text files +- `.log` (Log file) +- `.ini` (Initialization/config file) +- `.json` (JavaScript Object Notation) +- `.xml` (Extensible Markup Language) +- `.yaml`, `.yml` (YAML Ain't Markup Language) +- `.md`, `.markdown`, `.mdx`, `.mmd`, `.mkd`, `.mdwn`, `.mdown`, `.mdc`, `.qmd`, `.rmd`, `.rmarkdown`, `.apib`, `.mdtxt`, `.mdtext` (Markdown and variants) +- `.csv` (Comma-separated values) +- `.tsv` (Tab-separated values) +- `.bat`, `.cmd` (Batch script) +- `.ps1` (PowerShell script) +- `.sh` (Shell script) +- `.c`, `.cpp`, `.h`, `.hpp` (C/C++ source/header) +- `.cs` (C# source) +- `.java` (Java source) +- `.py` (Python source) +- `.js` (JavaScript source) +- `.ts`, `.tsx`, `.uts` (TypeScript source) +- `.go` (Go source) +- `.php` (PHP source) +- `.rb` (Ruby source) +- `.swift` (Swift source) +- `.scala` (Scala source) +- `.kotlin` (Kotlin source) +- `.lua` (Lua source) +- `.sql` (SQL script) +- `.css` (Cascading Style Sheets) +- `.html`, `.htm` (HTML file) +- `.xshd` (Highlighting definition) +- `.properties` (Java properties/config) +- `.diff`, `.patch` (Diff/Patch file) +- `.sub`, `.srt` (Subtitle file) +- `.conf`, `.config` (Configuration file) +- `.env` (Environment config) +- `.makefile`, `.mk` (Makefile) +- `.gitignore`, `.gitattributes` (Git config) +- `.registry` (Windows registry file) +- `.resource` (Resource file) +- `.hosts` (Hosts file) +- `.boo` (Boo script) +- `.ada` (Ada source) +- `.antlr` (ANTLR grammar) +- `.assembly` (Assembly source) +- `.autohotkey` (AutoHotkey script) +- `.ceylon` (Ceylon source) +- `.chuck` (ChucK script) +- `.clojure` (Clojure source) +- `.cmake` (CMake config) +- `.cocoa` (Cocoa source) +- `.coffeescript` (CoffeeScript source) +- `.cool` (Cool source) +- `.d` (D source) +- `.dart` (Dart source) +- `.delphi` (Delphi source) +- `.eiffel` (Eiffel source) +- `.elixir` (Elixir source) +- `.env` (Environment config) +- `.erlang` (Erlang source) +- `.fsharp` (F# source) +- `.falcon` (Falcon script) +- `.fantom` (Fantom source) +- `.fortran` (Fortran source) +- `.gitattributes` (Git attributes) +- `.gitignore` (Git ignore) +- `.goovy` (Goovy source) +- `.gui4cli` (Gui4Cli script) +- `.haskell` (Haskell source) +- `.haxe` (Haxe source) +- `.hlsl` (HLSL shader) +- `.hosts` (Hosts file) +- `.icon` (Icon source) +- `.ilyc` (ILYC source) +- `.ini` (INI config) +- `.io` (Io source) +- `.java` (Java source) +- `.justbasic` (Just BASIC source) +- `.kixtart` (KiXtart script) +- `.kotlin` (Kotlin source) +- `.lean` (Lean source) +- `.lisp` (Lisp source) +- `.log` (Log file) +- `.lua` (Lua source) +- `.lyric` (Lyric file) +- `.makefile`, `.mk` (Makefile) +- `.nemerle` (Nemerle source) +- `.nim` (Nim source) +- `.nsis` (NSIS script) +- `.objective-c` (Objective-C source) +- `.ocaml` (OCaml source) +- `.parasail` (ParaSail source) +- `.pascal` (Pascal source) +- `.php` (PHP source) +- `.pike` (Pike source) +- `.prolog` (Prolog source) +- `.protobuf` (Protocol Buffers) +- `.purescript` (PureScript source) +- `.qml` (QML source) +- `.r` (R script) +- `.restructuredtext` (reStructuredText) +- `.rexx` (Rexx script) +- `.ruby` (Ruby source) +- `.rust` (Rust source) +- `.scala` (Scala source) +- `.scheme` (Scheme source) +- `.shellscript`, `.sh` (Shell script) +- `.solidity` (Solidity source) +- `.spike` (Spike source) +- `.sqf` (SQF script) +- `.subripsubtitle`, `.sub`, `.srt` (SubRip Subtitle) +- `.swift` (Swift source) +- `.tcl` (TCL script) +- `.thrift` (Thrift source) +- `.vala` (Vala source) +- `.vbnet` (VB.NET source) +- `.vbscript` (VBScript) +- `.verilog` (Verilog source) +- `.vhdl` (VHDL source) +- `.visualsolution` (VisualSolution source) +- `.volt` (Volt source) +- `.vue` (Vue component) +- `.x10` (X10 source) +- `.xc` (XC source) +- `.xml` (Extensible Markup Language) +- `.xtend` (Xtend source) + +- Most other plain text and script formats ### Image files - `.apng` (Animated PNG)