Search code examples
unicodestrikethrough

Strike through plain text with unicode characters?


Is it possible to strike through unwanted revised words in your code comments? Since developers still code in the dark ages a simpler time of plain text where text cannot be formatted using hidden identifiers, the only way to accomplish this is with Unicode Characters.

Since some unicode characters can extend be̜̤͉̘̝̙͂̓ͫ̽̊̀y̐ͨͧͩ̚o̥̗̞̬̯͚͂n͔͖̤̜̖̪͒̈́ͅd̯̮ͭ their designated boundaries, I thought it might be possible to find a Unicode Character that creates the strike through effect.

Unfortunately dash characters — occupy a significant amount of horizontal space. Is there an alternative character that I can use to create the strike-through effect across my text?


Solution

  • There's U+0336, COMBINING LONG STROKE OVERLAY. Googling Unicode strikethough turns up tools to apply it to your text, such as this one. Whether it looks any good will depend on your font; it looks pretty terrible on my environment.