1

Taking inspiration from programming books in which different (but similar) blocks of code use bold text to highlight differences between each other, generally new lines or new values, I would like to do it in my answer in SO, but it seems not possibile to combine bolde text with code snippets.

Is there a way to highlight specific lines of code snippet?

In other similar questions are proposed different solutions, for example putting an "*" in front of new lines, but is a workaround and not what I'm asking.

Thanks

  • You mean you want *it* **bold** like ***this***? Or do you want markdown to render inside backticks? – It's Over Aug 3 '15 at 8:30
  • You mean you want it bold like this? – Patrick Hofman Aug 3 '15 at 8:31
  • ^ the code from @inɒzɘmɒЯ.A.M – Patrick Hofman Aug 3 '15 at 8:31
  • Yes, but in CODE snippet. for example: how to highlight the word "example" in the following code example ? – Luca Detomi Aug 3 '15 at 8:32
  • See the proposed duplicate. – Patrick Hofman Aug 3 '15 at 8:33

Browse other questions tagged .