Jump to content

User:Evad37/showhardspaces

From Wikipedia, the free encyclopedia

showhardspaces is a script that makes hard spaces, a.k.a. non-breaking spaces ( ) visible. They will be shown as "", so that you can check if they have been applied correctly per Wikipedia:Manual of Style#Non-breaking spaces.

WARNING: I have only tested this code on Chrome (v32) on Windows 7 – use at your own risk.

Installation

[edit]

To install the script, add:

importScript('User:Evad37/showhardspaces.js'); // [[User:Evad37/showhardspaces]]

to Special:MyPage/common.js. There will be a link "Highlight hard spaces" in the toolbox on the left on every mainspace article.