Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

MarkdownTextBlock - Python not supported? #4928

Open

Description

@TRadigk

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?

  • 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)
  • 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)
  • 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.

Activity

  1. added
    bug 🐛An unexpected issue that highlights incorrect behavior
    on Aug 23, 2023
  2. michael-hawker commented on Sep 2, 2023

    @michael-hawker
    Member

    Python was added to the underlying ColorCode library here - CommunityToolkit/ColorCode-Universal#15

    We just haven't updated this control since. This control won't ship in 8.0 though, a replacement is still being worked on in Windows Community Toolkit Labs here: CommunityToolkit/Labs-Windows#480

    That should hopefully get merged in after we release 8.0 and update Labs infrastructure with the improvements we've made for our new release.

  3. TRadigk commented on Mar 15, 2024

    @TRadigk
    Author

    @michael-hawker
    Any news? I found a merged PR of a possible successor but no chance to test it. It is not included when I start the sample app for the browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛An unexpected issue that highlights incorrect behaviormarkdown 📑Issues related to Markdown

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions