From: Phlip Date: 2005-11-07T22:42:11+09:00 Subject: Re: A wiki markup class Lyndon Samson wrote a little wiki for fun: class LykiInterpreter def LykiInterpreter.interpret(pageBody) pb=pageBody.clone regExps = [] regExps << ['(?:[^=>]|\A)([A-Z]{1}\w+[A-Z]{1}\w+)','\1'] regExps << ['^ [*](.*)$','
  • \1
  • '] regExps << ['\r','
    '] regExps << ['\[\[',''] regExps << ['\]\]',''] regExps << ['"""""(.*?)"""""','\1'] regExps << ['"""(.*?)"""','\1'] regExps << ['""(.*?)""','\1'] regExps << ['\{\{\{','
    ']
        regExps << ['}}}','
    '] regExps.each_index{|i| ... Here: http://c2.com/cgi/wiki?WikiStyleSheet Now you can edit the advanced Wiki tags in a Wiki page. -- Phlip http://www.greencheese.org/ZeekLand <-- NOT a blog!!!