@Robert-Kampfl said in Spracheinstellung (Syntaxhervorhebung - php) geht immer verloren:
It’s set to A = ActionScript when opening any file.
Do you mean “any .php file” or “any .myphp file” or “any file with any extension, whether it’s .txt or .php or .as”?
How or where can I set this to happen automatically again?
Notepad++ generally decides on which syntax highlight Language to use based on the file extension. So, if the file ends in .php, it should automatically be recognized as a PHP file and highlighted properly. Do your files end in .php, or something else?
If they do end in .php, you will want to look at Settings > Style Configurator for PHP and Action Script and make sure there aren’t any conflicting values in the Default ext.: or User ext.: boxes for the two.
A fresh v8.7.5 installation has the following settings for those two languages:
ec7954fe-4085-4256-9922-1ec47d87c74c-image.png
8237e1ef-b8cf-473c-9caa-ddb77405fb0e-image.png
If you have another file extension that is neither .php* nor .as/.mx (for example, blah.myphp), then you might want to add that extension (without ., like myphp) to the User ext.: box for PHP.
My default setting was always PHP.
Do you mean it used to always use PHP highlighting for .php files by default? Or it used to use PHP highlighting for some other custom extension (like .myphp)? Or do you mean that it used to use PHP highlighting when you create a new file (File > New), even before it’s been saved?
Because the first should be automatic, unless you have a setting conflict. The second, you would have to set the User ext for PHP, as I said earlier. The third, you could set in Settings > Preferences > New Document:
6c8aebc2-96ad-474d-9778-33d61b93f6c8-image.png
update: It also might be related to which Theme were you using before relative to now. Because if you had been using one theme (for example, “Hello Kitty”), and had customized the User ext: for “Hello Kitty” on the old installation, but when you upgraded, if you switched to a differernt theme (like the default stylers.xml), then the User Ext would go away (because those are saved on a per-theme basis); or, if you overwrote the theme definition when you upgraded (ie, if you deleted your old installation before installing the new), then when the old copy (“Hello Kitty.xml” for example) was deleted/overwritten, your customizations (including User ext) would be overwritten.