mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-12 10:19:07 +00:00
Support .properties
This commit is contained in:
@@ -23,6 +23,7 @@ using QuickLook.Common.Helpers;
|
||||
using QuickLook.Common.Plugin;
|
||||
using QuickLook.Plugin.TextViewer.Detectors;
|
||||
using QuickLook.Plugin.TextViewer.Themes;
|
||||
using QuickLook.Plugin.TextViewer.Themes.HighlightingDefinitions;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
@@ -183,6 +184,14 @@ public partial class TextViewerPanel : TextEditor, IDisposable
|
||||
: highlighting.SyntaxHighlighting;
|
||||
Document = doc;
|
||||
|
||||
if (SyntaxHighlighting is ICustomHighlightingDefinition custom)
|
||||
{
|
||||
foreach (var lineTransformer in custom.LineTransformers)
|
||||
{
|
||||
TextArea.TextView.LineTransformers.Add(lineTransformer);
|
||||
}
|
||||
}
|
||||
|
||||
if (highlighting.IsDark)
|
||||
{
|
||||
Background = Brushes.Transparent;
|
||||
|
Reference in New Issue
Block a user