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 coloured code in Markdown fenced blocks #329

Closed
PeterWone opened this issue Jul 7, 2024 Discussed in #315 · 1 comment
Closed

Syntax coloured code in Markdown fenced blocks #329

PeterWone opened this issue Jul 7, 2024 Discussed in #315 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@PeterWone
Copy link
Collaborator

Discussed in #315

Originally posted by filviu June 18, 2024
Apologies if this is already answered I tried searching but couldn't find anything.

If I have code blocks in markdown files like this:

echo "Hello World"

The block has syntax highlighting in vscode and in the markdown preview window (as long as I use a language identifier after the backticks). But the printed output has no such coloring. Is this something I'm messing up or is it expected behavior ?

I tried a few language identifiers but none seemed to have any effect.

Thanks !

I'm attaching an example to illustrate what I mean.

image

@PeterWone PeterWone self-assigned this Jul 7, 2024
@PeterWone PeterWone added the enhancement New feature or request label Jul 7, 2024
PeterWone added a commit that referenced this issue Jul 7, 2024
mechanism for using individual CSS stylesheets or Language grammars #328
@PeterWone PeterWone mentioned this issue Jul 7, 2024
@PeterWone
Copy link
Collaborator Author

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant