Thanks Scott. I thought of that, but couldn't see immediately how to do what I wanted. Could you help? :)
Btw, J Luis, thanks but notice the "\$" :) It certainly works without the "\" already :) I was also trying my package StringInterpolations.jl. I could get this to work: x = 2 @interpolate "I like \&x" But this did not work x = 2 s = "I like \$x" @interpolate s In the former case, the argument is a string. In the latter, the argument is a symbol. Any idea how I can fix this? Here is the line in my package: https://github.com/EricForgy/StringInterpolation.jl/blob/master/src/interpolate.jl#L53 On Thursday, March 10, 2016 at 1:25:06 AM UTC+8, Scott Jones wrote: > > If you're interested, try out what I was working on in > https://github.com/ScottPJones/StringUtils.jl/pull/1 > <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FScottPJones%2FStringUtils.jl%2Fpull%2F1&sa=D&sntz=1&usg=AFQjCNGrR-Zq17BBxXUWpTPkdQEJA-NHnQ>, > > combination of Swift style interpolation, Emoji, LaTex and Unicode > character literals, and in-line formatting for interpolated expressions. > > On Wednesday, March 9, 2016 at 8:59:47 AM UTC-5, Eric Forgy wrote: >> >> If I have >> >> x = 2 >> s = "I like \$x" >> >> >> Is there a nice way to get >> >> "I like 2" >> >> >> ? >> >>
