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

Syntax Highlight and Themes #4

Open
Agentew04 opened this issue Jan 23, 2024 · 1 comment
Open

Syntax Highlight and Themes #4

Agentew04 opened this issue Jan 23, 2024 · 1 comment

Comments

@Agentew04
Copy link

Is there a way to change the theming of the syntax highlight? Also, is there a list with the available languages and its codes for the CodeEditorControl.HighlightingLanguage property? I love the way it blends with the new windows 11 look of WinUI 3, I will absolutely be using this in current my projects

@BreeceW
Copy link
Owner

BreeceW commented Mar 4, 2024

The following languages are currently built in:

ID Language
cpp C++
csharp C#
html HTML
javascript JavaScript
json JSON
xml XML
plaintext Plain text

You can also use any of the lexers built-in to Lexilla, but this is a more manual process. The rest of these lexers are planned to be usable from the HighlightingLanguage property later.

The colors can be individually overridden by calling the style APIs when responding to the SyntaxHighlightingApplied event. There is no API for changing the entire theme at this time. There could be integration with VS Code themes in the future.

Thanks for your comments

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