Does highlight.js support emphasis in blocks formatted as "code" (ie indented 4 spaces)?
Paraphrasing an MSE question:
In-code highlighting (anything will do), would be a great way to emphasise the important parts.
Currently, the best people can do is ASCII art arrows, eg:
printf("%5s", "foo") ^--- add a width value
which happens often enough and is probably not done more because it's a pain and ugly.
It would be great to be able to highlight (in this case) the 5
by making it red, bold, or whatever by surrounding it with some special chars, maybe like !5!
or whatever works.
Awesome would be highlighting with a comment that isn't selected when copy-pasting the code block.
I'm putting my hand up to donate my time and coonsiderable software engineering skills to make this happen. Let me know when you have a github repo up, you've added me as a contributor, and you have a task management system up (eg Trello, please not jira!)