• Login
Community
  • Login

WebServerNpp (Python Script plugin)

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
8 Posts 3 Posters 1.0k 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
    All_StarS
    last edited by Apr 21, 2025, 9:04 PM

    Hello everyone! 👋

    I’m new to scripting and wanted to share my first creation—WebServerNpp! With some help from DeepSeek, I built this handy tool that turns Notepad++ into a local web server. I’d love for you to try it out and let me know what you think!

    ✨ What does this script do?
    • Turns Notepad++ into a lightweight web server
    • Serves files directly from your current working directory
    • Perfect for quick HTML/CSS/JS testing
    • Full control via Notepad++'s Python console

    You can get the script at https://github.com/josevdr95new/WebServerNpp

    M 1 Reply Last reply Apr 23, 2025, 12:07 AM Reply Quote 2
    • N
      notdodgeball
      last edited by Apr 22, 2025, 4:54 PM

      I had to convert it to Python 3 but yep, it worked. I’m curious if you have a use case or a reason behind you project or are just messing around.

      A 1 Reply Last reply Apr 22, 2025, 11:22 PM Reply Quote 0
      • A
        All_StarS @notdodgeball
        last edited by Apr 22, 2025, 11:22 PM

        @notdodgeball I’m not just trying to entertain myself.

        1 Reply Last reply Reply Quote 0
        • M
          Michael Vincent @All_StarS
          last edited by Apr 23, 2025, 12:07 AM

          @All_StarS said in WebServerNpp (Python Script plugin):

          turns Notepad++ into a local web server

          Sounds like VSCode’s Live Server functionality?

          Cheers.

          A 1 Reply Last reply Apr 23, 2025, 1:55 AM Reply Quote 0
          • A
            All_StarS @Michael Vincent
            last edited by All_StarS Apr 23, 2025, 1:57 AM Apr 23, 2025, 1:55 AM

            @Michael-Vincent Yes, I have to change it to make it work in py3

            Available commands:

            startws() - Starts the server in the current
            stopws() - Stops the server
            statusws() - Displays the server status
            refreshws() - Restarts the server

            1 Reply Last reply Reply Quote 0
            • A
              All_StarS
              last edited by All_StarS Apr 23, 2025, 2:49 AM Apr 23, 2025, 2:30 AM

              Compatible with py3 https://github.com/josevdr95new/WebServerNpp/tree/py3 new branch

              git clone --branch py3 --single-branch https://github.com/josevdr95new/WebServerNpp.git
              
              1 Reply Last reply Reply Quote 3
              • A
                All_StarS
                last edited by All_StarS Apr 23, 2025, 9:56 PM Apr 23, 2025, 9:29 PM

                Testing Tkinter

                G.png

                GUI interface https://github.com/josevdr95new/WebServerNpp/tree/GUIinterface-py3 new branch

                git clone --branch GUIinterface-py3 --single-branch https://github.com/josevdr95new/WebServerNpp.git
                
                show_ws_gui()
                
                N 1 Reply Last reply Apr 25, 2025, 1:22 PM Reply Quote 2
                • N
                  notdodgeball @All_StarS
                  last edited by Apr 25, 2025, 1:22 PM

                  Nice. It’s progressing fast.

                  Now which will come first, https or authentication?

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