• Login
Community
  • Login

Spracheinstellung (Syntaxhervorhebung - php) geht immer verloren

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 75 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    Robert Kampfl
    last edited by Apr 19, 2025, 1:21 PM

    Seit ich die neue Version v8.7.5 installiert habe, zeigt es mir meine Spracheinstellung, also die farbige Syntaxhervorhebung nicht mehr an.
    Sie steht beim öffnen einer(jeder) Datei auf A = ActionScript.
    Meine Standardeinstellung war immer php. Jetzt muss ich dies bei jedem öffnen eines Scriptes von Hand umstellen.
    Wie bzw. wo kann ich einstellen, dass dies wieder automatisch geschieht?

    Danke und viele Grüße
    Robert

    P 1 Reply Last reply Apr 19, 2025, 4:27 PM Reply Quote 0
    • P
      PeterJones @Robert Kampfl
      last edited by PeterJones Apr 19, 2025, 4:31 PM Apr 19, 2025, 4:27 PM

      @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.

      1 Reply Last reply Reply Quote 2
      2 out of 2
      • First post
        2/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors