def get_edit_filetypes():
 pygments_exts = _get_pygments_extensions()
 favorite_exts = ['.py', '.R', '.jl', '.ipynb', '.md', '.pyw', '.pyx', '.C', '.CPP']
 other_exts = [ext for ext in pygments_exts if (ext not in favorite_exts)]
 all_exts = tuple((favorite_exts + other_exts))
 text_filetypes = (_('Supported text files'), all_exts)
 return ([text_filetypes] + EDIT_FILETYPES)

def get_edit_filetypes ( ) : pygments_exts = _get_pygments_extensions ( ) favorite_exts = [ '.py' , '.R' , '.jl' , '.ipynb' , '.md' , '.pyw' , '.pyx' , '.C' , '.CPP' ] other_exts = [ ext for ext in pygments_exts if ( ext not in favorite_exts ) ] all_exts = tuple ( ( favorite_exts + other_exts ) ) text_filetypes = ( _ ( 'Supported text files' ) , all_exts ) return ( [ text_filetypes ] + EDIT_FILETYPES )
get all file types supported by the editor .