>> writefln("The %c(red,white)(widgetometer%) is a device formeasuring"); // >> for writing red on white
Would something like the following be possible? // col is a string-accepting function that returns a correctly formatted string // red and white are from a general Color enum alias col!(Color.red, Color.white) rw; writeln("The ", rw("widgetometer"), " is a device for measuring...");