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

Markdown: Why is “julia> ” colored in red? #272

Open
mgkurtz opened this issue Jul 18, 2022 · 2 comments
Open

Markdown: Why is “julia> ” colored in red? #272

mgkurtz opened this issue Jul 18, 2022 · 2 comments

Comments

@mgkurtz
Copy link

mgkurtz commented Jul 18, 2022

I really like the syntax highlighting of markdown code blocks. Only the red “julia> ” prompt really irritates me every time. Could the prompt rather be colored in green or like the currently configured prompt?

Currently :red is hard coded in

print(buff, Crayon(foreground = :red, bold = true), "julia> ", Crayon(reset = true))

Could we change that into

print(buff, Crayon(bold = true), INPUT_PROMPT_PREFIX, "julia> " , Crayon(reset = true))

or something alike?

Perhaps alternatively fetch the appropriate prefix from Base.active_repl.interface.modes[1].prompt_prefix and maybe also change "julia> " into the current prompt?

@KristofferC
Copy link
Owner

It was because of #100

@mgkurtz
Copy link
Author

mgkurtz commented Jul 19, 2022

Thanks for your swift reply. I created a small PR to allow configuration independently of the normal input prompt. I would be happy, if you could look at that @KristofferC.

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

No branches or pull requests

2 participants