PDA

View Full Version : File association gone wrong?


dylankuiperss
07-31-2016, 11:39 AM
Hello FlashFXP,

I've been having this problem for about 2 years now. In FlashFXP I've set the file associations of css, html, js and php to view and edit them with Sublime Text 3 (ST3). But..

Editing css, js and php will open the files with Notepad.
Editing html files will open them with ST3.

Viewing css, html, js and php will open in ST3.

I'm using Windows 10, and in the file associations of my system all is associated with ST3.

So why can't I edit css, js and php with ST3?

Thank you in advance.

Dylan

bigstar
07-31-2016, 12:46 PM
You can define the file associations within FlashFXP to ensure the desired application is always used to edit or view the file type.

From the main menu select > Options > File Associations

Then from the File Associations dialog click the New Entry button

Add the desired file masks
You can add multiple masks at once by separating them by a ;
*.css;*.htm;*.html;*.js;*.php
Or simply add them one by one
*.css
*.htm
*.html
*.js
*.php

Set the Open With to your preferred editor
In my example used notepad++

Check the desired use to view/edit options and then click the OK button.

https://oss.azurewebsites.net/images/forum/flashfxp-edit-file-association-5.png


Now on the File Associations dialog click the Save button to apply your changes.

https://oss.azurewebsites.net/images/forum/flashfxp-file-associations-list-5.png

dylankuiperss
07-31-2016, 12:55 PM
I know how to add file associations. I think you didn't understand my thread correctly.

bigstar
07-31-2016, 02:50 PM
Do you have the file associations defined within FlashFXP or are you relying on the Windows 10 file associations?

If you have them defined within FlashFXP they are guaranteed to work, but sometimes relying on Windows can be hit or miss.

But if you do have them defined within FlashFXP and they still don't work. I would recommend verifying the file masks and make sure there are no extra spaces (we now trim spaces but this wasn't always the case)

I am also assuming that you're using the latest version of FlashFXP, if not, then please upgrade. There was an issue we fixed a few months back where if you edited a file with for example notepad then that specific file would always open with notepad even if you changed the file associations.