+ 19
[Code Playground] Feature proposition: Text Colors for non-web codes
Guys, I would like to suggest to Sololearn a small, but attractive feature for the Code Playground for non-web languages -- to enable a multicolor text output. I know that in Python it would require only installing one additional module, like colorama which is very light, to the virtual CP machine, so it doesn't seem to much of a fuss. But in order for other playgrounds to offer the same -- how is that done for other languages? I'd like to know that before filing an official inquiry about it :)
5 odpowiedzi
+ 29
That would be great! I support the idea.
+ 7
@kurwius I see... So it is just an ouput file which is sent back to the app, right? And so can't contain additional informationapart from the text output itself?
+ 5
See, it was a good idea to share this with the community. Thanks for the answer @kurwius!
+ 2
Those batch processing scripts have been the target area in a few of the bugs I've sent in, including the ..\Playground\ 'bug' (all langs but 'web').
In this little code (text weather), I thought I could use a regex to strip much of the ANSI escapes but was a little like 'why am I doing this' when setting out to strip the rest.
https://code.sololearn.com/cLf8A8E2Wv6H/?ref=app
Knowing Android terminals are fine, I kinda just wanted to have it work. It still perplexes me that I can't copy output to clipboard (one reason I wrote a pastebin exporter).
0
that would be very helpful in understanding other codes