DEV Community

Discussion on: Designing the ultimate (INCLUSIVE) writing tool. [Part 1 - a WYSIWYG in 745 *Bytes*! 😱]

 
grahamthedev profile image
GrahamTheDev

Yeah but I couldn’t work out how to also do different colours, unless I used match groups I suppose and increment the group in the loop...

Probably could be done but obviously the idea is this is a base for something useful so I don’t think I will even try it! 😜🤣

Thread Thread
 
lexlohr profile image
Alex Lohr

That's exactly what I did.

Thread Thread
 
grahamthedev profile image
GrahamTheDev

Ah yes, I see it now, being a non code golfer I didn't get that was a counter you had implemented!