<?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[Intel Hex not higlighting]]></title><description><![CDATA[<p dir="auto">I have NPP 7.8.7 on my laptop and opening an Intel Hex file shows nice colour highlighting. Open the same file on my desktop running the same version - no highlighting ??<br />
Uninstalled NPP and installed 7.8.9 64 bit - still no highlighting.<br />
Intel Hex is listed on the Language list.<br />
Other languages have highlighting.  Global colour overwrite is not checked.</p>
<p dir="auto">What am I missing?</p>
<p dir="auto">On a related question - NPP obviously knows how to calculate the checksum on the end of each line of the Intel Hex file, because it flags it in red when the checksum is wrong (on laptop).  Question - is there a way to get NPP to insert (or show) the correct checksum after some of the data has been modified?</p>
<p dir="auto">Sample data:</p>
<pre><code>:10001C001FEF1093063F08951EE0109300040895FF
:10002C00FBDF109104041460109304041091040479
:10003C0012601093040410E008EC7CD110910404BD
:10004C001D7F1093040410E008EC74D114E110939C
:10005C000E3F10E8212A78941091063F112309F4E1
:10006C00BCC010E01093063F10E010930A3F10E064
:10007C001093093FE7E0FFE32497FB83EA8319E041
</code></pre>
<p dir="auto">TIA<br />
DG</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19841/intel-hex-not-higlighting</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 15:26:40 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19841.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 11 Aug 2020 07:17:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Intel Hex not higlighting on Mon, 01 Nov 2021 00:26:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> Apologies Peter for responding to the wrong person.</p>
<p dir="auto">Yes I see what you illustrated on my laptop but not on my desktop.</p>
<p dir="auto">I just updated styers.xml on my desktop and all is <strong>wonderful</strong>.</p>
<p dir="auto">Many thanks,<br />
DG</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71039</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71039</guid><dc:creator><![CDATA[David Griffiths]]></dc:creator><pubDate>Mon, 01 Nov 2021 00:26:04 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Sat, 30 Oct 2021 22:20:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said in <a href="/post/71020">Intel Hex not higlighting</a>:</p>
<blockquote>
<p dir="auto">it “dropped down” a second line</p>
</blockquote>
<p dir="auto">This is called a Scintilla “annotation”.</p>
<p dir="auto">I use it in my “python-check-syntax-on-save” script to produce some information that saves me the time of not finding that problem when I run the script, but rather when I save the file.</p>
<p dir="auto">An example:</p>
<p dir="auto"><img src="/assets/uploads/files/1635632201187-9d058741-1acf-4862-8ae7-de68378116aa-image.png" alt="9d058741-1acf-4862-8ae7-de68378116aa-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">So I know I did an “oopsie” and need to move my <code>from __future__ ...</code> line upward, like this, where all is good:</p>
<p dir="auto"><img src="/assets/uploads/files/1635632275177-cbcfa561-423c-4906-8b73-6c7c0aed480b-image.png" alt="cbcfa561-423c-4906-8b73-6c7c0aed480b-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">This little syntax checker was inspired by <a class="plugin-mentions-user plugin-mentions-a" href="/user/dail" aria-label="Profile: dail">@<bdi>dail</bdi></a> 's which is for Lua: <a href="https://dail8859.github.io/LuaScript/examples/luasyntaxchecker.lua.html" rel="nofollow ugc">https://dail8859.github.io/LuaScript/examples/luasyntaxchecker.lua.html</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/71021</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71021</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 30 Oct 2021 22:20:32 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Sat, 30 Oct 2021 21:36:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/david-griffiths" aria-label="Profile: David-Griffiths">@<bdi>David-Griffiths</bdi></a> said,</p>
<blockquote>
<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></p>
</blockquote>
<p dir="auto">Actualy, I am <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a>, not <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a>,</p>
<blockquote>
<p dir="auto"><em>I doubt it’s actually nothing.</em>  Well actually it is! The console shows nothing at all after the ‘ready’ when I run the script ??</p>
</blockquote>
<p dir="auto">I have to assume it was doing <em>something</em> if it was running.  It just wasn’t printing to the console.  <em>Edit: but yes, as Alan suggested, I was expecting an error message.  When you didn’t see one, I started experimenting more once I had time.</em></p>
<p dir="auto">Please remember, you are asking about a script that <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> wrote a year ago, which I hadn’t ever used.  So I’m sorry that I wasn’t able to describe exactly how it should work off the top of my head without ever looking at it.</p>
<blockquote>
<p dir="auto"><code>*Python 2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:25:05) [MSC v.1500 64 bit (AMD64)]</code><br />
This seems to be reporting an AMD processor which it isn’t! It is an Intel i5-6400 ??</p>
</blockquote>
<p dir="auto">Actually, that’s just what Python reports when it’s compiled in 64bit mode: it’s a historical artifact of the fact that AMD beat Intel to the punch for 64bit architecture on consumer PCs, from what I remember; compilers were often hardcoded with “AMD” in the result, and that’s just stuck because it’s what software developers got used to seeing (and checking) when verifying that it compiled correctly, presumably much to Intel’s chagrin.  You can see this even from your cmd.exe prompt :</p>
<pre><code>C:\Users\Peter&gt;echo %PROCESSOR_ARCHITECTURE%
AMD64
C:\Users\Peter&gt;echo %PROCESSOR_IDENTIFIER%
Intel64 Family 6 Model 158 Stepping 13, GenuineIntel
</code></pre>
<p dir="auto">… where it shows it knows it’s an intel chip, but the architecture is still listed as AMD64.</p>
<blockquote>
<p dir="auto"><em>In other words: you haven’t given us enough to go on.</em>  Fair comment, but I am not sure what I can add?  Here is a sample  of the data but I doubt that is relevant.</p>
</blockquote>
<p dir="auto">Sorry, I hadn’t noticed the example “intel hex” document in the initial piece of this conversation.  I asked for example data because without seeing that example data that you presented now (or going back and seeing it at the beginning), I had <em>no idea</em> what the data would look like, so I had no way of giving the script valid data.</p>
<p dir="auto">I ran the script, and it didn’t immediately do anything, so I went back and re-read the entire thread (seeing the original data… sorry) to see if it gave clues; then glanced through to the source code for print statements; I found if I changed <code>self.debug_mode = False</code> to <code>self.debug_mode = True</code>, it would enable a print.  When I reran the script, I saw it print a single checksum.  Given it was more than one line of data, I was surprised it only showed one.  I clicked somewhere else, and it printed another.  So then I started arrowing through.  When I got to the first line (the one that had an error highlighted), it “dropped down” a second line after the first, where it showed a separate checksum lined up with the incorrect checksum:<br />
<img src="/assets/uploads/files/1635627968015-9d92eb36-2490-430a-af15-fbb8a2aed6f6-image.png" alt="9d92eb36-2490-430a-af15-fbb8a2aed6f6-image.png" class=" img-fluid img-markdown" /><br />
Not the best color choice (IMO), but it shows <code>EB</code> instead of <code>F5</code> as the correct checksum.  When I change <code>F5</code> to <code>EB</code>, the syntax highlighter changes from red to green, and the “dropped down” line goes away.<br />
<img src="/assets/uploads/files/1635628012482-c8624bf7-c9fd-4453-b8d6-bddd32ea3b09-image.png" alt="c8624bf7-c9fd-4453-b8d6-bddd32ea3b09-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Does it behave the same way for you?  If not, turn on the debug printing by changing the line of code, saving, and re-running the script, and look at the console output as you run it. It should look like:</p>
<p dir="auto"><img src="https://i.imgur.com/gQ6lqZ2.gif" alt="" class=" img-fluid img-markdown" /></p>
<p dir="auto">Once you know it’s working, then you can change that back to <code>False</code>.  Exit Notepad++ and re-enter.  The next time you run the script, it won’t be printing to the console anymore, but it should show you the fixed checksums.</p>
<p dir="auto">(And as an aside, you only have to run the script once per load of Notepad++; for that entire session, anytime you enter an Intel HEX document, it will do the checksum as you navigate through the document.)</p>
<p dir="auto">You said last year,</p>
<blockquote>
<p dir="auto">BTW I am still none the wiser as to why my desktop PC only wants to show Intel Hex in monochrome ??</p>
</blockquote>
<p dir="auto">I had a similar problem: I was using recent v8.1.5, and no highlighting was done for Intel HEX files, even though it was properly recognized as such in the Language Menu.  And when I checked the Style Configurator, it didn’t even list it… which meant my stylers.xml didn’t have Intel HEX defined – that probably means that my original installation was from a version that didn’t have that, and since upgrades don’t overwrite an installed <code>stylers.xml</code>, I never got a copy,even though <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/635f1d41ab307d463d4cd058e75a1bb8e3461792/PowerEditor/src/stylers.model.xml#L543-L563" rel="nofollow ugc">the current repo shows it’s definitely there</a>.  I went and downloaded a portable v7.8.9  (which was the rev listed earlier in the thread), and it properly worked.  So I looked at my installed <code>%AppData%\Notepad++\stylers.xml</code>, and it was missing the Intel HEX section.  So I remedied that:</p>
<ol>
<li>exit my installed notepad++ and restart the app (see <a href="https://npp-user-manual.org/docs/config-files/#editing-configuration-files" rel="nofollow ugc">usermanual: “editing configuration files”</a> for best practice sequence, which these instructions follow)</li>
<li>open <code>c:\Program Files\Notepad++\stylers.model.xml</code> and <code>%AppData%\Notepad++\stylers.xml</code> (see <a href="https://community.notepad-plus-plus.org/topic/15740/faq-desk-what-is-appdata">forum FAQ: “what is appdata”</a> and <a href="https://npp-user-manual.org/docs/config-files/#configuration-files-location" rel="nofollow ugc">usermanual: “config file locations”</a>)</li>
<li>copy the <code>&lt;LexerType name="ihex" desc="Intel HEX" ext=""&gt;...&lt;/LexerType&gt;</code> from the .model to the appdata, and save
<ul>
<li>If your <code>stylers.model.xml</code> doesn’t have it, copy from the <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/635f1d41ab307d463d4cd058e75a1bb8e3461792/PowerEditor/src/stylers.model.xml#L543-L563" rel="nofollow ugc">online copy of the file</a> instead</li>
</ul>
</li>
<li>exit Notepad++ and restart the app</li>
<li>now v8.1.5 properly syntax-highlights</li>
</ol>
]]></description><link>https://community.notepad-plus-plus.org/post/71020</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71020</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 30 Oct 2021 21:36:07 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Sat, 30 Oct 2021 21:28:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/david-griffiths" aria-label="Profile: David-Griffiths">@<bdi>David-Griffiths</bdi></a> said in <a href="/post/71017">Intel Hex not higlighting</a>:</p>
<blockquote>
<p dir="auto">The console shows nothing at all after the ‘ready’ when I run the script ??</p>
</blockquote>
<p dir="auto">I think that <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> was hopeful that some sort of error message would be produced.  As nothing of that ilk appears to be showing, it would seem the script is functioning as <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> intended, just maybe not for you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71019</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71019</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 30 Oct 2021 21:28:03 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Sat, 30 Oct 2021 21:19:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/david-griffiths" aria-label="Profile: David-Griffiths">@<bdi>David-Griffiths</bdi></a> said in <a href="/post/71017">Intel Hex not higlighting</a>:</p>
<blockquote>
<p dir="auto">Python 2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:25:05) [MSC v.1500 64 bit (AMD64)]</p>
</blockquote>
<p dir="auto">I’ve never really considered this before, but I think it (the “AMD”) is probably what PythonScript was built with?  Or the Python exe it uses was built with it?  Regardless, I don’t think it has anything to do with what machine it is currently running on.</p>
<p dir="auto">At least you didn’t complain that it isn’t showing the current date but is rather showing Apr 20 2020 (that’s a total joke, but it adds support to that this info is being pulled from somewhere other than your current machine).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71018</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71018</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 30 Oct 2021 21:19:54 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Sat, 30 Oct 2021 20:05:35 GMT]]></title><description><![CDATA[<p dir="auto">David Griffiths<br />
David Griffiths Aug 15, 2020, 10:24 PM</p>
<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><br />
<em>I doubt it’s actually nothing.</em>  Well actually it is! The console shows nothing at all after the ‘ready’ when I run the script ??</p>
<p dir="auto"><em>Python 2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:25:05) [MSC v.1500 64 bit (AMD64)]<br />
Initialisation took 297ms<br />
Ready.</em></p>
<p dir="auto">This seems to be reporting an AMD processor which it isn’t! It is an Intel i5-6400 ??</p>
<p dir="auto"><em>In other words: you haven’t given us enough to go on.</em>  Fair comment, but I am not sure what I can add?  Here is a sample  of the data but I doubt that is relevant.</p>
<pre><code>:10000000FF050102FFFFFFFFFFFFFFFFFFFF09FFF5
:10001000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0
:10002000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0
:10003000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD0
:10004000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC0
:10005000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB0
:10006000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA0
:10007000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF90
:00000001FF
</code></pre>
<p dir="auto">Both machines are running Win10 Home. Obviously the screen drivers are different. Both running the latest version of NPP.</p>
<p dir="auto">Are there any config files I can send?</p>
<p dir="auto">Cheers, DG</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71017</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71017</guid><dc:creator><![CDATA[David Griffiths]]></dc:creator><pubDate>Sat, 30 Oct 2021 20:05:35 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Sat, 30 Oct 2021 16:45:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/david-griffiths" aria-label="Profile: David-Griffiths">@<bdi>David-Griffiths</bdi></a> said in <a href="/post/71015">Intel Hex not higlighting</a>:</p>
<blockquote>
<p dir="auto">When I open a file containing 9 lines of Intel Hex and run the script, precisely nothing happens ??</p>
</blockquote>
<p dir="auto">I doubt it’s actually <em>nothing</em>.  Fortunately, PythonScript has a console which is useful for debugging: go to the PythonScript menu and show the console, and see if it shows any errors after you run the script.</p>
<blockquote>
<p dir="auto">This is on my desktop which does not show the highlighting of the hex file. I then tried on my laptop, which does the highlighting correctly, and the script works.</p>
</blockquote>
<p dir="auto">So obviously there is something different between the two setups.</p>
<blockquote>
<p dir="auto">So back to the original question, why does my desktop not show the highlighting?  Both running NPP v8.1.5</p>
</blockquote>
<p dir="auto">My magic eight ball says “Reply hazy, try again” and then “Concentrate and ask again”.  In other words: you haven’t given us enough to go on.  You’ll have to provide more information, including the PythonScript console results, and maybe some <a href="https://community.notepad-plus-plus.org/topic/21925/faq-desk-formatting-forum-posts">example data</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71016</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71016</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 30 Oct 2021 16:45:16 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Sat, 30 Oct 2021 05:27:32 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 Alan.  I have installed the PythonScript plugin and created the script.<br />
When I open a file containing 9 lines of Intel Hex and run the script, precisely nothing happens ??<br />
This is on my desktop which does not show the highlighting of the hex file. I then tried on my laptop, which does the highlighting correctly, and the script works.<br />
So back to the original question, why does my desktop not show the highlighting?  Both running NPP v8.1.5</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71015</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71015</guid><dc:creator><![CDATA[David Griffiths]]></dc:creator><pubDate>Sat, 30 Oct 2021 05:27:32 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Fri, 29 Oct 2021 12:03:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/david-griffiths" aria-label="Profile: David-Griffiths">@<bdi>David-Griffiths</bdi></a> said in <a href="/post/71002">Intel Hex not higlighting</a>:</p>
<blockquote>
<p dir="auto">sorry I only just noticed it. Better late than never</p>
</blockquote>
<p dir="auto">Wow, that was a long layoff…</p>
<blockquote>
<p dir="auto">Where should I save the file and how do invoke the script?</p>
</blockquote>
<p dir="auto">There are some basic instructions for this type of scripting <a href="https://community.notepad-plus-plus.org/post/62027">HERE</a>.  See the PeterJones Jan 19, 2021 4:12pm posting.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71003</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71003</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 29 Oct 2021 12:03:46 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Fri, 29 Oct 2021 11:40:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> Thanks for posting this - sorry I only just noticed it. Better late than never :-)<br />
Where should I save the file and how do invoke the script?<br />
Any ideas why I am not seeing the highlighting on my Win10 PC?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71002</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71002</guid><dc:creator><![CDATA[David Griffiths]]></dc:creator><pubDate>Fri, 29 Oct 2021 11:40:31 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Sat, 15 Aug 2020 13:37:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/david-griffiths" aria-label="Profile: David-Griffiths">@<bdi>David-Griffiths</bdi></a></p>
<p dir="auto">Sorry, I was busy with some personal matters.<br />
<a href="https://github.com/Ekopalypse/NppPythonScripts/blob/master/misc/IntelHexValidator.py" rel="nofollow ugc">Here’s</a> a python script that hopefully does what you want. If there is something else you might want to have or it doesn’t do what you want it to be done I would kindly ask to use the github issue tracker in my repo.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56844</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56844</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Sat, 15 Aug 2020 13:37:03 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Sat, 15 Aug 2020 12:24: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 for clarifying Alan. My knowledge of the inner workings of N++ needs work :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56843</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56843</guid><dc:creator><![CDATA[David Griffiths]]></dc:creator><pubDate>Sat, 15 Aug 2020 12:24:21 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Thu, 13 Aug 2020 13:15:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/david-griffiths" aria-label="Profile: David-Griffiths">@<bdi>David-Griffiths</bdi></a> said in <a href="/post/56796">Intel Hex not higlighting</a>:</p>
<blockquote>
<p dir="auto">N++ … does know how to calculate the checksum</p>
</blockquote>
<p dir="auto">Notepad++ code has absolutely no idea how to do this checksum.<br />
It <em>isn’t</em> doing it.<br />
The underlying lexer is doing it, which comes from a separate project, called Scintilla.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56797</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56797</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 13 Aug 2020 13:15:06 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Thu, 13 Aug 2020 13:05:15 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> Yes I agree it is more than I expected from N++ but as it does know how to calculate the checksum, it would be a very small step to add a right click or such that inserted the correct value, would it not?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56796</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56796</guid><dc:creator><![CDATA[David Griffiths]]></dc:creator><pubDate>Thu, 13 Aug 2020 13:05:15 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Wed, 12 Aug 2020 22:28:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/david-griffiths" aria-label="Profile: David-Griffiths">@<bdi>David-Griffiths</bdi></a> said in <a href="/post/56785">Intel Hex not higlighting</a>:</p>
<blockquote>
<p dir="auto">I know how to calculate the checksum but so does N++ and I would like it to be automatically calculated for me when I edit a line.</p>
</blockquote>
<p dir="auto">This goes beyond the responsibility N++ signs up for. :-)<br />
You could certainly do something for it with a scripting plugin, e.g. <em>Pythonscript</em>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56786</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56786</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 12 Aug 2020 22:28:30 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Wed, 12 Aug 2020 21:47:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> Thanks Guy.  I know how to calculate the checksum but so does N++ and I would like it to be automatically calculated for me when I edit a line.</p>
<p dir="auto">BTW I am still none the wiser as to why my desktop PC only wants to show Intel Hex in monochrome ??</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56785</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56785</guid><dc:creator><![CDATA[David Griffiths]]></dc:creator><pubDate>Wed, 12 Aug 2020 21:47:07 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Wed, 12 Aug 2020 18:56:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said in <a href="/post/56778">Intel Hex not higlighting</a>:</p>
<blockquote>
<p dir="auto">So to add transparency to current line background, it would have to be a codebase edit.</p>
</blockquote>
<p dir="auto">I did some searching and found <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8614" rel="nofollow ugc">THIS</a> as probably related.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56780</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56780</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 12 Aug 2020 18:56:31 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Wed, 12 Aug 2020 18:38:43 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></p>
<blockquote>
<p dir="auto">isn’t there a way to do something to the current-line-background color so that you can just get the red there (or close</p>
</blockquote>
<p dir="auto">I think the problem isn’t that the red has transparency; I think the problem is that the current-line-background has <em>no</em> transparency and is drawn over the red, so the current-line-background is the only visible background.  It might be possible if the current-line-transparency could be set to 50% or something of that ilk, but that cannot be done in the GUI.</p>
<p dir="auto">I tried editing stylers.xml to use either the MSB or LSB as an alpha value for the current line background</p>
<pre><code>        &lt;WidgetStyle name="Current line background colour" styleID="0" bgColor="E8E8FF80" colorStyle="1" fontStyle="0" /&gt;
or
        &lt;WidgetStyle name="Current line background colour" styleID="0" bgColor="80E8E8FF" colorStyle="1" fontStyle="0" /&gt;
</code></pre>
<p dir="auto">But either was interpreted as invalid color, and current-line-background became black.</p>
<p dir="auto">So to add transparency to current line background, it would have to be a codebase edit.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56778</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56778</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 12 Aug 2020 18:38:43 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Wed, 12 Aug 2020 18:02:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said in <a href="/post/56774">Intel Hex not higlighting</a>:</p>
<blockquote>
<p dir="auto">Change the foreground color of CHECKSUM_WRONG to something that contrasts both with its red background color and with your Global Styles &gt; Current Line Background &gt; Background color.</p>
</blockquote>
<p dir="auto">Well…yea…but I meant, isn’t there a way to do something to the current-line-background color so that you can just get the red there (or close to it due to blending of colors) for the non-current line case?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56775</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56775</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 12 Aug 2020 18:02:48 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Wed, 12 Aug 2020 17:58:43 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/56771">Intel Hex not higlighting</a>:</p>
<blockquote>
<p dir="auto">What’s the way around that, if any?</p>
</blockquote>
<p dir="auto">Change the foreground color of <strong>CHECKSUM_WRONG</strong> to something that contrasts both with its red background color and with your <strong>Global Styles &gt; Current Line Background &gt; Background</strong> color.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56774</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56774</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 12 Aug 2020 17:58:43 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Wed, 12 Aug 2020 17:34:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said in <a href="/post/56766">Intel Hex not higlighting</a>:</p>
<blockquote>
<p dir="auto">BTW, it’s work pointing out that the background color of the CHECKSUM and CHECKSUM_WRONG styles of the Intel Hex language are totally transparent ( α = 0  ) So, for instance, the default red background of a wrong checksum is not visible if this line is the current N++ line with usual very pale blue background color !</p>
</blockquote>
<p dir="auto">Interesting.  What’s the way around that, if any?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56771</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56771</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 12 Aug 2020 17:34:44 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Sun, 31 Oct 2021 03:16:17 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/david-griffiths" aria-label="Profile: david-griffiths">@<bdi>david-griffiths</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: ekopalypse">@<bdi>ekopalypse</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong></p>
<p dir="auto">You can find a <strong>good</strong> documentation  on the <strong><code>Intel Hex File Format</code></strong> from below :</p>
<p dir="auto"><a href="https://developer.arm.com/documentation/ka003292/latest" rel="nofollow ugc">https://developer.arm.com/documentation/ka003292/latest</a></p>
<p dir="auto"><a href="https://en.wikipedia.org/wiki/Intel_HEX" rel="nofollow ugc">https://en.wikipedia.org/wiki/Intel_HEX</a></p>
<p dir="auto">And I deduced that the <strong>checksum</strong> can be calculated from this <strong>formula</strong> :</p>
<p dir="auto"><strong><code>CheckSum = 256 - ( ∑ Byte Values ) MOD 256</code></strong></p>
<p dir="auto">Each <strong>Byte Value</strong> represents the <strong>decimal</strong> value of the next <strong>two hexadecimal</strong> codes, <strong>minus</strong> the <strong>last two</strong> ones, standing for the <strong>checksum</strong></p>
<p dir="auto">For instance, the <strong>fourth</strong> line, of your example, is :</p>
<pre><code class="language-diff">                                         vv----- CheckSum
:10004C001D7F1093040410E008EC74D114E110939C
 &lt;--------------------------------------&gt;        Data Range
</code></pre>
<p dir="auto">So its <strong>checksum</strong> is :</p>
<pre><code class="language-z"> 
= 256 - (10h + 00h + 4Ch + 00h + 1Dh + 7Fh + 10h + 93h + 04h + 04h + 10h + E0h + 08h + ECh + 74h + D1h + 14h + E1h + 10h + 93h) mod 256

= 256 - ( 16 +   0  + 76  +  0  + 29 + 127 +  16 + 147 +   4 +   4 + 16  + 224  +  8 + 236 + 116 + 209 +  20 + 225 +  16 + 147) mod 256

= 256 - 1636 mod 256

= 256 - 100
</code></pre>
<p dir="auto">Thus, the <strong>checksum</strong> of the <strong>fourth</strong> line is <strong><code>156</code></strong> , so <strong><code>9C</code></strong></p>
<hr />
<p dir="auto">BTW, it’s work pointing out that the <strong>background</strong> color of the <strong><code>CHECKSUM</code></strong> and <strong><code>CHECKSUM_WRONG</code></strong> styles of the <strong><code>Intel Hex</code></strong> language are totally <strong>transparent</strong> ( <strong><code>α = 0</code></strong>  ) So, for instance, the <strong>default red</strong> background of a <strong>wrong checksum</strong> is <strong>not</strong> visible if this line is the <strong>current</strong> N++ line with usual <strong>very pale</strong> blue <strong>background</strong> color !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56766</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56766</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 31 Oct 2021 03:16:17 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Tue, 11 Aug 2020 12:05:19 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> Did you change the last digit before the FF from 5 to 6 like Eko did?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56713</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56713</guid><dc:creator><![CDATA[David Griffiths]]></dc:creator><pubDate>Tue, 11 Aug 2020 12:05:19 GMT</pubDate></item><item><title><![CDATA[Reply to Intel Hex not higlighting on Tue, 11 Aug 2020 11:49:48 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/56711">Intel Hex not higlighting</a>:</p>
<blockquote>
<p dir="auto">I guess really ambitious lexing!</p>
</blockquote>
<p dir="auto">Lol<br />
It would be nice if the builtin lexers would show code which isn’t efficient :-D</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56712</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56712</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Tue, 11 Aug 2020 11:49:48 GMT</pubDate></item></channel></rss>