WindowsCommunityToolkit icon indicating copy to clipboard operation
WindowsCommunityToolkit copied to clipboard

MarkdownTextBlock - Python not supported?

Open TRadigk opened this issue 10 months ago • 3 comments

Describe the bug

When creating a MarkdownTextBlock and setting python content, the syntax highlighting is not visible. The font is set to consolas.

Regression

No response

Reproducible in sample app?

  • [X] This bug can be reproduced in the sample app.

Steps to reproduce

1. Use CommunityToolkit Sample App
2. add some python syntax (see screenshot)

Expected behavior

Python syntax highlighting is shown (e.g. print is highlighted as python syntax)

Screenshots

grafik

Windows Build Number

  • [ ] Windows 10 1809 (Build 17763)
  • [ ] Windows 10 1903 (Build 18362)
  • [ ] Windows 10 1909 (Build 18363)
  • [ ] Windows 10 2004 (Build 19041)
  • [ ] Windows 10 20H2 (Build 19042)
  • [ ] Windows 10 21H1 (Build 19043)
  • [ ] Windows 11 21H2 (Build 22000)
  • [X] Other (specify)

Other Windows Build number

Win 11 22H2 (Build 22621.2134)

App minimum and target SDK version

  • [ ] Windows 10, version 1809 (Build 17763)
  • [ ] Windows 10, version 1903 (Build 18362)
  • [X] Windows 10, version 1909 (Build 18363)
  • [ ] Windows 10, version 2004 (Build 19041)
  • [ ] Other (specify)

Other SDK version

No response

Visual Studio Version

2022

Visual Studio Build Number

17.7.1

Device form factor

Desktop

Nuget packages

<PackageReference Include="CommunityToolkit.Mvvm" Version="8.0.0" />
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls.Markdown" Version="7.1.2" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.3.230502000" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.756" />
<PackageReference Include="System.IO.Abstractions" Version="19.2.51" />
<PackageReference Include="System.IO.Ports" Version="7.0.0" />
<PackageReference Include="System.Management" Version="7.0.2" />
<PackageReference Include="System.Reactive" Version="6.0.0" />
<PackageReference Include="WinUIEx" Version="2.2.0" />

Additional context

A list of supported languages is not found, thus expected to have same language support as like on e.g. github.

Help us help you

No.

TRadigk avatar Aug 23 '23 14:08 TRadigk