Skip to content

Commit 0f58c2c

Browse files
authored
Add powershell file extension to text format for opening in editor. (prasathmani#1228)
1 parent b602dcd commit 0f58c2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tinyfilemanager.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2854,6 +2854,7 @@ function fm_get_file_icon_class($path)
28542854
case 'map':
28552855
case 'lock':
28562856
case 'dtd':
2857+
case 'ps1':
28572858
$img = 'fa fa-file-code-o';
28582859
break;
28592860
case 'txt':
@@ -3046,7 +3047,7 @@ function fm_get_text_exts()
30463047
'eml', 'msg', 'csv', 'bat', 'twig', 'tpl', 'md', 'gitignore', 'less', 'sass', 'scss', 'c', 'cpp', 'cs', 'py', 'go', 'zsh', 'swift',
30473048
'map', 'lock', 'dtd', 'svg', 'asp', 'aspx', 'asx', 'asmx', 'ashx', 'jsp', 'jspx', 'cgi', 'dockerfile', 'ruby', 'yml', 'yaml', 'toml',
30483049
'vhost', 'scpt', 'applescript', 'csx', 'cshtml', 'c++', 'coffee', 'cfm', 'rb', 'graphql', 'mustache', 'jinja', 'http', 'handlebars',
3049-
'java', 'es', 'es6', 'markdown', 'wiki', 'tmp', 'top', 'bot', 'dat', 'bak', 'htpasswd', 'pl'
3050+
'java', 'es', 'es6', 'markdown', 'wiki', 'tmp', 'top', 'bot', 'dat', 'bak', 'htpasswd', 'pl', 'ps1'
30503051
);
30513052
}
30523053

0 commit comments

Comments
 (0)