demo

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Nächste ÜberarbeitungBeide Seiten der Revision
demo [28.11.2011 23:50] Raphael Wimmerdemo [24.07.2015 12:33] Raphael Wimmer
Zeile 3: Zeile 3:
 ==== Notizen ==== ==== Notizen ====
  
-<note> Test-Eintrag </note> +WURST!
-==== iCal-Kalendereinträge ====+
  
-{ ical 2011-12-13 14: 00 →  15: 00 @  FIL | Abschlussvortrag :  Abschlussvortrag N.N.} }+<wrap center round tip> Einfach "Quellcode anzeigen" oder "Seite bearbeiten" (oben rechts) anklicken, um zu sehen, wie das geht. </wrap> 
 + 
 + 
 +==== Graphen ==== 
 + 
 +<graphviz dot left 500x200> 
 +digraph finite_state_machine { 
 + rankdir=LR; 
 + size="9,5" 
 + node [shape = doublecircle]; LR_0 LR_3 LR_4 LR_8; 
 + node [shape = circle]; 
 + LR_0 -LR_2 [ label = "AB(B)" ]; 
 + LR_0 -> LR_1 [ label = "SS(S)" ]; 
 + LR_1 -> LR_3 [ label = "S($end)" ]; 
 + LR_2 -> LR_6 [ label = "SS(b)" ]; 
 + LR_2 -> LR_5 [ label = "SS(a)" ]; 
 + LR_2 -> LR_4 [ label = "S(A)" ]; 
 + LR_5 -> LR_7 [ label = "S(b)" ]; 
 + LR_5 -> LR_5 [ label = "S(a)" ]; 
 + LR_6 -> LR_6 [ label = "S(b)" ]; 
 + LR_6 -> LR_5 [ label = "S(a)" ]; 
 + LR_7 -> LR_8 [ label = "S(b)" ]; 
 + LR_7 -> LR_5 [ label = "S(a)" ]; 
 + LR_8 -> LR_6 [ label = "S(b)" ]; 
 + LR_8 -> LR_5 [ label = "S(a)" ]; 
 +} 
 +</graphviz> 
 + 
 + 
 +==== Syntax-Highlighting ====
  
 <sxh php; first-line: 70; highlight: [89,92]; title: New title attribute in action>\\  <sxh php; first-line: 70; highlight: [89,92]; title: New title attribute in action>\\ 
Zeile 16: Zeile 44:
 list($syntax, $attr, $content) = $data;\\  list($syntax, $attr, $content) = $data;\\ 
 if ($syntax == 'sxh') {\\  if ($syntax == 'sxh') {\\ 
-// Check if there's a title in the attribute string. It can't be passed along as a normal parameter to SyntaxHighlighter.\\ +//Check if there's a title in the attribute string. It can't be passed along as a normal parameter to SyntaxHighlighter.\\ 
 if (preg_match("/title:/i", $attr)) {\\  if (preg_match("/title:/i", $attr)) {\\ 
 // Extract title(s) from attribute string.\\  // Extract title(s) from attribute string.\\ 
 $attr_array = explode(";",$attr);\\  $attr_array = explode(";",$attr);\\ 
 $title_array = preg_grep("/title:/i", $attr_array);\\  $title_array = preg_grep("/title:/i", $attr_array);\\ 
-// Extract everything BUT title(s) from attribute string.\\ +//Extract everything BUT title(s) from attribute string.\\ 
 $not_title_array =  preg_grep("/title:/i", $attr_array, PREG_GREP_INVERT);\\  $not_title_array =  preg_grep("/title:/i", $attr_array, PREG_GREP_INVERT);\\ 
 $attr = implode(";",$not_title_array);\\  $attr = implode(";",$not_title_array);\\ 
Zeile 27: Zeile 55:
 $title = array_pop($title_array);\\  $title = array_pop($title_array);\\ 
 $title = preg_replace("/.*title:\s{0,}(.*)/i","$1",$title);\\  $title = preg_replace("/.*title:\s{0,}(.*)/i","$1",$title);\\ 
-// Add title as an attribute to the <pre /> tag.\\  +//Add title as an attribute to the // <//pre /> tag.\\  
-$renderer->doc .= "<pre class=%%\%%"brush: ".$attr."%%\%%" title=%%\%%"".$title."%%\%%">".$renderer->_xmlEntities($content)."</pre>";\\ +$rendererdoc .= "// <//pre class=// <//nowiki>%%\%%// <///nowiki>"brush: ".$attr."// <//nowiki>%%\%%// <///nowiki>" title=// <//nowiki>%%\%%// <///nowiki>"".$title."// <//nowiki>%%\%%// <///nowiki>">".$renderer_xmlEntities($content)."// <///pre>";\\ 
 } else {\\  } else {\\ 
 // No title detected, pass all attributes as parameters to SyntaxHighlighter.\\  // No title detected, pass all attributes as parameters to SyntaxHighlighter.\\ 
-$renderer->doc .= "<pre class=%%\%%"brush: ".$attr."%%\%%">".$renderer->_xmlEntities($content)."</pre>";\\ +$rendererdoc .= "<pre class=<nowiki>\</nowiki>"brush: ".$attr."<nowiki>\</nowiki>">".$renderer_xmlEntities($content)."</pre>";\\ 
 }\\  }\\ 
 } else {\\  } else {\\ 
-$renderer->file($content);\\ +$rendererfile($content);\\ 
 }\\  }\\ 
 }\\  }\\ 
Zeile 41: Zeile 69:
 }\\  }\\ 
 </sxh> </sxh>
 +
 +==== Tables and calculations ====
 +|Max|5|
 +|Moritz|6|
 +|Franz|7|   
 +|Tom|8|       
 +|Avg:|~~=average(range(col(),0,col(),row()-1))~~|
 +