Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MarkdownTextBlock - Python not supported? #4928

Open
3 of 14 tasks
TRadigk opened this issue Aug 23, 2023 · 3 comments
Open
3 of 14 tasks

MarkdownTextBlock - Python not supported? #4928

TRadigk opened this issue Aug 23, 2023 · 3 comments
Labels
bug 🐛 An unexpected issue that highlights incorrect behavior markdown 📑 Issues related to Markdown

Comments

@TRadigk
Copy link

TRadigk commented Aug 23, 2023

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.

@TRadigk TRadigk added the bug 🐛 An unexpected issue that highlights incorrect behavior label Aug 23, 2023
@ghost ghost added the needs triage 🔍 label Aug 23, 2023
@ghost
Copy link

ghost commented Aug 23, 2023

Hello TRadigk, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

@michael-hawker michael-hawker added markdown 📑 Issues related to Markdown and removed needs triage 🔍 labels Sep 2, 2023
@michael-hawker
Copy link
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.

@TRadigk
Copy link
Author

TRadigk commented Mar 15, 2024

@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
Labels
bug 🐛 An unexpected issue that highlights incorrect behavior markdown 📑 Issues related to Markdown
Projects
None yet
Development

No branches or pull requests

2 participants