-
Notifications
You must be signed in to change notification settings - Fork 37
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
Different code styles #65
Comments
What lang-code do you use for codeblock? The bellow code is highlighted.
```cs
using System;
class Main{}
```
The bellow code is not highlighted.
```csharp
using System;
class Main{}
``` |
Thank you! Using replace on incoming string did the trick. |
whistyun
added a commit
that referenced
this issue
Jun 25, 2023
whistyun
added a commit
that referenced
this issue
Jun 28, 2023
MdXaml v1.20.1 has been released. To add syntax highlighting, use sample: App.xaml <!-- xmlns:mdplugins="clr-namespace:MdXaml.Plugins;assembly=MdXaml.Plugins" -->
<Application ...>
<Application.Resources>
<mdplugins:MdXamlPlugins x:Key="MdXamlPlugins">
<mdplugins:MdXamlPlugins.Highlights>
<!--
Create a new alias from the xshd file.
Multiple alias names can be indicated by separating them with ",".
In this case pegasus and peg.
-->
<mdplugins:Definition Alias="pegasus,peg" Resource="pack://application:,,,/Asset/Pegasus-Mode.xshd" />
<!--
Alias an already defined langcode (in this case javascript).
-->
<mdplugins:Definition Alias="typescript,ts" RealName="javascript" />
</mdplugins:MdXamlPlugins.Highlights>
</mdplugins:MdXamlPlugins>
</Application.Resources>
</Application> markdown sample ```peg
@namespace PegExamples
@classname SignificantWhitespaceParser
@using System.Linq
program <object>
= s:"Hello" {s}
```
===
```ts
const message="Hello world!"
console.log(message)
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to configure syntax style for different codeBlock languages?
The text was updated successfully, but these errors were encountered: