Is there a way to replace the last letter of a line by a symbol everytime "break-word" is applied?

Viewed 37

The css property word-break: break-word; breaks a word to avoid an overflow. Is there any way to add a sign like "-" at the end of a line everytime break-word is applied? That would really help to indicate that a word was broken and would enhance readability.

Thats how break-word works by default:

enter image description here

I would like it to replace the last letter of the line and put in the symbol "-" in instead, so it would look like this everytime break-word is applied.

enter image description here

Is there a way to achieve this?

2 Answers
Related