> Raw string literals are convenient for long paragraphs, expect representing
> back quotes itself. I have to break down long string and use a
> standalone "`" to output back quote. It's not efficient.
Why isn't it efficient? Replacing ` with `+"`"+` seems fine to me.
Dave.
> - a special char sequence to represent back quote, e.g. `a```b` means "a`b"
Two `` are actually enough, as in SQL an Ada.
(I assumed that this quoting was in the language already, but purely
for lexing, it does not matter.)
Since, AFAIK rhtml, is a format for ruby template, I should just point that,
in case your rhtml file change you will need to recompile your entire
source code to
update with that.
Maybe, and this is a big maybe, instead of generating .go files you
could generate files for the
go html/template or text/template.
This solves the quoting problem and allow for template change without
code recompiling.
--
André Moraes
http://andredevchannel.blogspot.com/
If you escape the quote character by duplication, the set of
expressible strings becomes larger, without having to alter strings
which you could write before.
Then the solution is easy: don't use those fonts.
Andrew