Community
    • Login

    Auto-save file before running a command

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 6.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.
    • Albert WierschA
      Albert Wiersch
      last edited by Albert Wiersch

      Is there a way to have Notepad++ auto-save the current document before running a command? Like one that opens the current document in another editor (because the other editor has certain features that Notepad++ lacks)? Thanks.

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Albert Wiersch
        last edited by Claudia Frank

        Hello @Albert-Wiersch,

        when using nppexec plugin you could do something like

        npp_save
        python $(FULL_CURRENT_PATH)
        

        of course you need to replace python by your other editor.
        If it can be found using PATH variable you need to provide the complete path.

        Just for interest, what are those functions you are missing?

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 2
        • Albert WierschA
          Albert Wiersch
          last edited by

          Thanks. I was hoping this could be done without a plug-in. This seems like a feature that should be native.

          The functions missing are the HTML, CSS, link-checking, etc. features that CSE HTML Validator has (I’m the developer of that software)… I want Notepad++ users to be able to easily open their HTML & CSS documents in CSE HTML Validator for testing/checking. I’ve described it here for Notepad++ and some other editors:
          https://www.htmlvalidator.com/htmlval/integration.html

          Most other editors either auto-save the current/active document or have an option to do so when running a command.

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