aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/config.default.php15
-rw-r--r--data/templates/display-file.htm2
2 files changed, 16 insertions, 1 deletions
diff --git a/data/config.default.php b/data/config.default.php
index b07f042..c08d401 100644
--- a/data/config.default.php
+++ b/data/config.default.php
@@ -36,6 +36,11 @@ $GLOBALS['phorkie']['languages'] = array(
'geshi' => 'xml',
'show' => false
),
+ 'jpg' => array(
+ 'title' => 'JPEG image',
+ 'mime' => 'image/jpeg',
+ 'show' => false
+ ),
'js' => array(
'title' => 'Javascript',
'mime' => 'application/javascript',
@@ -51,6 +56,11 @@ $GLOBALS['phorkie']['languages'] = array(
'mime' => 'text/x-php',
'geshi' => 'php'
),
+ 'png' => array(
+ 'title' => 'PNG image',
+ 'mime' => 'image/png',
+ 'show' => false
+ ),
'rst' => array(
'title' => 'reStructuredText',
'mime' => 'text/x-rst',
@@ -67,6 +77,11 @@ $GLOBALS['phorkie']['languages'] = array(
'mime' => 'text/x-sql',
'geshi' => 'sql'
),
+ 'svg' => array(
+ 'title' => 'SVG image',
+ 'mime' => 'image/svg+xml',
+ 'show' => false
+ ),
'ts' => array(
'title' => 'TypoScript',
'mime' => 'text/plain',/* TODO: correct type */
diff --git a/data/templates/display-file.htm b/data/templates/display-file.htm
index 1049abb..a768b7c 100644
--- a/data/templates/display-file.htm
+++ b/data/templates/display-file.htm
@@ -7,6 +7,6 @@
<h3 id="{{file.getFilename}}">{{file.getFilename}}<a class="anchorlink" href="#{{file.getFilename}}"></a></h3>
</div>
<div class="code">
- {{file.getHighlightedContent(toolres)|raw}}
+ {{file.getRenderedContent(toolres)|raw}}
</div>
</div>