View Ticket
Not logged in
Ticket UUID: 162e66c9ead50926d21298952ec6495f527431ab
Title: Inline variant of

Status: Open Type: Feature_Request
Severity: Cosmetic Priority: Immediate
Subsystem: one Resolution: Open
Last Modified: 2008-11-18 16:07:31
Version Found In: 4b56350ecb
Description & Comments:
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 &nbsp; 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 &lt; 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>...