diff --git a/src/Gist/Model/Gist.php b/src/Gist/Model/Gist.php index 86efe42..54142bc 100644 --- a/src/Gist/Model/Gist.php +++ b/src/Gist/Model/Gist.php @@ -45,14 +45,16 @@ class Gist extends BaseGist } /** - * Returns the type for Geshi. + * Returns the type for highlighting. * * @return string */ - public function getGeshiType() + public function getHighlightType() { $data = array( 'html' => 'xml', + 'asp' => 'aspnet', + 'actionscript3' => 'actionscript', ); return str_replace(array_keys($data), array_values($data), $this->getType()); diff --git a/src/Gist/Resources/views/View/embed.html.twig b/src/Gist/Resources/views/View/embed.html.twig index 155cc2e..12c7f1b 100644 --- a/src/Gist/Resources/views/View/embed.html.twig +++ b/src/Gist/Resources/views/View/embed.html.twig @@ -65,7 +65,7 @@
{{ raw_content }}
+ {{ raw_content }}
{{ raw_content }}
+ {{ raw_content }}