View source for Extensiones Formatos

{{toc}}

====Scripts PHP====

#||
||
##""%%(php)
<?php
phpinfo();
$s = "Hello, World!\n";
echo $s;
%%""##
|
%%(php)
<?php
phpinfo();
$s = "Hello, World!\n";
echo $s;
%%
||
||#

Nota: El código debe comenzar con <?php y finalizar con ?>

====Details====
#|| ||
##""%%(details title="Summary" open=1)
Details info.
%%""##
|
%%(details title="Summary" open=1)The **HTML Details Element** (##<details>##) creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. A summary or label can be provided using the ##<summary>## element. %%
|| ||#

====Command Line====
#|| ||
##""%%(cl)
zypper dup --no-recommends
%%""##
|
%%(cl)
zypper dup --no-recommends
%%
|| ||#

====Chat====
#|| ||
##""%%(chat [type="div|table"])
chat log
%%""##
|
%%(chat type="table")
[12:04] Mike: Hi altogether.
[12:05] Alice: Did you check out the link https://example.com/
[12:10] Pete: I did't read your message.
The images 
you drawn
are awesome!
%%
|| ||#

====E-mail====

#||
||
##""%%(email)
Hi!
RI>> Yes, it is.
>Are you sure?

Of course, yes!

Roman.
%%""##
|
%%(email)
Hi!
RI>> Yes, it is.
>Are you sure?

Of course, yes!

Roman.
%%
||
||#

====Código SQL====

#||
||
##""%%(sql)
SELECT * 
FROM sometable 
WHERE a = '12' AND b = 2 
ORDER BY c DESC --Comment;
%%""##
|
%%(sql)
SELECT * 
FROM sometable
WHERE a = '12' AND b = 2 
ORDER BY c DESC --Comment;
%%
||
||#

====Código HTML====

#||
||
##""%%(html)
<html>
<a href="http://example.com" width="8">test</a>
</html>
%%""##
|
%%(html)
<html>
<a href="http://example.com" width="8">test</a>
</html>
%%
||
||#

====Código CSS====

#||
||
##""%%(css)
body {margin: 0; padding:5px;}
.class {background:url("http://example.com/")}
%%""##
|
%%(css)
body {margin: 0; padding:5px;}
.class {background:url("http://example.com/")}
%%
||
||#

====Ficheros de configuración====

#||
||
##""%%(ini)
[Wiki]
BestEngine="WackoWiki"
Version=6
%%""##
|
%%(ini)
[Wiki]
BestEngine="WackoWiki"
Version=6
%%
||
||#

====Código PASCAL====

#||
||
##""%%(pascal)
BEGIN
 if a = 15 then writeln("test");
END.
%%""##
|
%%(pascal)
BEGIN
 if a = 15 then writeln("test");
END.
%%
||
||#

#|| ||
##""""##
|||
||
##""%%(noautolinks) no AutoLinks if CamelCase-Words%%""##
|
%%(noautolinks) no AutoLinks if CamelCase-Words%%
||
||#



====Info box====
##""%%(info type="note" title="Notas" icon=0) contenido... %%""##

Tipos: ##default##, ##error##, ##example##, ##important##, ##note##, ##question##, ##quote##, ##success##, ##warning##
##title## box title
##icon## mostrar icono, default value is ##1##

#|| ||
---- ##""%%(info type="note")
contenido... 
%%""##
|
%%(info type="note")
A wiki is a website where users can add, remove, and edit every page using a web browser. It's so terrifically easy for people to jump in and revise pages that wikis are becoming known as the tool of choice for large, multiple-participant projects.
%%
|| ||
---- ##""%%(info type="warning")
contenido... 
%%""##
|
%%(info type="warning")
As with any software that you expose to the internet, there may be bugs or security problems. Do not install WackoWiki unless you intend to keep up with security upgrades.
%%
|| ||#

====Highlighters====

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://example.com/")}
%%""##
|
%%(hl css)
body {margin: 0; padding:5px;}
.class {background:url("http://example.com/")}
%%
||
||
##""%%(hl javascript)
var a = document.getElementById("test");
a.value = new Array(15, 31);
function echo (msg) {alert(msg)};
%%""##
|
%%(hl javascript)
var a = document.getElementById("test");
a.value = new Array(15, 31);
function echo (msg) {alert(msg)};
%%
||
||
##""%%(hl php numbers=2)
<?php
phpinfo();
$s = "Hello, World!\n";
echo $s;
%%""##
|
%%(hl php numbers=2)
<?php
phpinfo();
$s = "Hello, World!\n";
echo $s;
%%
||
||
##""%%(hl xml)
<config>
<section name="test">
  <var>Test</var>
  <val><![CDATA[..text...]]></val>
</section>
</config>
%%""##
|
%%(hl xml)
<config>
<section name="test">
  <var>Test</var>
  <val><![CDATA[..text...]]></val>
</section>
</config>
%%
||
||#

====GeSHi====
((/Dev/PatchesHacks/GeSHi GeSHi Code Highlighting)) - Generic Syntax Highlighter

##""%%(geshi [Formatter] numbers=1 start=35 lines=37) source%%""##
#|| ||
----##""%%(geshi css) CSS-Code%%""##
|
%%(geshi css)
body {margin: 0; padding: 5px;}
.class {background: url("http://example.com/")}
%%
|| ||
Si ves **Formatter** ##highlight/geshi## **no se encuentra**, el ((/Dev/PatchesHacks/GeSHi GeSHi formatter)) no fue añadido a este sitio.
|| ||#