# Hard Wrapping using hardwrap.js for long words splits words

**URL:** <https://discuss.codemirror.net/t/hard-wrapping-using-hardwrap-js-for-long-words-splits-words/2488>\
**Category:** Uncategorized\
**Created:** [June 26, 2020, 4:50am UTC](https://discuss.codemirror.net/t/hard-wrapping-using-hardwrap-js-for-long-words-splits-words/2488 "2020-06-26T04:50:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaushikcfd](https://discuss.codemirror.net/letter_avatar_proxy/v4/letter/k/4af34b/32.png) [@kaushikcfd](https://discuss.codemirror.net/u/kaushikcfd)\
**Post date:** [June 26, 2020, 4:50am UTC](https://discuss.codemirror.net/t/hard-wrapping-using-hardwrap-js-for-long-words-splits-words/2488/1 "2020-06-26T04:50:42Z")

</div>

Hello!  
I am using the hardwrap.js addon in a markdown editor and I’m invoking `wrapRange` with a hard wrap column of 80. If I have a long word with \> 80 characters (which is common for URLs) I notice that `wrapRange` would _split_ the word and alter the semantics of the document.

**Q.** Is there a way such words wouldn’t be split?

The behavior I’m expecting is: in such cases lines are allowed to overflow the 80 column limit.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![marijn](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/marijn/32/136_2.png) [@marijn](https://discuss.codemirror.net/u/marijn)\
**Post date:** [June 26, 2020, 11:28am UTC](https://discuss.codemirror.net/t/hard-wrapping-using-hardwrap-js-for-long-words-splits-words/2488/2 "2020-06-26T11:28:15Z")

</div>

Looks like that doesn’t exist yet. It would be possible to add it as an option, if you want to open a pull request that implements that.
