Can't run the browser for all file types from the View menu

  • It may depend on a preference or side effect, for example file association, language, highlighting , etc

  • The Build times are different
    My Build time is : Jun 16 2019 - 21:14:50,
    downloaded at 2019. 06. 20.
    My OS is Windows 10 (64-bit)

    SinghRajenM’s Build time is Sep 1 2019
    Both is v7.7.1 (32-bit).

  • @Laszlo-Botka That is my dev build. Even I can see with release version as well -


  • I get the same result, if run the freshly unzipped npp, everything is default.


  • As I had the same results as @László-Botka had, I took the chance to see what the code looks like
    and it seems that code just checks if a file has an extension association registered other than notepad++
    and if it has, then it enables the menu items.
    So, at my machine I have assigned txt extensions to be assoc’ed with npp and if I open such a file
    the menu items are disabled. The same is true for file extensions without an association.
    But extensions like .py or .log, which aren’t assoc’ed with npp are possible to view in browsers.

    The code in question is this and that, I guess.

  • I’m sorry @Ekopalypse, I don’t understand the codes

    But I don’t really understand why the entensions should be checked: the file is open in Notepad++.

    I use only Firefox, don’t know what do other browsers.

    Firefox will handle it according to the extension, process it, play it, visualize it, save it, … or open as a simple text file, like txt cmd ini, vbs, js, even xxx, yyyy

    But this is definitely the user’s responsibility, as is what it writes into the browser’s address bar.

    At least Firefox works this way.

  • @László-Botka

    But I don’t really understand why the extensions should be checked: the file is open in Notepad++.

    I don’t know the reason why this was implemented but, as far as I understand the code,
    this is how npp decides if it should enable the menu items or not.
    Make a simple test, use one of the files with an extension you know doesn’t work.
    Assign it, let’s say to notepad (NOT NPP). Open it in npp and you should see
    that your browser menu gets enabled. At least it does for me.

  • You’re true.
    For example txt is registered in npp, and npp is the default application for txt In Windows 10, and the browser menu is disabled.
    The browser menu is enabled for inf and vbs, and default application is assigned - but not npp - for them in W 10.

  • I get the followings on email:
    From Don HO
    Subject Re: [notepad-plus-plus/notepad-plus-plus] View current file in ... for more file types (#5903)

    menu greyed out only on blah.php, blah.asp, but not on blah.txt.

    As I understand, it should work for .txt file, but doesn’t work for me, the menu is greyed out. No change. Maybe will work in a next version?

    I can’t comment on github, it’s limited now.

    I find this on installed and on fresh local copy.

    Notepad++ v7.8.1 (32-bit)
    Build time : Oct 27 2019 - 22:46:07
    Path : D:\Xnap\DOWNLOAD\Notepad++p-ujproba\notepad++.exe
    Admin mode : OFF
    Local Conf mode : ON
    OS Name : Windows 10 Home (64-bit)
    OS Version : 1903
    OS Build : 18362.449
    Plugins : mimeTools.dll NppConverter.dll NppExport.dll

  • @László-Botka said in Can't run the browser for all file types from the View menu:

    Maybe will work in a next version?

    He incorporated the change and closed the ticket yesterday (Nov 1). That means it cannot be in the version that was released on Oct 27. Since the change has been incorporated into the main codebase, the fix will be available in the next version, whenever that is released.

Log in to reply