Skip to content

Commit

Permalink
Merge pull request #101 from KristofferC/kc/help_md_prompt_color
Browse files Browse the repository at this point in the history
use yellow for prompt in markdown
  • Loading branch information
KristofferC authored Sep 17, 2017
2 parents 6b873e7 + 5101bf6 commit df3ad49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MarkdownHighlighter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function Base.Markdown.term(io::IO, md::Base.Markdown.Code, columns)
do_syntax = false
if lang == "jldoctest" || lang == "julia-repl"
do_syntax = true
code_blocks = split("\n"*code, "\njulia> ")
code_blocks = split("\n" * code, "\njulia> ")
for codeblock in code_blocks[2:end] #
expr, pos = parse(codeblock, 1, raise = false);
sourcecode, output = if pos > length(codeblock)
Expand All @@ -41,7 +41,7 @@ function Base.Markdown.term(io::IO, md::Base.Markdown.Code, columns)
SYNTAX_HIGHLIGHTER_SETTINGS(crayons, tokens, 0)
buff = IOBuffer()
if lang == "jldoctest" || lang == "julia-repl"
print(buff, Crayon(foreground = :green, bold = true), "julia> ", Crayon(reset = true))
print(buff, Crayon(foreground = :yellow, bold = true), "julia> ", Crayon(reset = true))
end
for (token, crayon) in zip(tokens, crayons)
print(buff, crayon)
Expand Down

0 comments on commit df3ad49

Please sign in to comment.