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

No syntax highlighting inside language injections? #431

Open
daniel-noland opened this issue Sep 17, 2024 · 0 comments
Open

No syntax highlighting inside language injections? #431

daniel-noland opened this issue Sep 17, 2024 · 0 comments

Comments

@daniel-noland
Copy link

daniel-noland commented Sep 17, 2024

So far as I can tell, there is no way to enable syntax highlighting in markdown code fences of type plantuml or puml.

For instance, the following in a markdown file does not highlight.

```puml
@startuml
Hello -> World
@enduml 
```

On the other hand, every other language I commonly use is highlighted as expected within code fences.

For example,

```rust
fn main() {}
```

displays as expected

Syntax highlighting works as expected in .puml files.

It is also worth noting that the in-editor preview and refactor functions work as expected inside code fences.

Is it possible to enable syntax highlighting in language injected sections like this?

Screen cap from a markdown file:

lang-injections2

Screen cap from a .puml file:

lang-injections1

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

1 participant