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

Request: Add support for 'language-console' syntax highliging in code blocks #215

Open
hashkool opened this issue Feb 25, 2021 · 0 comments

Comments

@hashkool
Copy link

hashkool commented Feb 25, 2021

Summary
Would you please add support for 'language-console' syntax highlightin in code blocks, similar to github?

Details
To show console input/output in markdown, it currently is best to have a code block marked as console (and not shell / bash / etc). Currently, preview enhanced does not understand console as a language.

Example

```console
foo@bar:~$ whoami
foo
```

==>

foo@bar:~$ whoami
foo

Note how github is able to highlight this, while markdown preview enhanced (in vscode) does not show any highlighting.

To view the disccusion: https://stackoverflow.com/a/49004070

EDIT I see that language shell-session is supported by markdown preview enhanced (vscode), but github doesn't support shell-session.

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