Add .jsonl syntax highlighting support to TextViewer (#1906)

This commit is contained in:
Copilot
2026-04-01 19:09:37 +08:00
committed by GitHub
parent 129fb0d643
commit 75e770dd29
4 changed files with 261 additions and 3 deletions
@@ -163,9 +163,9 @@ public partial class TextViewerPanel : TextEditor, IDisposable
// RTL: Ctrl + RShift
// LTR: Ctrl + LShift
if (Keyboard.IsKeyDown(Key.RightShift))
FlowDirection = System.Windows.FlowDirection.RightToLeft;
FlowDirection = FlowDirection.RightToLeft;
else if (Keyboard.IsKeyDown(Key.LeftShift))
FlowDirection = System.Windows.FlowDirection.LeftToRight;
FlowDirection = FlowDirection.LeftToRight;
}
else if (Keyboard.IsKeyDown(Key.LeftAlt) || Keyboard.IsKeyDown(Key.RightAlt))
{