Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax coloring/highlighting in the REPL #4223

Open
scabug opened this issue Feb 7, 2011 · 10 comments
Open

Syntax coloring/highlighting in the REPL #4223

scabug opened this issue Feb 7, 2011 · 10 comments

Comments

@scabug
Copy link

scabug commented Feb 7, 2011

= problem =
Currently there is no syntax coloring/highlighting in the REPL.

= analysis =
Having syntax coloring/highlighting in the REPL would be very helpful for reading the code, spotting typos and other mistakes.

It would also be a great thing for beginners who are still learning the language and need some visual guidance.

= enhancement recommendation =
Add syntax coloring/highlighting to the REPL.

@scabug
Copy link
Author

scabug commented Feb 7, 2011

Imported From: https://issues.scala-lang.org/browse/SI-4223?orig=1
Reporter: @soc
Assignee: @puffnfresh

@scabug
Copy link
Author

scabug commented Feb 7, 2011

@paulp said:
Yeah, this would be cool.

@scabug
Copy link
Author

scabug commented Oct 6, 2011

Luigi Plinge (rbj2001) said:
Something like they have on StackOverflow would be a lot better than nothing. Their scheme seems pretty simple: keywords dark blue, anything beginning with a capital letter light blue, numbers / anything between quotes or < > dark red, everything else black. (I haven't done more than a few minutes of analysis but this covers all examples I've looked at.)

@scabug
Copy link
Author

scabug commented Apr 14, 2013

@soc said:
A simple, incremental improvement would be to have colored prompts, so that at least the definition and its results can be visually differentiated.

@scabug
Copy link
Author

scabug commented Feb 8, 2014

Stefano Sgorlon (gokyo) said (edited on Feb 8, 2014 2:01:59 PM UTC):
I am looking at this issue. I try to fix it.
I will update you once I have good news :)

@scabug
Copy link
Author

scabug commented Sep 22, 2014

@retronym said (edited on Sep 22, 2014 5:40:49 AM UTC):
Coloured prompts have been proposed by @puffnfresh in scala/scala#3993, assigning this ticket to him.

@scabug
Copy link
Author

scabug commented Sep 22, 2014

@puffnfresh said:
Sounds like [~retronym] is happy to target the -Dscala.color flag for 2.11 but then change to JLine auto-detection in 2.12 so that we can get feedback on the bikeshed paint before committing to it?

@scabug
Copy link
Author

scabug commented Sep 22, 2014

@puffnfresh said:
Think I'll write the auto-detection for Typelevel's scalac for our 2.11 compatible release, so we can test it out there.

@scabug
Copy link
Author

scabug commented Sep 22, 2014

@retronym said:
Sounds GTM. wrt the color choice, it would be important to find defaults that works on dark and light terminals.

@SethTisue
Copy link
Member

Ammonite has it, Dotty has it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants