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.
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! -
@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 -
Try the Changed Lines plugin, does not appear to be available via Plugins Admin but can be downloaded from:
-
@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?
-
@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:
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 visualdiff
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.