mirror of
https://github.com/Codiad/Codiad.git
synced 2026-03-23 09:26:51 +01:00
a plugin to customize the join of file extension and the text mode. also add an API to the editor for this.
107 lines
1.4 KiB
PHP
107 lines
1.4 KiB
PHP
<?php
|
|
|
|
define('PATH_TO_FILE_EXT_TEXT_MODE', 'components/FileExtTextMode/' );
|
|
|
|
$defaultExtensions = array(
|
|
'html' => 'html',
|
|
'htm' => 'html',
|
|
'tpl' => 'html',
|
|
'js' => 'javascript',
|
|
'css' => 'css',
|
|
'scss' => 'scss',
|
|
'sass' => 'scss',
|
|
'less' => 'less',
|
|
'php' => 'php',
|
|
'php4' => 'php',
|
|
'php5' => 'php',
|
|
'phtml' => 'php',
|
|
'json' => 'json',
|
|
'xml' => 'xml',
|
|
'sql' => 'sql',
|
|
'md' => 'markdown',
|
|
'c' => 'c_cpp',
|
|
'cpp' => 'c_cpp',
|
|
'h' => 'c_cpp',
|
|
'hpp' => 'c_cpp',
|
|
'py' => 'python',
|
|
'rb' => 'ruby',
|
|
'jade' => 'jade',
|
|
'coffee' => 'coffee');
|
|
|
|
$availiableTextModes = array(
|
|
'abap',
|
|
'asciidoc',
|
|
'c9search',
|
|
'c_cpp',
|
|
'clojure',
|
|
'coffee',
|
|
'coldfusion',
|
|
'csharp',
|
|
'css',
|
|
'curly',
|
|
'dart',
|
|
'diff',
|
|
'django',
|
|
'dot',
|
|
'ftl',
|
|
'glsl',
|
|
'golang',
|
|
'groovy',
|
|
'haml',
|
|
'haxe',
|
|
'html',
|
|
'jade',
|
|
'java',
|
|
'javascript',
|
|
'json',
|
|
'jsp',
|
|
'jsx',
|
|
'latex',
|
|
'less',
|
|
'liquid',
|
|
'lisp',
|
|
'livescript',
|
|
'logiql',
|
|
'lsl',
|
|
'lua',
|
|
'luapage',
|
|
'lucene',
|
|
'makefile',
|
|
'markdown',
|
|
'mushcode',
|
|
'objectivec',
|
|
'ocaml',
|
|
'pascal',
|
|
'perl',
|
|
'pgsql',
|
|
'php',
|
|
'powershell',
|
|
'python',
|
|
'r',
|
|
'rdoc',
|
|
'rhtml',
|
|
'ruby',
|
|
'sass',
|
|
'scad',
|
|
'scala',
|
|
'scheme',
|
|
'scss',
|
|
'sh',
|
|
'sql',
|
|
'stylus',
|
|
'svg',
|
|
'tcl',
|
|
'tex',
|
|
'text',
|
|
'textile',
|
|
'tmsnippet',
|
|
'toml',
|
|
'typescript',
|
|
'vbscript',
|
|
'velocity',
|
|
'xml',
|
|
'xquery',
|
|
'yaml'
|
|
);
|
|
|
|
?>
|