protected static function highlightYaml($matches) { $yaml = is_string($matches) ? $matches : $matches[1]; if ($formatted = sfSympalYamlSyntaxHighlighter::highlight($yaml)) { return $formatted; } else { return $matches[0]; } }
public static function highlight($yaml) { $highlighter = new sfSympalYamlSyntaxHighlighter($yaml); return $highlighter->getHtml(); }