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
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getGeshiType()
|
public function getHighlightType()
|
||||||
{
|
{
|
||||||
$data = array(
|
$data = array(
|
||||||
'html' => 'xml',
|
'html' => 'xml',
|
||||||
|
'asp' => 'aspnet',
|
||||||
|
'actionscript3' => 'actionscript',
|
||||||
);
|
);
|
||||||
|
|
||||||
return str_replace(array_keys($data), array_values($data), $this->getType());
|
return str_replace(array_keys($data), array_values($data), $this->getType());
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div id="view" class="tab-pane active in">
|
<div id="view" class="tab-pane active in">
|
||||||
<div id="viewer">
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div id="view" class="tab-pane active in">
|
<div id="view" class="tab-pane active in">
|
||||||
<div id="viewer">
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue