From: Steve W. <sw...@wc...> - 2000-12-09 19:04:49
|
On Sat, 9 Dec 2000, Stephan Marzi - MIG wrote: > its perfect that the script works now without problems, but is there may > also a possibility to remove the "|" function. I don't like to write a | > in every line. I will use a javascript html editor and its nearly > imopossible to insert |'s on every line. What can I do? | <joke> | Use Emacs ;^) | </joke> WELL... we have no plans to do away with the |, and in the one year that this project has existed you're the first person to use HTML, AFAIK. But there is the issue also of: putting program code into the Wiki. Recently a user wanted to put bash scripts into pages, but this means he has to indent every single line with a space so the formatting is preserved. There is a way to introduce something like <pre></pre> tags into PhpWiki. This would apply to your problem too. I want to add it but it won't happen anytime soon (OTOH it might happen right away if someone sends a patch). The central technical problem here is that we process the Wiki markup one line at a time, instead of as one big blob of text. This usually means one line doesn't know what markup other lines contain; for example, ''this will not appear in italics because it spans lines'' whereas ''this would'' because it's self contained. This is the technical reason why eliminating leading bars or spaces is a problem. It's always been the case that users want more markup; we've received three patches to add tables, and to date we've not added them. I've always said from the outset that I will not reinvent HTML, which is the end result of adding more markup constructs to the language. However I'll look into the matter, because it's an interesting technical challenge and we might be able to extend the list processing (how we handle <ul>, <ol> etc) to support <pre> and <inline-html>. cheers sw > > Steve Wainstead wrote: > > > Does so :-) Check the link again. Lines with HTML have to start with a bar > > (|). This is explained in TextFormattingRules. > > > > cheers > > sw > > > > On Fri, 8 Dec 2000, Stephan Marzi - MIG wrote: > > > > > Iam sorry but I uncommented the line and it didnt work - also the <blink> tag > > > didnt work ;-) > > > > > > What can I do now? See the prob at: > > > http://mig.ready4surf.de:80/phpwiki/index.php > > > > > > Steve Wainstead wrote: > > > > > > > In lib/transform.php, line 58, you will see: > > > > > > > > /* If your web server is not accessble to the general public, you may > > > > allow this code below, which allows embedded HTML. If just anyone can > > > > reach > > > > your web server it is highly advised that you do not allow this. > > > > > > > > elseif (preg_match("/(^\|)(.*)/", $tmpline, $matches)) { > > > > // HTML mode > > > > $html .= SetHTMLOutputMode("", ZERO_DEPTH, 0); > > > > $html .= $matches[2]; > > > > continue; > > > > } > > > > */ > > > > > > > > Uncomment this block and you can then use a bar | at the start of a line > > > > to inline HTML. I haven't done this in ages, let me see if it still > > > > works... yep, blink tags work just fine ;-) > > > > > > > > cheers > > > > sw > > > > > > > > On Thu, 7 Dec 2000, Steve wrote: > > > > > > > > > Nice Wiki, but how can I enable the support of html tags? > > > > > > > > > > Regards > > > > > Steve > > > > > > > > > > > > > ...............................ooo0000ooo................................. > > > > Hear FM quality freeform radio through the Internet: http://wcsb.org/ > > > > home page: www.wcsb.org/~swain > > > > > > -- > > > Mit freundlichen Grüßen / Best Regards > > > > > > Stephan Marzi > > > Marzi Internet Gruppe [Group] > > > http://www.MarziInternetGroup.com/ > > > The MIG project alliance. > > > > > > > > > > ...............................ooo0000ooo................................. > > Hear FM quality freeform radio through the Internet: http://wcsb.org/ > > home page: www.wcsb.org/~swain > > -- > Mit freundlichen Grüßen / Best Regards > > Stephan Marzi > Marzi Internet Gruppe [Group] > http://www.MarziInternetGroup.com/ > The MIG project alliance. > > ...............................ooo0000ooo................................. Hear FM quality freeform radio through the Internet: http://wcsb.org/ home page: www.wcsb.org/~swain |