Fossil SCM
Inline variant of <verbatim>
162e66c9ead5092…
· opened 17 years, 8 months ago
- Type
- Feature_Request
- Priority
- Immediate
- Severity
- Cosmetic
- Resolution
- Fixed
- Subsystem
- one
- Created
- July 24, 2008 4:01 p.m.
It would be nice to have an inline variant of the <verbatim> tag. Sometimes I would like to switch of wiki and html rendering within plain floating text (like e.g. the verbatim tag in the sentence above).
So it would be nice to have a <verb> or <v> tag, that could be used in floating text.
drh added on 2008-07-24 16:16:31:
I was thinking the same thing as I was working the previous ticket on this
subject. Perhaps <nohtml> would work. LaTeX has separate
\begin{verbatim} and \verb tags - which argues for <verb>. But
<nohtml> seems more html-like to me. And it better carries the
meaning of the tag. <nohtml> does not select a constant-width font
and make spacing significant like <pre> does. <nohtml> merely
disables all <...> and &aaa; markup. Line wrapping still occurs
normally.
<nohtml> certainly would have made typing the previous paragraph easier!
stephan added on 2008-11-18 08:13:50:
Personally i would prefer that we go more towards compatibility with Google Code's wiki, in which case the "verbatim" or "code" markup is:
{{{ your code goes here }}}
Of the wikis i've worked with, this one is (to me) the lest intrusive, easiest to type, and easiest to spot when editing.
kkinnell added on 2008-11-18 15:36:11:
I've been using <code> in .wiki files, which is
not too much of a pain, unless you have to get a '<' in there. It's not really verbatim, but usually the effect I'm going for is a
monospaced font. If an inline verbatim tag would guarantee a best effort to keep
a short phrase all on one line, it would save putting a few
characters.
Don't forget that any sentence that starts "Wouldn't it be convenient if..." produces an aroma that the horrible feeping creatures can smell a continent away.
heh.
drh added on 2008-11-18 16:07:31:
Note that a stray < character in wiki is rendered as < as long as it
is not followed by a valid markup element name.
I suppose we could add a <verb> element that worked like <code><nohtml>...
jeremy_c added on 2009-12-31 04:21:48:
This was added at some point in time as <nowiki>hello</nowiki>