# Wrap the text and Change the specific word colour in a text file

**URL:** https://discourse.processing.org/t/wrap-the-text-and-change-the-specific-word-colour-in-a-text-file/14814
**Category:** Coding Questions
**Created:** [October 20, 2019, 2:46am UTC](https://discourse.processing.org/t/wrap-the-text-and-change-the-specific-word-colour-in-a-text-file/14814 "2019-10-20T02:46:31Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [October 21, 2019, 3:53am UTC](https://discourse.processing.org/t/wrap-the-text-and-change-the-specific-word-colour-in-a-text-file/14814/3 "2019-10-21T03:53:04Z")

</div>

Because of the way text works in Processing, formatting individual words is hard in the general case.

Here is an example of formatting words in a text box: SentenceColoredText. It uses a “bricklaying method” to fill the space with text units.

- 

[https://forum.processing.org/two/discussion/comment/87679/#Comment\_87679](https://forum.processing.org/two/discussion/comment/87679/#Comment_87679)

Also, a small markup language for text formatting from @Chrisir :

- 

[https://forum.processing.org/two/discussion/comment/120813/#Comment\_120813](https://forum.processing.org/two/discussion/comment/120813/#Comment_120813)

---

_[View the full topic](https://discourse.processing.org/t/wrap-the-text-and-change-the-specific-word-colour-in-a-text-file/14814)._
