更新整理
This commit is contained in:
16
WPFluent/Controls/SyntaxHighlight/SyntaxHighlight.xaml
Normal file
16
WPFluent/Controls/SyntaxHighlight/SyntaxHighlight.xaml
Normal file
@@ -0,0 +1,16 @@
|
||||
<!--
|
||||
This Source Code Form is subject to the terms of the MIT License.
|
||||
If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
|
||||
Copyright (C) Leszek Pomianowski and WPF UI Contributors.
|
||||
All Rights Reserved.
|
||||
-->
|
||||
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<!-- https://github.com/tonsky/FiraCode -->
|
||||
<FontFamily x:Key="FiraCode">pack://application:,,,/Wpf.Ui;component/Fonts/#Fira Code</FontFamily>
|
||||
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="pack://application:,,,/WPFluent;component/Controls/CodeBlock/CodeBlock.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
16
WPFluent/Controls/SyntaxHighlight/SyntaxLanguage.cs
Normal file
16
WPFluent/Controls/SyntaxHighlight/SyntaxLanguage.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
// This Source Code Form is subject to the terms of the MIT License.
|
||||
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
|
||||
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
|
||||
// All Rights Reserved.
|
||||
|
||||
namespace WPFluent.Controls;
|
||||
|
||||
/// <summary>
|
||||
/// Supported languages for syntax highlighting.
|
||||
/// </summary>
|
||||
internal enum SyntaxLanguage
|
||||
{
|
||||
Autodetect,
|
||||
XAML,
|
||||
CSHARP,
|
||||
}
|
||||
Reference in New Issue
Block a user