This question already has an answer here:
- Bold code in a question 9 answers
How can I make a word in a code sample bold? I only see asterisks around the expected bold text.
sample **sample** sample
sample sample sample
Since you can use other HTML tags as well, this is nice for including inline documentation for commands or classes, etc.:
rename 's/\.bak$//' *.bak
But, with any formatting tricks, please don't overdo it.
Disclaimer: I do not condone this, I'm just pointing out a possibility (for the sake of completion)
The basic idea is to apply bold/italic formatting to backtick-enclosed string (instead of applying within the backticks), then put the code spans side by side so that they render as a single code span.
Formatting (bold and italic) in emulated code block
Huge drawback: no syntax highlighting
Formatting in code span
Make it an actual quote instead of a code fragment, by prefixing the text with
The following markdown:
Select your word, make it bold.
Select Full string and make it quoted.