• Login
Community
  • Login

HTML pages view

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
10 Posts 7 Posters 2.1k 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.
  • A
    Alessandro Malladra
    last edited by Alessandro Malladra Nov 2, 2023, 7:35 AM Nov 2, 2023, 7:34 AM

    Is it possible to view html pages on notepad++? I mean not the source code but the rendering of html pages like a browser ? I tried to look for this feature but I did not find it

    P M 2 Replies Last reply Nov 2, 2023, 12:50 PM Reply Quote 0
    • G
      guy038
      last edited by Nov 2, 2023, 9:35 AM

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • P
        PeterJones @Alessandro Malladra
        last edited by Nov 2, 2023, 12:50 PM

        @Alessandro-Malladra said in HTML pages view:

        Is it possible to view html pages on notepad++?

        Natively, no. Using a plugin (HTML Preview, for example), yes, but it’s not ideal. Easiest is to View > View Current File In… and pick a real browser.

        1 Reply Last reply Reply Quote 3
        • M
          mkupper @Alessandro Malladra
          last edited by Nov 2, 2023, 2:26 PM

          @Alessandro-Malladra said in HTML pages view:

          Is it possible to view html pages on notepad++?

          I use Ctrl+Alt-Shift+X on the keyboard. That’s the Run / Launch in Firefox command in the menus. Firefox, or any web browser, is a huge project in itself. It’s better to take advantage of that code and the hours they put into thinking about and maintaining the browser rather than attempting to emulate it within Notepad++.

          A 1 Reply Last reply Nov 2, 2023, 4:35 PM Reply Quote 0
          • A
            Alan Kilborn @mkupper
            last edited by Alan Kilborn Nov 2, 2023, 4:36 PM Nov 2, 2023, 4:35 PM

            @mkupper said in HTML pages view:

            That’s the Run / Launch in Firefox command in the menus.

            I believe such browser-specific commands were removed from Notepad++ a while ago?
            Of course, there remains a view-in-default-browser command still existing (e.g. Notepad++ 8.5.8).

            M 1 Reply Last reply Nov 2, 2023, 11:59 PM Reply Quote 0
            • M
              Mark Olson @Alan Kilborn
              last edited by Mark Olson Nov 3, 2023, 12:00 AM Nov 2, 2023, 11:59 PM

              @Alan-Kilborn

              AFAIK (as of 8.5.7, haven’t yet installed 8.5.8) the command is called “Open in Default Viewer”, and it will just use whatever your system’s default browser is for HTML documents, or your default PDF viewer for PDFs, etc.

              C 1 Reply Last reply Nov 3, 2023, 12:19 AM Reply Quote 0
              • C
                Coises @Mark Olson
                last edited by Nov 3, 2023, 12:19 AM

                @Mark-Olson said in HTML pages view:

                @Alan-Kilborn

                AFAIK (as of 8.5.7, haven’t yet installed 8.5.8) the command is called “Open in Default Viewer”, and it will just use whatever your system’s default browser is for HTML documents, or your default PDF viewer for PDFs, etc.

                Odd… under View | View Current File in I have:
                Firefox
                Chrome
                Edge
                IE

                and under Run I have:
                Run… F5
                Get PHP Help Alt+F1
                Wikipedia Search Alt+F3
                Open file in another instance Alt+F6
                Modify Shortcut/Delete Command…

                in both v8.5.8 (64-bit) and v8.4.8 (32-bit).

                Maybe those are potential customizations that don’t change when upgrading? I could have customized them at some time in the past, but I don’t remember doing so.

                I do have Open in Default Viewer on the File menu.

                A 1 Reply Last reply Nov 3, 2023, 12:27 AM Reply Quote 0
                • A
                  Alan Kilborn @Coises
                  last edited by Nov 3, 2023, 12:27 AM

                  @Coises said in HTML pages view:

                  Odd… under View | View Current File in I have:
                  Firefox
                  Chrome
                  Edge
                  IE

                  Hmm, yes, I see that as well in 8.5.8.
                  It appears I was mistaken about their removal.
                  I do remember something related to this, though. Memory fails. :-(

                  P 1 Reply Last reply Nov 3, 2023, 2:16 AM Reply Quote 0
                  • P
                    PeterJones @Alan Kilborn
                    last edited by PeterJones Nov 3, 2023, 2:18 AM Nov 3, 2023, 2:16 AM

                    To sum up:

                    In ages past, there were Run menu entries for the various browsers.

                    In that EU-FOSSA mass event in 2019, they were encouraged to remove those⁰, and replaced them with View > View Current File In… ¹ ² .

                    Also, there is an File > Open in Default Viewer ³ action which will run the Windows default action (double-click action) for the file, if it’s a filetype that’s not associated with Notepad++.

                    M 1 Reply Last reply Nov 3, 2023, 7:34 PM Reply Quote 2
                    • M
                      mkupper @PeterJones
                      last edited by Nov 3, 2023, 7:34 PM

                      @PeterJones and others

                      I am running 8.5.8 but apparently the Run / Launch in Firefox Ctrl+Alt+Shift+X that’s available to me is a legacy thing from a previous version of npp. I usually double check a portable 8.5.8’s behavior before commenting but forgot to do that earlier in the thread. My portable 8.5.5 does not have Run / Launch in Firefox

                      That made me curious… It turns out the culprit, if you want to call it that, is an entry in my shortcuts.xml file:

                          <UserDefinedCommands>
                              <Command name="Launch in Firefox" Ctrl="yes" Alt="yes" Shift="yes" Key="88">firefox &quot;$(FULL_CURRENT_PATH)&quot;</Command>
                          </UserDefinedCommands>
                      

                      I dug further and found that up until npp v7.6.2 that the shortcuts.xml file included:

                          <UserDefinedCommands>
                              <Command name="Launch in Firefox" Ctrl="yes" Alt="yes" Shift="yes" Key="88">firefox &quot;$(FULL_CURRENT_PATH)&quot;</Command>
                              <Command name="Launch in IE" Ctrl="yes" Alt="yes" Shift="yes" Key="73">iexplore &quot;$(FULL_CURRENT_PATH)&quot;</Command>
                              <Command name="Launch in Chrome" Ctrl="yes" Alt="yes" Shift="yes" Key="82">chrome &quot;$(FULL_CURRENT_PATH)&quot;</Command>
                              <Command name="Launch in Safari" Ctrl="yes" Alt="yes" Shift="yes" Key="65">safari &quot;$(FULL_CURRENT_PATH)&quot;</Command>
                              <Command name="Get PHP help" Ctrl="no" Alt="yes" Shift="no" Key="112">http://www.php.net/$(CURRENT_WORD)</Command>
                              <Command name="Wikipedia Search" Ctrl="no" Alt="yes" Shift="no" Key="114">https://en.wikipedia.org/wiki/Special:Search?search=$(CURRENT_WORD)</Command>
                              <Command name="Open file in another instance" Ctrl="no" Alt="yes" Shift="no" Key="117">$(NPP_FULL_FILE_PATH) $(CURRENT_WORD) -nosession -multiInst</Command>
                              <Command name="Send via Outlook" Ctrl="yes" Alt="yes" Shift="yes" Key="79">outlook /a &quot;$(FULL_CURRENT_PATH)&quot;</Command>
                          </UserDefinedCommands>
                      

                      From npp v7.6.3 to v7.9.5 much of that was commented out:

                          <UserDefinedCommands>
                      		<!--
                      		The following shortcuts are dangerous if your computer is compromised.
                      		(But if your computer is compromised, EVERYTHING IS DANGEROUS!)
                      		Remove the comment and use them at your own risk!!!
                      
                              <Command name="Launch in Firefox" Ctrl="yes" Alt="yes" Shift="yes" Key="88">firefox &quot;$(FULL_CURRENT_PATH)&quot;</Command>
                              <Command name="Launch in IE" Ctrl="yes" Alt="yes" Shift="yes" Key="73">iexplore &quot;$(FULL_CURRENT_PATH)&quot;</Command>
                              <Command name="Launch in Chrome" Ctrl="yes" Alt="yes" Shift="yes" Key="82">chrome &quot;$(FULL_CURRENT_PATH)&quot;</Command>
                              <Command name="Launch in Safari" Ctrl="yes" Alt="yes" Shift="yes" Key="65">safari &quot;$(FULL_CURRENT_PATH)&quot;</Command>
                              <Command name="Send via Outlook" Ctrl="yes" Alt="yes" Shift="yes" Key="79">outlook /a &quot;$(FULL_CURRENT_PATH)&quot;</Command>
                      		-->
                              <Command name="Get PHP help" Ctrl="no" Alt="yes" Shift="no" Key="112">http://www.php.net/$(CURRENT_WORD)</Command>
                              <Command name="Wikipedia Search" Ctrl="no" Alt="yes" Shift="no" Key="114">https://en.wikipedia.org/wiki/Special:Search?search=$(CURRENT_WORD)</Command>
                              <Command name="Open file in another instance" Ctrl="no" Alt="yes" Shift="no" Key="117">$(NPP_FULL_FILE_PATH) $(CURRENT_WORD) -nosession -multiInst</Command>
                          </UserDefinedCommands>
                      

                      Starting with v8.0 the commented out section was removed.

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