-
Notifications
You must be signed in to change notification settings - Fork 109
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
Command shortcode #55
Conversation
ca6dff4
to
d0b6107
Compare
f2f7ff3
to
ffc805e
Compare
ffc805e
to
024c0c2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the one comment I posted (additional explanation / comments in the shortcode) it looks really nice!
I just compared main
with this feature branch. Even though one might expect that it's not a big deal, it's really putting ease on ones nerve when you can just select the code without having to care about the prefixes. Also the formatting looks a little bit nicer (border).
This command shortcode automatically makes the $ or # in front of commands unselectable.
How to use:
You can also pass parameters for the highlighting (like highlighting line numbers) to it, just like the highlight shortcode
When to use it vs script tags with bash:
When NOT to use it:
They should be using a bash code block, without prefixed $ or #s.