mirror of
https://github.com/Codiad/Codiad.git
synced 2026-03-23 17:36:51 +01:00
Add FileExtensionTextMode plugin
a plugin to customize the join of file extension and the text mode. also add an API to the editor for this.
This commit is contained in:
107
components/fileExtTextMode/defaultValues.php
Normal file
107
components/fileExtTextMode/defaultValues.php
Normal file
@@ -0,0 +1,107 @@
|
||||
<?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'
|
||||
);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user