[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: showing comments in HTML
- From: nospam@thanx
- Date: Thu, 14 Oct 1999 13:11:55 +0200 (CET)
On Thu, 14 Oct 1999, Xose Manoel Ramos wrote:
> El Thu, Oct 07, 1999 at 11:10:02PM +0200, Denis Barbier contaba:
>
> >Hash signs are not welcome within WML ;-)
> >Lines beginning with this char are removed in pass 8 _and_ pass 1.
> >So try <protect pass=1,8>
>
> I have to agree with you, finally I decided using
>
> s/#/\#/g
>
> in my editor, so I will have no more a "#" but just the entity that
> shows that character. Now it works pretty fine.
> Well, I had to change the `verbatim' macro to don't change my
> "#" to "&#035;", but I suppose this is a `personal hack' and
> there is no need to include it in the WML distribution.
>
> Or I should have used "\#" and forget in fiddling with `verbatim'?
Hmmm, without the <verbatim> tag, ampersands and angle brackets in input
could cause unexpected results.
I see 2 solutions:
1) insert code with the <verbatim-file> tag or
2) write
<protect=1><verbatim>
your code here
</verbatim></protect>
If you prefer modifying input lines, i suggest
s/^\([ ]*\)#/\1\#/
^^ space and tab
--
Denis Barbier
WML Maintainer
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com