On Wed, Apr 20, 2016 at 11:53 AM, <[email protected]> wrote: > Good, this works. But, I don't think the preference for expressions over > strings is mentioned in the Metaprogramming section of the manual.
I didn't know parsing was even part of it. It really shouldn't be. > > John > > On Wednesday, April 20, 2016 at 4:19:18 PM UTC+2, Yichao Yu wrote: >> >> On Wed, Apr 20, 2016 at 10:11 AM, <[email protected]> wrote: >> > I see. To get normal weight, red, warn() text, this works for me: >> > >> > Base.text_colors[:rednormal] = "\033[0m\033[31m" >> > Base.eval(parse("default_color_warn = :rednormal")) >> >> Base.eval(:(default_color_warn = :rednormal)) >> >> at least. You almost never want to use `parse` and then `eval`. >> >> > >> > text_colors is defined in base/client.jl >> > >> > On Wednesday, April 20, 2016 at 3:10:19 PM UTC+2, [email protected] >> > wrote: >> >> >> >> Thanks, useful info. Although, I don't mind the colors. It's the forced >> >> bolding that looks so bad... :(
