Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
demo [28.11.2011 23:50] – Raphael Wimmer | demo [05.04.2019 08:55] (aktuell) – Raphael Wimmer | ||
---|---|---|---|
Zeile 3: | Zeile 3: | ||
==== Notizen ==== | ==== Notizen ==== | ||
- | <note> Test-Eintrag | + | <wrap center round tip> Einfach " |
- | ==== iCal-Kalendereinträge ==== | + | |
- | { { ical> | ||
- | <sxh php; first-line: 70; highlight: [89,92]; title: New title attribute in action> | + | ==== Graphen ==== |
+ | |||
+ | <graphviz dot left 500x200> | ||
+ | digraph finite_state_machine { | ||
+ | rankdir=LR; | ||
+ | size=" | ||
+ | node [shape = doublecircle]; | ||
+ | node [shape = circle]; | ||
+ | LR_0 -> LR_2 [ label = " | ||
+ | LR_0 -> LR_1 [ label = " | ||
+ | LR_1 -> LR_3 [ label = " | ||
+ | LR_2 -> LR_6 [ label = " | ||
+ | LR_2 -> LR_5 [ label = " | ||
+ | LR_2 -> LR_4 [ label = " | ||
+ | LR_5 -> LR_7 [ label = " | ||
+ | LR_5 -> LR_5 [ label = " | ||
+ | LR_6 -> LR_6 [ label = " | ||
+ | LR_6 -> LR_5 [ label = " | ||
+ | LR_7 -> LR_8 [ label = " | ||
+ | LR_7 -> LR_5 [ label = " | ||
+ | LR_8 -> LR_6 [ label = " | ||
+ | LR_8 -> LR_5 [ label = " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Syntax-Highlighting ==== | ||
+ | |||
+ | < | ||
public function render($mode, | public function render($mode, | ||
\\ | \\ | ||
Zeile 16: | Zeile 42: | ||
list($syntax, | list($syntax, | ||
if ($syntax == ' | if ($syntax == ' | ||
- | // Check if there' | + | //Check if there' |
if (preg_match("/ | if (preg_match("/ | ||
// Extract title(s) from attribute string.\\ | // Extract title(s) from attribute string.\\ | ||
$attr_array = explode(";", | $attr_array = explode(";", | ||
$title_array = preg_grep("/ | $title_array = preg_grep("/ | ||
- | // Extract everything BUT title(s) from attribute string.\\ | + | //Extract everything BUT title(s) from attribute string.\\ |
$not_title_array = preg_grep("/ | $not_title_array = preg_grep("/ | ||
$attr = implode(";", | $attr = implode(";", | ||
Zeile 27: | Zeile 53: | ||
$title = array_pop($title_array); | $title = array_pop($title_array); | ||
$title = preg_replace("/ | $title = preg_replace("/ | ||
- | // Add title as an attribute to the <pre /> tag.\\ | + | //Add title as an attribute to the // <//pre /> tag.\\ |
- | $renderer->doc .= "< | + | $renderer→doc .= "// <//pre class=// <// |
} else {\\ | } else {\\ | ||
// No title detected, pass all attributes as parameters to SyntaxHighlighter.\\ | // No title detected, pass all attributes as parameters to SyntaxHighlighter.\\ | ||
- | $renderer->doc .= "< | + | $renderer→doc .= "< |
}\\ | }\\ | ||
} else {\\ | } else {\\ | ||
- | $renderer->file($content); | + | $renderer→file($content); |
}\\ | }\\ | ||
}\\ | }\\ | ||
Zeile 40: | Zeile 66: | ||
return true; | return true; | ||
}\\ | }\\ | ||
- | </sxh> | + | </code> |
+ | |||
+ | ==== Tables and calculations ==== | ||
+ | |Max|5| | ||
+ | |Moritz|6| | ||
+ | |Franz|7| | ||
+ | |Tom|8| | ||
+ | |Avg: | ||