• Login
Community
  • Login

Setting or Plugin to Highlight Lines that have been modified since last change

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
5 Posts 5 Posters 2.8k 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.
  • S
    Shawn Jackson
    last edited by Mar 23, 2021, 12:55 AM

    I’m looking for a plugin that highlights the lines of code that have been modified since last save.
    I have searched the settings and plugins but can’t find anything. Does anyone know of such a setting or plugin that could help? Thanks!

    1 Reply Last reply Reply Quote 0
    • T
      Terry R
      last edited by Terry R Mar 23, 2021, 1:17 AM Mar 23, 2021, 1:14 AM

      @Shawn-Jackson said in Setting or Plugin to Highlight Lines that have been modified since last change:

      I’m looking for a plugin that highlights the lines of code that have been modified since last save.

      A quick check of the list of PlugIns reveals this one, Compare (32 & 64bit):
      https://github.com/jsleroy/compare-plugin
      on the website it has:
      *A very useful diff plugin to show the difference between:

      2 files (side by side)
      Diff against Git (with the help of libgit2 )
      Diff against SVN (with the help of sqlite )
      Diff since last Save*

      however it’s getting a bit old now (looks like 4 years ago). Quite possibly it won’t work with the latest Notepad++ versions. I don’t use any plugins, and have never seen this one in operation so could not comment.

      Actually check old posts as if there have been any issues with this someone would have likely stated so.

      Terry

      Edit, see
      https://community.notepad-plus-plus.org/topic/19171/how-to-compare-two-files-that-have-only-numbers might be a newer version of the plugin

      1 Reply Last reply Reply Quote 1
      • N
        Nick Brown
        last edited by Mar 23, 2021, 9:06 AM

        Try the Changed Lines plugin, does not appear to be available via Plugins Admin but can be downloaded from:

        https://github.com/vinsworldcom/nppChangedLines

        A 1 Reply Last reply Mar 23, 2021, 11:58 AM Reply Quote 3
        • A
          Alan Kilborn @Nick Brown
          last edited by Alan Kilborn Mar 23, 2021, 11:58 AM Mar 23, 2021, 11:58 AM

          @Nick-Brown said in Setting or Plugin to Highlight Lines that have been modified since last change:

          Try the Changed Lines plugin

          Here’s a second vote for the ChangedLines plugin.
          For me, it is a must-have feature, and without this method to do it in Notepad++, I wouldn’t be typing this right now (because I’d be using some other editor and probably be reading/contributing in its forum).
          I feel THAT strongly about it.

          It needs better exposure – is there a reason it isn’t found via Plugins Admin?

          M 1 Reply Last reply Mar 23, 2021, 1:49 PM Reply Quote 0
          • M
            Michael Vincent @Alan Kilborn
            last edited by Mar 23, 2021, 1:49 PM

            @Shawn-Jackson
            @Nick-Brown
            @Terry-R
            @Alan-Kilborn said in Setting or Plugin to Highlight Lines that have been modified since last change:

            It needs better exposure – is there a reason it isn’t found via Plugins Admin?

            As the “author” of Changed Lines (and use that term loosely) - I wanted this feature and it was available in Location Navigate, which unfortunately was 32-bit only and seemed abandoned. I tried unsuccessfully to port to 64-bits and eventually gave up, lifted the important bits into a 64-bit plugin architecture and got it working. I then added a few bells and whistles and diverged a bit from the original code.

            Like most of “my” plugins, they aren’t mine, they are someone else’s abandoned work which I compiled for 64-bit and stashed away. Many I don’t even use. But I’m hesitant to list in Plugins Admin since it isn’t my work, I can’t really support them properly and - in this case - Austin Young seems to have gotten Location Navigate working for 64-bit :

            a91d2118-0772-4684-b070-38bbae8fa70a-image.png

            Now regarding what @Shawn-Jackson really wants:

            I’m looking for a plugin that highlights the lines of code that have been modified since last save.

            @Terry-R may also have a solution with Compare plugin - I use it, it works fine. It is more of a diff tool whereas Location Navigate (or Changed Lines) simply shows a visual marker (generally in the margin) for each line that has changed since the last save. Note Changed Lines does not remember changes between Notepad++ sessions (I think Location Navigate has a setting for that, but I’ve never got it working). I mainly use the Compare plugin to visual diff to “different” files rather than compare different versions of the same file, as @Terry-R indicates with the menu options for:

            • Diff against Git (with the help of libgit2 )
            • Diff against SVN (with the help of sqlite )
            • Diff since last Save*

            Hope that helps clear things up a bit.

            Cheers.

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