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

[FEATURE] Add console block highlight #3094

Open
alexminder opened this issue Sep 1, 2024 · 1 comment
Open

[FEATURE] Add console block highlight #3094

alexminder opened this issue Sep 1, 2024 · 1 comment
Labels

Comments

@alexminder
Copy link

Is your feature request related to a problem? Please describe.

There no code highlight for console content. Bash,shell and console is not the same.

Describe the solution you'd like

For example, Github render engine supports console block identifier:

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

image

It listed in https://github.com/github-linguist/linguist/blob/master/lib/linguist/languages.yml#L6782

@pbek
Copy link
Owner

pbek commented Sep 1, 2024

The code block highlighting is part of https://github.com/pbek/qmarkdowntextedit.

You could look at the bash highlighting and use that as a starting point:
https://github.com/pbek/qmarkdowntextedit/blob/48d602b174ac5f6600149b3874b00a01553bda94/markdownhighlighter.cpp#L336

The last language contribution was this commit, it could also serve as a good example of what to do:
pbek/qmarkdowntextedit@8157cd6

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

No branches or pull requests

2 participants