What I do now is make an screenimage of that code and past it as image

> -----Original Message-----
> From: Jochen F. Rick [mailto:[EMAIL PROTECTED]]
> Sent: dinsdag 29 januari 2002 22:53
> To: [EMAIL PROTECTED]
> Subject: Re: [pws] Star which doesn't activate a page name.
> 
> 
> No. XML is so similar to HTML that it doesn't fly. In that case, you 
> would have to do some serious hacking in the formatters to 
> make it work.
> 
> Peace and Luck!
> 
> Je77
> 
> On Tue, Jan 29, 2002 at 10:19:01PM +0100, 
> [EMAIL PROTECTED] wrote:
> > I did try to do the same with showing real XML code on 
> page, but there it
> > does not work.. Do you have another trick for that?
> > 
> > > -----Original Message-----
> > > From: Felix Franz [mailto:[EMAIL PROTECTED]]
> > > Sent: dinsdag 29 januari 2002 13:14
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [pws] Star which doesn't activate a page name.
> > > 
> > > 
> > > John Fletcher wrote:
> > > 
> > > > I want to include C++ code in my wiki pages.  C++ 
> contains *, so I 
> > > > would like to do something which will print as * and will 
> > > not activate 
> > > > a swiki page name.
> > > > 
> > > > I have tried * which gets translated into a star, 
> > > > 
> > > > and ☆ which doesn't print.
> > > > 
> > > > ANy thoughts.
> > > 
> > > 
> > > have you tried to sorround the C++-code using <html><pre>?
> > > 
> > > <html><pre>
> > > #include <iostream>
> > > #include <list>
> > > #include <iterator>
> > > #include <algorithm>
> > > 
> > > struct {
> > >   void operator()(int i){cout<<i<<"\n";}
> > > } c;
> > > int main(){
> > >   list<int> il(2,1);
> > >   list<int>::iterator i1(il.begin()),i2(i1);i2++;
> > >   back_insert_iterator<list<int> >i3(il);
> > >   for(;*i1<20000;i1++,++i2)
> > >           *i3=*i1+*i2;
> > >   for_each(il.begin(),il.end(),c);
> > >   return 0;
> > > }
> > > </pre></html>
> > > 
> > > works on swiki 1.1
> > > 
> > > 
> > > Cheers,
> > > 
> > > 
> > > felix
> > > 
> > > 
> > > > 
> > > > I am using an old swiki on Squeak 2.2
> > > > 
> > > > John
> > > > 
> > > > 
> > > > 
> > > 
> > > 
> 


Reply via email to