mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
- Fix default mode for php and phps files
- Talk about adding an empty array instead of defining one yourself git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@315034 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
4f3e16d785
commit
8f42f2024d
1 changed files with 6 additions and 5 deletions
|
@ -67,13 +67,14 @@
|
|||
<term><parameter>mimetypes</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
An array mapping additional file extensions to MIME type. By default,
|
||||
these extensions are mapped to these mime types:
|
||||
An array mapping additional file extensions to MIME type.
|
||||
If the default mapping is sufficient, pass an empty array.
|
||||
By default, these extensions are mapped to these MIME types:
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$mimes = array(
|
||||
'phps' => 2, // pass to highlight_file()
|
||||
'phps' => Phar::PHPS, // pass to highlight_file()
|
||||
'c' => 'text/plain',
|
||||
'cc' => 'text/plain',
|
||||
'cpp' => 'text/plain',
|
||||
|
@ -84,8 +85,8 @@ $mimes = array(
|
|||
'rng' => 'text/plain',
|
||||
'txt' => 'text/plain',
|
||||
'xsd' => 'text/plain',
|
||||
'php' => 1, // parse as PHP
|
||||
'inc' => 1, // parse as PHP
|
||||
'php' => Phar::PHP, // parse as PHP
|
||||
'inc' => Phar::PHP, // parse as PHP
|
||||
'avi' => 'video/avi',
|
||||
'bmp' => 'image/bmp',
|
||||
'css' => 'text/css',
|
||||
|
|
Loading…
Reference in a new issue