silkfire / Pastel

Snazz up your console output!
MIT License
405 stars 24 forks source link

Working example of nested colors (issue #6) #7

Closed mattiasnordqvist closed 5 years ago

mattiasnordqvist commented 5 years ago

an example how FormattableString could be used to make nested Pastels work. Unfortunately, this could not be implemented as extension methods, because you can't really have extension methods on FormattableString. :(

This PR is not intended to "look good" yet... it's just a working example of how #6 could be fixed.

Color.IndianRed.Pastel($"abc {"123".Pastel(Color.Green)} efg")
silkfire commented 5 years ago

Closing as this issue has now been resolved as of version 1.3.0.