<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Change History markers]]></title><description><![CDATA[<p dir="auto">Is there a way to have the Change History markers automatically clear when the file is saved?  It makes more sense to have the Change History markers show changes since the file was last saved and not since the file was last opened.</p>
<p dir="auto">Thanks,<br />
Rich</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24309/change-history-markers</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 18:55:31 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24309.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Mar 2023 21:43:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Change History markers on Thu, 30 Mar 2023 21:29:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said in <a href="/post/85334">Change History markers</a>:</p>
<blockquote>
<p dir="auto">Maybe <a href="https://community.notepad-plus-plus.org/topic/23039/faq-desk-how-to-install-and-run-a-script-in-pythonscript#:~:text=Make%20sure%20the%20Initialisation%20pulldown%20is%20set%20to%20ATSTARTUP">THIS</a>?</p>
</blockquote>
<p dir="auto">That did it!</p>
<p dir="auto">Thanks again,<br />
Rich</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85341</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85341</guid><dc:creator><![CDATA[richlux]]></dc:creator><pubDate>Thu, 30 Mar 2023 21:29:20 GMT</pubDate></item><item><title><![CDATA[Reply to Change History markers on Thu, 30 Mar 2023 20:48:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/richlux" aria-label="Profile: richlux">@<bdi>richlux</bdi></a> said in <a href="/post/85329">Change History markers</a>:</p>
<blockquote>
<p dir="auto">Is there something that needs to be done to get the startup (User) script to run</p>
</blockquote>
<p dir="auto">Maybe <a href="https://community.notepad-plus-plus.org/topic/23039/faq-desk-how-to-install-and-run-a-script-in-pythonscript#:~:text=Make%20sure%20the%20Initialisation%20pulldown%20is%20set%20to%20ATSTARTUP">THIS</a>?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85334</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85334</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 30 Mar 2023 20:48:37 GMT</pubDate></item><item><title><![CDATA[Reply to Change History markers on Thu, 30 Mar 2023 20:21:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a>  I have one last question for you.  Is there something that needs to be done to get the startup (User) script to run when NPP is started?  It doesn’t seem to be running automatically. I can manually run it after I start NPP, but obviously that defeats the purpose of a startup script!</p>
<p dir="auto">Thank,<br />
Rich</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85329</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85329</guid><dc:creator><![CDATA[richlux]]></dc:creator><pubDate>Thu, 30 Mar 2023 20:21:21 GMT</pubDate></item><item><title><![CDATA[Reply to Change History markers on Thu, 30 Mar 2023 15:41:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> That works great. Thanks again for all your help.  I actually modified your script a little so only changes since the last save are highlighted.  Here’s the core of it in case someone else want’s to use it.</p>
<pre><code>RGB_MODIFIED = (255, 0, 0)
RGB_SAVED = (228, 228, 228)

SC_MARKNUM_HISTORY_REVERTED_TO_ORIGIN   = 21
SC_MARKNUM_HISTORY_SAVED                = 22
SC_MARKNUM_HISTORY_MODIFIED             = 23
SC_MARKNUM_HISTORY_REVERTED_TO_MODIFIED = 24

editor.markerSetBack(SC_MARKNUM_HISTORY_MODIFIED, RGB_MODIFIED)
editor.markerSetFore(SC_MARKNUM_HISTORY_MODIFIED, RGB_MODIFIED)

editor.markerSetBack(SC_MARKNUM_HISTORY_REVERTED_TO_ORIGIN, RGB_MODIFIED)
editor.markerSetFore(SC_MARKNUM_HISTORY_REVERTED_TO_ORIGIN, RGB_MODIFIED)

editor.markerSetBack(SC_MARKNUM_HISTORY_REVERTED_TO_MODIFIED, RGB_MODIFIED)
editor.markerSetFore(SC_MARKNUM_HISTORY_REVERTED_TO_MODIFIED, RGB_MODIFIED)

editor.markerSetBack(SC_MARKNUM_HISTORY_SAVED, RGB_SAVED)
editor.markerSetFore(SC_MARKNUM_HISTORY_SAVED, RGB_SAVED)
</code></pre>
<p dir="auto">Rich</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85319</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85319</guid><dc:creator><![CDATA[richlux]]></dc:creator><pubDate>Thu, 30 Mar 2023 15:41:36 GMT</pubDate></item><item><title><![CDATA[Reply to Change History markers on Thu, 30 Mar 2023 10:59:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/richlux" aria-label="Profile: richlux">@<bdi>richlux</bdi></a> said in <a href="/post/85301">Change History markers</a>:</p>
<blockquote>
<p dir="auto">what I need to put in the <a href="http://startup.py" rel="nofollow ugc">startup.py</a> to have this script file run at startup automatically?</p>
</blockquote>
<p dir="auto">Let’s formalize the script a bit more, which will allow what you’re asking in a nice fashion.</p>
<p dir="auto">I’ll call the script <code>ChangeHistoryColors.py</code> and revise it thusly:</p>
<pre><code class="language-py"># -*- coding: utf-8 -*-
from __future__ import print_function

#########################################
#
#  ChangeHistoryColors (CHC)
#
#########################################

# references:
#  https://community.notepad-plus-plus.org/topic/24309/change-history-markers

#-------------------------------------------------------------------------------

from Npp import *

#-------------------------------------------------------------------------------

class CHC(object):

    def __init__(self):

        RGB_TUPLE = (255, 0, 0)

        SC_MARKNUM_HISTORY_REVERTED_TO_ORIGIN   = 21
        SC_MARKNUM_HISTORY_SAVED                = 22
        SC_MARKNUM_HISTORY_MODIFIED             = 23
        SC_MARKNUM_HISTORY_REVERTED_TO_MODIFIED = 24

        editor.markerSetBack(SC_MARKNUM_HISTORY_MODIFIED, RGB_TUPLE)
        editor.markerSetFore(SC_MARKNUM_HISTORY_MODIFIED, RGB_TUPLE)

#-------------------------------------------------------------------------------

if __name__ == '__main__': CHC()
</code></pre>
<p dir="auto">Then, to embed a call to it in the <code>startup (User)</code> script, do this:</p>
<pre><code class="language-py">import ChangeHistoryColors
ChangeHistoryColors.CHC()
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/85310</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85310</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 30 Mar 2023 10:59:26 GMT</pubDate></item><item><title><![CDATA[Reply to Change History markers on Wed, 29 Mar 2023 21:30:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> That worked great.  Can you tell me what I need to put in the <a href="http://startup.py" rel="nofollow ugc">startup.py</a> to have this script file run at startup automatically?</p>
<p dir="auto">Rich</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85301</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85301</guid><dc:creator><![CDATA[richlux]]></dc:creator><pubDate>Wed, 29 Mar 2023 21:30:20 GMT</pubDate></item><item><title><![CDATA[Reply to Change History markers on Wed, 29 Mar 2023 15:08:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> Thank you so much for this sample. It is very helpful.  I’m going to submit a feature request to see if they will add this as a setting that can be changed.</p>
<p dir="auto">Rich</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85294</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85294</guid><dc:creator><![CDATA[richlux]]></dc:creator><pubDate>Wed, 29 Mar 2023 15:08:16 GMT</pubDate></item><item><title><![CDATA[Reply to Change History markers on Wed, 29 Mar 2023 14:41:14 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">…colors can be customized?</p>
</blockquote>
<p dir="auto">Here’s a demo script that shows how it can be done, for one of the colors:</p>
<pre><code class="language-py"># -*- coding: utf-8 -*-

from Npp import *

RGB_TUPLE = (255, 0, 0)

SC_MARKNUM_HISTORY_REVERTED_TO_ORIGIN   = 21
SC_MARKNUM_HISTORY_SAVED                = 22
SC_MARKNUM_HISTORY_MODIFIED             = 23
SC_MARKNUM_HISTORY_REVERTED_TO_MODIFIED = 24

editor.markerSetBack(SC_MARKNUM_HISTORY_MODIFIED, RGB_TUPLE)
editor.markerSetFore(SC_MARKNUM_HISTORY_MODIFIED, RGB_TUPLE)
</code></pre>
<p dir="auto">For more info on scripting in general see the <a href="https://community.notepad-plus-plus.org/topic/23039/faq-desk-how-to-install-and-run-a-script-in-pythonscript">FAQ</a> entry for it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85293</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85293</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 29 Mar 2023 14:41:14 GMT</pubDate></item><item><title><![CDATA[Reply to Change History markers on Wed, 29 Mar 2023 13:44:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/richlux" aria-label="Profile: richlux">@<bdi>richlux</bdi></a></p>
<p dir="auto">Have a look at <a href="https://github.com/vinsworldcom/nppChangedLines" rel="nofollow ugc">Changed Lines</a>.  This may help if you just want to change colors.</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85292</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85292</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Wed, 29 Mar 2023 13:44:25 GMT</pubDate></item><item><title><![CDATA[Reply to Change History markers on Wed, 29 Mar 2023 13:19:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> Thanks.  I’ll have to look into doing this.</p>
<p dir="auto">Rich</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85291</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85291</guid><dc:creator><![CDATA[richlux]]></dc:creator><pubDate>Wed, 29 Mar 2023 13:19:21 GMT</pubDate></item><item><title><![CDATA[Reply to Change History markers on Wed, 29 Mar 2023 12:29:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/richlux" aria-label="Profile: richlux">@<bdi>richlux</bdi></a> said in <a href="/post/85287">Change History markers</a>:</p>
<blockquote>
<p dir="auto">If I do it via a script, will I need to re-run it every time I upgrade NPP?</p>
</blockquote>
<p dir="auto">Nope, it would be a “set it and forget it” type thing, and it would persist across update installs.</p>
<p dir="auto">It would be set (i.e., the colors changed) every time Notepad++ starts up, but you wouldn’t be involved; stuff can be set to be run automatically on startup.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85288</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85288</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 29 Mar 2023 12:29:56 GMT</pubDate></item><item><title><![CDATA[Reply to Change History markers on Wed, 29 Mar 2023 12:27:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> Thanks. If I do it via a script, will I need to re-run it every time I upgrade NPP?</p>
<p dir="auto">Rich</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85287</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85287</guid><dc:creator><![CDATA[richlux]]></dc:creator><pubDate>Wed, 29 Mar 2023 12:27:02 GMT</pubDate></item><item><title><![CDATA[Reply to Change History markers on Wed, 29 Mar 2023 12:05:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/richlux" aria-label="Profile: richlux">@<bdi>richlux</bdi></a> said in <a href="/post/85285">Change History markers</a>:</p>
<blockquote>
<p dir="auto">Do you know if the colors can be customized?</p>
</blockquote>
<p dir="auto">Currently Notepad++ doesn’t allow direct access to that.<br />
But it should be doable via scripting, if you’re interested in that type of solution (involves using a plugin).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85286</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85286</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 29 Mar 2023 12:05:24 GMT</pubDate></item><item><title><![CDATA[Reply to Change History markers on Wed, 29 Mar 2023 12:02:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lycan-thrope" aria-label="Profile: Lycan-Thrope">@<bdi>Lycan-Thrope</bdi></a> Wow, thanks!  I’m color blind and had no idea the color changed after it was saved.  Being red/green color blind (as most color blind people are), orange and green are perhaps the worse two colors to use.  Do you know if the colors can be customized?  I couldn’t find a setting anywhere for that.</p>
<p dir="auto">Thanks,<br />
Rich</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85285</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85285</guid><dc:creator><![CDATA[richlux]]></dc:creator><pubDate>Wed, 29 Mar 2023 12:02:56 GMT</pubDate></item><item><title><![CDATA[Reply to Change History markers on Mon, 27 Mar 2023 23:05:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/richlux" aria-label="Profile: richlux">@<bdi>richlux</bdi></a> ,<br />
Not if you’re still editing the file, and don’t remember if something was changed, or accidentally changed something. Having saved changes (green) that show while still editing the document and making more changes (orange) let’s you know you didn’t save <strong>those</strong> changes, and still need to.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85261</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85261</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Mon, 27 Mar 2023 23:05:34 GMT</pubDate></item></channel></rss>