ui-ace
ui-ace copied to clipboard
Is there a way to detect file type automatically? or based on a file extesion?
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?
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