For example, the Debug Console renders everything through a multiboard. Multiboard text supports color codes like |cFF99aabb Yet you cannot paste it, because the entire color code is stripped from entered text, beginning with the | pipe character.
If the color code is inside a string, it would be possible to still use it by converting the pipe to \x7c the hex escape code.
- Downside: it doesn't work outside of strings.
- Upside: I think the binary OR is the only place in Lua that makes uses of this character in code.
For example, the Debug Console renders everything through a multiboard. Multiboard text supports color codes like
|cFF99aabbYet you cannot paste it, because the entire color code is stripped from entered text, beginning with the|pipe character.If the color code is inside a string, it would be possible to still use it by converting the pipe to
\x7cthe hex escape code.