Decorating string fragments using delimiters
<p>Back in my days at </p>
<p><a href="https://medium.com/u/7d8fd6d6f6eb?source=post_page-----1ef5c380868f--------------------------------" rel="noopener" target="_blank">Supercharge</a></p>
<p>I had the chance to work with </p>
<p><a href="https://medium.com/u/34dd3ed4841c?source=post_page-----1ef5c380868f--------------------------------" rel="noopener" target="_blank">Gergő Németh</a></p>
<p> 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.</p>
<p><img alt="" src="https://miro.medium.com/v2/resize:fit:770/1*nOXGkK7xZ9V2-TJmRse39g.jpeg" style="height:467px; width:700px" /></p>
<p>Photo by <a href="https://unsplash.com/@lukerv4?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash" rel="noopener ugc nofollow" target="_blank">Ervin Lukacs</a> on <a href="https://unsplash.com/photos/brown-concrete-building-near-body-of-water-during-daytime-sMyQb3i9bNA?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash" rel="noopener ugc nofollow" target="_blank">Unsplash</a></p>
<p>Considering the string “<em>The prettiest city in Europe is Budapest</em>”, let’s suppose we would like that the word “<em>Europe</em>” were displayed on a <strong>bold</strong> font and with <strong>blue</strong> color, while the word “<em>Budapest</em>” were displayed also on a <strong>bold</strong> font but with <strong>green</strong> color.</p>
<p><a href="https://medium.com/swift2go/decorating-string-fragments-using-delimiters-1ef5c380868f"><strong>Click Here</strong></a></p>