I want to write multiple spaces in code say
but I want to do this in code block ``. But in this case spaces are merged into one. I found this question but there is no solution... Maybe now somebody knows how to do this?
Looks like the hack suggested in the answer to the question you referring to no longer works, neither in post body nor in comments. (
The backticks are not exactly code blocks.. they won't highlight the code inside them they're used more to "escape" tags so they appear in the post or to distinguish code parts written as part of the sentence.
You can write multiple spaces as part of a paragraph using
However when part of
You also have the
However this can't be inline, even
if it's part of existing paragraph(see the source) it will be parsed into its own line.
To type spaces at a random place, I use two different methods:
Although you can use
So,I am here discussing about three more entity reference that can be used.
In other words, the character width of them are:
So, as per requirement, we can use
For more information and character entity, visit Character entity references in HTML.
Hope this helps.
You can use the real unbreakable space :
Note that the the block itself can't start or end with a space:
is in fact