[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?


sorry, I think you have to exchange each "<" with "&lt;" and ">" with 
"&gt;". The example I gave does *not* work as expected.

Cheers,

felix


> 
> 
>>-----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 &#42; which gets translated into a star, 
>>>
>>>and &star; 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