From 0cd514de13b018f8e3f37c866c30753975e1dad1 Mon Sep 17 00:00:00 2001 From: Damien GERARD Date: Wed, 15 Jul 2015 13:12:02 +0200 Subject: [PATCH] Added some missing extensions to File Associations (closes #306, fixes #375) --- PowerEditor/src/MISC/RegExt/regExtDlg.cpp | 47 +++++++++++++++++++---- 1 file changed, 39 insertions(+), 8 deletions(-) diff --git a/PowerEditor/src/MISC/RegExt/regExtDlg.cpp b/PowerEditor/src/MISC/RegExt/regExtDlg.cpp index 4a53f7d5f..ba478224b 100644 --- a/PowerEditor/src/MISC/RegExt/regExtDlg.cpp +++ b/PowerEditor/src/MISC/RegExt/regExtDlg.cpp @@ -37,18 +37,49 @@ const int nbSupportedLang = 9; const int nbExtMax = 10; const int extNameMax = 18; + TCHAR defExtArray[nbSupportedLang][nbExtMax][extNameMax] = { - {TEXT("Notepad"), TEXT(".txt"), TEXT(".log"), TEXT(".ini")}, - {TEXT("c, c++, objc"), TEXT(".h"), TEXT(".hpp"), TEXT(".hxx"), TEXT(".c"), TEXT(".cpp"), TEXT(".cxx"), TEXT(".cc"), TEXT(".m")}, - {TEXT("java, c#, pascal"), TEXT(".java"), TEXT(".cs"), TEXT(".pas"), TEXT(".inc")}, - {TEXT("web(html) script"), TEXT(".html"), TEXT(".htm"), TEXT(".php"), TEXT(".phtml"), TEXT(".js"), TEXT(".jsp"), TEXT(".asp"), TEXT(".css"), TEXT(".xml")}, - {TEXT("public script"), TEXT(".sh"), TEXT(".bsh"), TEXT(".nsi"), TEXT(".nsh"), TEXT(".lua"), TEXT(".pl"), TEXT(".pm"), TEXT(".py")}, - {TEXT("property script"), TEXT(".rc"), TEXT(".as"), TEXT(".mx"), TEXT(".vb"), TEXT(".vbs")}, - {TEXT("fortran, TeX, SQL"), TEXT(".f"), TEXT(".for"), TEXT(".f90"), TEXT(".f95"), TEXT(".f2k"), TEXT(".tex"), TEXT(".sql")}, - {TEXT("misc"), TEXT(".nfo"), TEXT(".mak")}, + {TEXT("Notepad"), + TEXT(".txt"), TEXT(".log") + }, + {TEXT("ms ini/inf"), + TEXT(".ini"), TEXT(".inf") + }, + {TEXT("c, c++, objc"), + TEXT(".h"), TEXT(".hh"), TEXT(".hpp"), TEXT(".hxx"), TEXT(".c"), TEXT(".cpp"), TEXT(".cxx"), TEXT(".cc"), + TEXT(".m"), TEXT(".mm"), + TEXT(".vcxproj"), TEXT(".vcproj"), TEXT(".props"), TEXT(".vsprops"), TEXT(".manifest") + }, + {TEXT("java, c#, pascal"), + TEXT(".java"), TEXT(".cs"), TEXT(".pas"), TEXT(".pp"), TEXT(".inc") + }, + {TEXT("web script"), + TEXT(".html"), TEXT(".htm"), TEXT(".shtml"), TEXT(".shtm"), TEXT(".hta"), + TEXT(".asp"), TEXT(".aspx"), + TEXT(".css"), TEXT(".js"), TEXT(".json"), TEXT(".jsm"), TEXT(".jsp"), + TEXT(".php"), TEXT(".php3"), TEXT(".php4"), TEXT(".php5"), TEXT(".phps"), TEXT(".phpt"), TEXT(".phtml"), + TEXT(".xml"), TEXT(".xhtml"), TEXT(".xht"), TEXT(".xul"), TEXT(".kml"), TEXT(".xaml"), TEXT(".xsml") + }, + {TEXT("public script"), + TEXT(".sh"), TEXT(".bsh"), TEXT(".bash"), TEXT(".bat"), TEXT(".cmd"), TEXT(".nsi"), + TEXT(".nsh"), TEXT(".lua"), TEXT(".pl"), TEXT(".pm"), TEXT(".py") + }, + {TEXT("property script"), + TEXT(".rc"), TEXT(".as"), TEXT(".mx"), TEXT(".vb"), TEXT(".vbs") + }, + {TEXT("fortran, TeX, SQL"), + TEXT(".f"), TEXT(".for"), TEXT(".f90"), TEXT(".f95"), TEXT(".f2k"), TEXT(".tex"), TEXT(".sql") + }, + {TEXT("misc"), + TEXT(".nfo"), TEXT(".mak") + }, {TEXT("customize")} }; + + + + void RegExtDlg::doDialog(bool isRTL) { if (isRTL)