Commit Graph

249 Commits

Author SHA1 Message Date
ema
2a2d6b1ad2 Revert UI_FontFamily for zh-CN
Some checks failed
build / build (push) Has been cancelled
build / publish (push) Has been cancelled
2026-02-22 22:24:49 +08:00
stxttkx
e135961689 Updated the translation of Simplified Chinese (#1882) 2026-02-22 22:21:28 +08:00
ema
a0546b6391 Add KQL and PromQL syntax definitions
Some checks failed
build / build (push) Has been cancelled
build / publish (push) Has been cancelled
2026-02-10 02:24:08 +08:00
ema
0661c230a4 Add Mermaid syntax highlighting 2026-02-10 01:59:39 +08:00
ema
125a871453 Add GraphQL syntax highlighting 2026-02-10 01:41:11 +08:00
ema
5f21399620 Add Zig syntax highlighting 2026-02-10 01:36:24 +08:00
ema
bf41e7755e Add PlantUML syntax highlighting
Support extensions (.puml, .plantuml, .pu, .uml, .iuml, .wsd)
2026-02-10 01:29:29 +08:00
ema
979b061a41 Add .pyx extension to Python syntax
Include the .pyx (Cython) extension in the Python SyntaxDefinition files for both Dark and Light themes so .pyx files are recognized and highlighted. Updated QuickLook.Plugin.TextViewer/Syntax/Dark/Python.xshd and QuickLook.Plugin.TextViewer/Syntax/Light/Python.xshd.
2026-02-10 01:20:41 +08:00
ema
2fd8e7653a Add Moji syntax highlighting 2026-02-10 01:20:40 +08:00
ema
765bfab9e6 Add .hip extension to C++ syntax files
Some checks failed
build / build (push) Has been cancelled
build / publish (push) Has been cancelled
2026-02-09 14:41:09 +08:00
ema
489ed98bea Add .cu/.cuh to C++ syntax definitions
Include CUDA source (.cu) and header (.cuh) extensions in the C++ syntax definitions so CUDA files are recognized and highlighted. Updated QuickLook.Plugin.TextViewer/Syntax/Dark/C++.xshd and QuickLook.Plugin.TextViewer/Syntax/Light/C++.xshd.
2026-02-09 14:37:48 +08:00
ema
0f41612f52 Add Rhai (Embedded scripting language for Rust) syntax definitions 2026-02-09 11:43:51 +08:00
Laszlo19
b43f014ae0 Add Romanian translation (#1867)
Some checks failed
build / build (push) Has been cancelled
build / publish (push) Has been cancelled
2026-01-26 22:45:03 +08:00
ema
13824162ab Add .cursorignore extension to GitIgnore syntax
Some checks failed
build / build (push) Has been cancelled
build / publish (push) Has been cancelled
Updated both dark and light GitIgnore syntax definition files to recognize the .cursorignore extension in addition to .gitignore.
2026-01-23 10:49:10 +08:00
ema
31f794de08 Add dark syntax highlighting for multiple languages
Introduces dark theme syntax definition (.xshd) files for various programming languages in QuickLook.Plugin.TextViewer, including ANTLR, Boo, Ceylon, ChucK, Clojure, Cocoa, CoffeeScript, Cool, and others. This enhances text viewer support for code files with improved readability in dark mode.
2026-01-16 18:54:22 +08:00
ema
51bb5862a9 Add dark syntax highlighting for AutoHotkey 2026-01-16 18:18:47 +08:00
ema
826cb214de Add dark theme syntax highlighting for Ada 2026-01-16 18:11:55 +08:00
ema
b0e4e2c269 Add Assembly dark syntax highlighting definition 2026-01-16 18:08:32 +08:00
ema
d403d4ec91 Add .axml extension to XML syntax highlighting
Updated both dark and light XML syntax definition files to include the .axml extension, ensuring proper syntax highlighting for files with this extension.
2026-01-16 15:53:44 +08:00
ema
0083aab4e3 Add ActionScript dark syntax highlighting definition
Introduces a new XML-based syntax definition for ActionScript in the dark theme, specifying colors and rules for keywords, comments, strings, and documentation tags.
2026-01-16 15:51:14 +08:00
ema
afca07e348 Add Razor syntax highlighting definitions
Introduced Razor.xshd files for both dark and light themes to enable syntax highlighting for Razor (.cshtml, .razor) files in the text viewer plugin.
2026-01-16 15:34:28 +08:00
ema
d8fbc338ca Add documentation for supported diff file extensions
Added XML documentation to clarify the purpose and usage of .diff, .patch, and .rej file extensions in DiffHighlightingDefinition.
2026-01-16 14:53:56 +08:00
ema
354b48a2b5 Support .patch and .rej extensions for diff highlighting
Added '.patch' and '.rej' to the supported file extensions in DiffHighlightingDefinition to improve compatibility with common diff-related file types.
2026-01-16 13:35:28 +08:00
ema
b8ad076324 Add GDScript syntax highlighting definitions
Introduced GDScript.xshd files for both dark and light themes to enable syntax highlighting support for GDScript files in the text viewer plugin.
2026-01-12 23:06:17 +08:00
ema
8fb418b5ed Add dark theme and clean up Fortran95 syntax files
Added a new Fortran95.xshd syntax definition for the dark theme. Cleaned up the light theme Fortran95.xshd by removing duplicate keywords, updating digit color, and fixing delimiter escaping.
2026-01-12 22:27:51 +08:00
ema
c64885485d Make all Plugin classes sealed
Changed all Plugin classes and PluginManager to be sealed, preventing further inheritance. This improves code safety and clarifies the intended usage of these classes.
2026-01-08 01:06:37 +08:00
ema
a6210e177b Update copyright year to 2026 2026-01-06 02:24:42 +08:00
ema
adc2b0b094 Remove UTF-8 BOM before JSON detection
Added logic to strip the UTF-8 BOM character from the start of the text before performing JSON format detection. This ensures that files with a BOM are correctly identified as JSON.
2026-01-05 13:37:01 +08:00
ema
3f3de0efc2 Improve YAML highlighting and support .clang-format
Added support for .clang-format files to YAML highlighting definitions. Enhanced syntax highlighting to color YAML document separators (---, ...) and their comments distinctly in both dark and light themes. Fixed a potential exception when handling lines without a colon.
2025-12-27 01:46:39 +08:00
ema
cea937c0d6 Improve XML version attribute regex in XMLDetector
Updated the XMLDetector regex to support both single and double quotes in the XML version attribute, improving compatibility with different XML declaration styles.
Now supports:
<?xml version="1.0"?>
<?xml version='1.0'?>
2025-12-18 16:19:23 +08:00
ema
97ebb410fb Add .cnf extension to INI syntax highlighting
Some checks failed
build / build (push) Has been cancelled
build / publish (push) Has been cancelled
Updated both dark and light INI.xshd syntax definition files to include the .cnf extension, enabling proper syntax highlighting for .cnf files.
2025-12-12 02:29:25 +08:00
ema
7211c2ebdd Update PowerShell syntax colors in dark theme
Some checks failed
MSBuild / build (push) Has been cancelled
MSBuild / publish (push) Has been cancelled
Changed the color values for Keywords2 and Keywords3 in the PowerShell.xshd dark theme file to use specific hex codes instead of named colors for improved consistency and appearance.
2025-12-05 13:40:57 +08:00
Copilot
1f96cf5745 Add Svelte syntax highlighting support (#1809) 2025-11-20 00:01:34 +08:00
ema
17b374b2e9 Keep TextViewer compatible with VS2022 2025-11-17 03:00:29 +08:00
ema
9ebc030f8b Improve TextViewerPanel UI and usability
Enabled touch gesture support, disabled automatic hyperlink detection, and visually hid the line number separator. Added context menu items for copy and select all, installed a custom element generator for long lines, and integrated the search panel for enhanced text navigation.
2025-11-17 02:55:24 +08:00
ema
5caaf749f7 Set _currentPath before file type check in View
Moved assignment of _currentPath to the start of the View method to ensure it is set before any file type-specific logic is executed. This improves consistency and prevents potential issues with path-dependent operations.
2025-10-29 21:25:30 +08:00
ema
6a6c411efb Refactor icon usage to use FontSymbols constants
Replaced hardcoded icon strings with FontSymbols constants in MoreMenu and converter classes for consistency and maintainability. Removed duplicate FontSymbols class from MidiPlayer and updated usages to reference QuickLook.Common.Controls.
2025-10-10 17:39:32 +08:00
ema
39ee2f6b00 Update Batch syntax highlighting colors
Adjusted colors for selection, caret, fold markers, markers, comments, labels, output, and keywords in the Batch.xshd file to improve readability and consistency with dark theme conventions.
2025-10-10 17:07:23 +08:00
ema
d2c80e1847 Rename Goovy.xshd to Groovy.xshd 2025-10-10 16:52:41 +08:00
ema
1095d2be68 Add dark theme syntax definition for HTML viewer
Some checks failed
MSBuild / build (push) Has been cancelled
MSBuild / publish (push) Has been cancelled
Introduces zzz-After-JavaScript-HTML.xshd, an XML-based syntax highlighting definition for HTML files in dark mode. This file configures colors, rules, and spans for improved readability in the text viewer plugin.
2025-10-08 02:00:41 +08:00
ema
432b3b033a Add cross-plugin 'Reopen as' menu for SVG and HTML
Introduces 'Reopen as source code' and 'Reopen as image preview' options in the MoreMenu for SVG and HTML files, enabling users to switch between ImageViewer and TextViewer plugins. Updates translation files to support new menu items in multiple languages and refactors related plugin code for extensibility.
2025-10-08 01:55:58 +08:00
ema
f7c029f127 Support Reopen as HTML preview #1690 2025-10-08 01:24:23 +08:00
ema
342f14ebd9 Add KrcDetector for .krc file support
Some checks failed
MSBuild / build (push) Has been cancelled
MSBuild / publish (push) Has been cancelled
2025-09-28 03:04:44 +08:00
ema
1fa31d0983 Add 'Copy' and 'Select All' translations for more languages
Added 'Editor_Copy' and 'Editor_SelectAll' translations for Arabic, Catalan, Norwegian, Dutch, Polish, Portuguese, Russian, Turkish, Vietnamese, Marathi, Hindi, Hebrew, Hungarian, Indonesian, and Slovak to improve localization coverage.
2025-09-24 23:55:18 +08:00
ema
0bca38e2bf Add .slnx extension to XML syntax highlighting
Some checks failed
MSBuild / build (push) Has been cancelled
MSBuild / publish (push) Has been cancelled
2025-09-15 12:50:07 +08:00
samueljoh
ae05deea46 Add Swedish translation (#1755) 2025-09-11 11:01:23 +08:00
ema
c748f6d7e4 Update NuGet package versions in project files
This commit updates various NuGet package references to newer versions across multiple QuickLook plugin and main project .csproj files. These updates include dependencies such as WixToolset.Dtf.WindowsInstaller, UTF.Unknown, FreeTypeSharp, Microsoft.Web.WebView2, Magick.NET-Q8-AnyCPU, Google.Protobuf, MsgReader, HelixToolkit, bblanchon.PDFiumV8.Win32, Melanchall.DryWetMidi, WPF-UI.Violeta, and Lib.Harmony, ensuring the projects use the latest compatible releases.
2025-09-08 02:42:09 +08:00
ema
e0a2204e56 Add diff file syntax highlighting 2025-09-08 02:16:55 +08:00
ema
21a3dd3d4b Fix the same previous issue in other plugins
Some checks failed
MSBuild / build (push) Has been cancelled
MSBuild / publish (push) Has been cancelled
2025-08-15 02:17:50 +08:00
VenusGirl❤
a4d118e11f Update Korean (#1710)
Some checks failed
MSBuild / build (push) Has been cancelled
MSBuild / publish (push) Has been cancelled
2025-07-23 15:07:39 +08:00