mirror of
https://gitnet.fr/deblan/gist.git
synced 2021-08-14 08:30:49 +02:00
Fix highlighting for ASP and ActionScript
This commit is contained in:
parent
37751f51a6
commit
d56c33c29f
@ -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());
|
||||
|
@ -65,7 +65,7 @@
|
||||
<div class="tab-content">
|
||||
<div id="view" class="tab-pane active in">
|
||||
<div id="viewer">
|
||||
<pre><code {% if gist.cipher %}data-cipher{% endif %} class="language-{{ gist.type }}">{{ raw_content }}</code></pre>
|
||||
<pre><code {% if gist.cipher %}data-cipher{% endif %} class="language-{{ gist.highlightType }}">{{ raw_content }}</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -62,7 +62,7 @@
|
||||
<div class="tab-content">
|
||||
<div id="view" class="tab-pane active in">
|
||||
<div id="viewer">
|
||||
<pre><code {% if gist.cipher %}data-cipher{% endif %} class="language-{{ gist.type }}" data-dependencies="{{ gist.type }}">{{ raw_content }}</code></pre>
|
||||
<pre><code {% if gist.cipher %}data-cipher{% endif %} class="language-{{ gist.highlightType }}">{{ raw_content }}</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user