Wacko Wiki puede extenderse para formatear tipos de texto especiales.
Se puede acceder estas extensiones utilizando la sintaxis %%(name) text%%.
| %%(php) <? phpinfo(); $s = "Hello, World!\n"; print "$s"; ?> %% |
<? |
Nota: El código debe comenzar con <? y finalizar con ?>
| %%(icq) Somebody 14.05.20 14:52 Hello Roman 14.05.20 14:52 Yes, hello Somebody 28.06.20 2:25 Testing blah blah Roman 28.06.20 2:25 Yep %% |
|
Otras extensiones para ICQ's: icq_t (Trillian), icq_l (ICQ Lite) y icq_m (Miranda IM + nConvers)
| %%(email) Hi! RI>> Yes, it is. >Are you sure? Of course, yes! Roman. %% | Hi! RI>> Yes, it is. >Are you sure? Of course, yes! Roman. |
| %%(sql) SELECT * FROM sometable WHERE a = '12' and b = 2 ORDER BY c DESC %% | SELECT * FROM sometable |
| %%(html) <html> <a href="http://www.ya.ru" width="8">test</a> </html> %% | <html> <a href="http://www.ya.ru" width="8">test</a> </html> |
| %%(css) body {margin: 0; padding:5px;} .class {background:url("http://www.ya.ru/")} %% | body {margin: 0; padding:5px;}
.class {background:url("http://www.ya.ru/")} |
| %%(ini) [Wiki] BestEngine="WackoWiki" Version=4 %% | [Wiki] BestEngine="WackoWiki" Version=4 |
| %%(pascal) BEGIN if a = 15 then writeln("test"); END. %% | BEGIN
if a = 15 then writeln("test");
END. |
| %%(comments) Comments, they will be hidden when the page is stored and redisplayed %% | |
| %%(noautolinks) no AutoLinks if CamelCase-Words%% | no AutoLinks if CamelCase-Words |
Hay también extensiones para resaltar los siguientes formatos ( CSS, diff, DTD, Javascript, mySQL, PHP, Python, SQL, XML).
Estas extensiones se pueden llamar a través de una llamada del tipo %%(hl tipo) donde tipo describe el contenido incluido.
| %%(hl css) body {margin: 0; padding:5px;} .class {background:url("http://www.ya.ru/")} %% |
|
| %%(hl javascript) var a = document.getElementById("test"); a.value = new Array(15, 31); function echo (msg) {alert(msg)}; %% |
|
| %%(hl php) <? phpinfo(); $s = "Hello, World!\n"; print "$s"; ?> %% |
|
| %%(hl xml) <config> <section name="test"> <var>Test</var> <val><![CDATA[..text...]]></val> </section> </config> %% |
|
Es posible asignar a cualquier formateador un contenedor o wrapper mediante el parámetro wrapper .
Los tipos de contenedores (wrappers) disponibles son:
AntonioGonzalez /31.01.2005 15:09/