ui-ace icon indicating copy to clipboard operation
ui-ace copied to clipboard

Is there a way to detect file type automatically? or based on a file extesion?

Open mmumshad opened this issue 9 years ago • 1 comments

Is there a way to detect file type automatically based on the file contents or based on a file extension? Is there a file extension to type map available?

mmumshad avatar Aug 25 '16 16:08 mmumshad

There is indeed, using an extension... but I don't know how to load it using Angular ui-ace. Any pointers?

http://stackoverflow.com/questions/15903191/how-to-automatically-pick-a-mode-for-ace-editor-given-a-file-extension

briceambrosiak avatar Oct 09 '16 20:10 briceambrosiak