Word shading text not working for spaces before line break
In Word Home>Paragraph>Shading, I would like to shade scripts similar to what we have for in-line quote in Stack exchange /home/xxx/
I realized that if the shading is just before line break, I cannot extend it to cover some more space after the text end. The result is something like this, with ugly shading not covering all text
If the text is in the middle of the sentence, there is no problem to extend the shading into the white space
Any idea how I can fix the first case ?
1 Answer
It is an idiosyncrasy of Word that you can apply Highlighting to a space character only if one or more visible text characters are foundbefore and after it.
One workaround for this limitation is to add an invisible character after the blank.
The character to use is the weirdzero-width space,
whose unicode encoding is 200b, or in decimal 8203.
Fortunately, Word treats it as a printable character.
This is how to type it after the blank on a desktop keyboard:
- Ensure that NumLock is On
- Press the Alt key and don't release it
- Use the NumPad key to type
8203 - Release the Alt key
On a keyboard that doesn't have a NumPad, you will need to use the On-Screen Keyboard (osk.exe).
Now select the text and the following blank (be careful not to select the zero-width space) and apply the shading.
3