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