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

Python Code Highlighting doesn't work. #151

Closed
saulojoab opened this issue Aug 17, 2019 · 1 comment
Closed

Python Code Highlighting doesn't work. #151

saulojoab opened this issue Aug 17, 2019 · 1 comment

Comments

@saulojoab
Copy link

Python code highlighting doesn't work. Also, some other keywords (ex: console.log() JS) from other languages don't highlight.

To Reproduce
See screnshots.

Expected behavior
The keywords should be colored. They're all white.
I also tried python instead of py. Didn't work as well.

Screenshots
image

Desktop

  • OS: Windows 10 1809 17763.615
@0x7c13
Copy link
Owner

0x7c13 commented Aug 17, 2019

MarkdownTextBlock is the implementation I used to render Markdown and it uses ColorCode behind scenes for rendering Code blocks and here is the list of languages it supports out of box:

Language Support
ColorCode supports the following languages:

XML
Java
JavaScript
SQL
C#
VB.NET
ASPX (C#)
ASPX (VB.NET)
C++
PHP
PowerShell
Typescript
FSharp

You can either add python highlighting supports for ColorCode library or add custom code block renderer for MarkdownTextBlock for python. Either way works.

@0x7c13 0x7c13 closed this as completed Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants