Open MustCodeAl opened 4 months ago
after experimenting all day i kinda figured it out, but my code is quite ugly and i couldnt fix the styling for the rest of example text highlighting
This is more complicated than just splitting the string in half on first whitespace and highlighting the first part. There are pages like sha256sum
, where the command is at the end instead:
- Calculate a SHA256 checksum from `stdin`:
`{{command}} | sha256sum`
That makes it harder, but not impossible. You can take the string to highlight from the title or from the filename. But there are still pages where you just can't reliably infer what the command is. Take a look at :
:
We need to infer that the command to highlight is :
, but:
colon.md
,colon
,So even if we implement it, there are going to be pages where it doesn't work (unless there's some other way I haven't thought of).
What's the client from the first screenshot?
add ability to highlight command name text differently from the style of the example
like this:
config option could look like this: