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