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

Support highlighting for console sessions #67

Open
ricpelo opened this issue Mar 28, 2019 · 4 comments
Open

Support highlighting for console sessions #67

ricpelo opened this issue Mar 28, 2019 · 4 comments

Comments

@ricpelo
Copy link

ricpelo commented Mar 28, 2019

Hi! Is it planned syntax highlighting for console sessions? Something like highlight.js do with the shell language definition. (See demo, scroll down to Shell Session section.)

I'm writing teaching material with Pandoc and I need to write many shell commands with console sessions.

Thanks in advance!

@jgm
Copy link
Owner

jgm commented Mar 29, 2019 via email

@ricpelo
Copy link
Author

ricpelo commented Apr 1, 2019

I'll try to do my own syntax definition file, thank you!

tasmo pushed a commit to prototypefund/close-lid-to-encrypt-cryptsetup that referenced this issue Apr 30, 2020
Ideally we would use the ‘console’ hylighting style from Pygments, but
Pandoc doesn't support anything similar:

    jgm/skylighting#67
@chebro
Copy link

chebro commented Oct 6, 2022

I'll try to do my own syntax definition file, thank you!

@ricpelo if you happened to create one would you mind sharing it here?

i used this answer from stackoverflow answer as reference but i couldn't get it working.

@ricpelo
Copy link
Author

ricpelo commented Oct 6, 2022

@ricpelo if you happened to create one would you mind sharing it here?

Sure, but I'm afraid it's really ugly, although it works for my needs. Hope it helps you.

Check my gist to get it:

https://gist.github.com/ricpelo/1ceb8e052956097d1b5192b2f3148367

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

3 participants