Back in my days at
I had the chance to work with
on a really cool project and I remember a specific task we received to decorate fragments of a string with different attributes — and this is what we’ll look into in this article.

Photo by Ervin Lukacs on Unsplash
Considering the string “The prettiest city in Europe is Budapest”, let’s suppose we would like that the word “Europe” were displayed on a bold font and with blue color, while the word “Budapest” were displayed also on a bold font but with green color.