Mark prompts differently in terminal/console blocks
javiereguiluz opened this issue · 2 comments
javiereguiluz commented
code-block:: terminal is highlighted like this:
We need the "prompt" ($ in Linux and macOS and C:\> in Windows) to be marked differently. This way we can apply different CSS styles to it and make it non-selectable by users (important when copying commands).
Today we do this using some ugly JS/CSS hacks ... but thanks to the new RST parser we could do this in PHP while building docs. It's similar to this -> https://github.com/weaverryan/docs-builder/pull/41/files
We could use hljs-prompt as the CSS class of this new element. Any volunteer to take care of this? Thanks!
weaverryan commented
Fixed by #78
Too easy Javier 🥱 😉
javiereguiluz commented
😄 Thanks Ryan!
