Strike through plain text with unicode characters?

流过昼夜 提交于 2019-12-09 06:25:17

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/38926669/strike-through-plain-text-with-unicode-characters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!