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 highlighting for console interactions #2304

Closed
madjxatw opened this issue Feb 2, 2024 · 1 comment
Closed

Syntax highlighting for console interactions #2304

madjxatw opened this issue Feb 2, 2024 · 1 comment
Labels
C-enhancement Category: Enhancement or feature request

Comments

@madjxatw
Copy link

madjxatw commented Feb 2, 2024

Problem

My documents contain a lot of code blocks for console interactions, e.g.:

[root@code-audit ~]# last
root     pts/0        192.168.12.54     Mon Aug 20 14:31 - still logged in

Console interaction highlighting should be supported by highlight.js? I put the following in my markdown file but it is not highlighted at all in the rendered HTML.

```console
[root@code-audit ~]# last
root     pts/0        192.168.12.54     Mon Aug 20 14:31 - still logged in
```

Proposed Solution

No response

Notes

No response

@madjxatw madjxatw added the C-enhancement Category: Enhancement or feature request label Feb 2, 2024
@madjxatw madjxatw closed this as completed Feb 2, 2024
@madjxatw
Copy link
Author

madjxatw commented Feb 2, 2024

The prompt gets highlighted after I removed the ~ part, so the syntax supported for console prompt is limited.

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

No branches or pull requests

1 participant