Page 1 of 2
FIXED: V16.67 - syntax hiliting stumbles - html file
Posted: 10 Sep 2026 23:18
by DerellLicht1

- rjte.color.bug.jpg (268.78 KiB) Viewed 1245 times
please check out the attached (well, pointed to) file, index.html
https://gitlab.com/DerellLicht/pretty-m ... type=heads
All syntax highlighting works fine... up until line 743, then it completely loses sync, and almost everything after that is just yellow there are a couple of exceptions, but for most of the rest of the file, syntax hiliting seems to just be canceled...
(in the attached image, the cursor is at line 743)
Re: V16.67 - syntax hiliting stumbles - html file
Posted: 11 Sep 2026 00:05
by ScrKiddle
I have such things too with other non-HTML files.
I think this happens with large files.
Some times i was able to fix it by scrolling up and down serval times.
I am not sure what it was, maybe the editor loads large files in parts and then it takes a while to load the highlights or it may fails to load the highlights until it needs to load some other parts.
It did look pretty ransom to me but i think there is a chance to get it fixed by scrolling like wild in large files.
Re: V16.67 - syntax hiliting stumbles - html file
Posted: 23 Sep 2026 00:38
by DerellLicht1
Yeah, it's really odd... I have syntax-highlighting issues in a number of files with various file formats...
I think, maybe, the one common issue is that they are not conventional code source files...
For example, consider the enclosed image, which is from a
Makefile
It gets confused in a block of valid Makefile code, and remains confused across the first line of the next comment block, then recovers on the following line...

- rjte.makefile.issue.jpg (169.71 KiB) Viewed 1081 times
Re: V16.67 - syntax hiliting stumbles - html file
Posted: 23 Sep 2026 17:01
by Rickard Johansson
Fixed both issues in the next release. (The issues you have are completely unrelated

)
Re: FIXED: V16.67 - syntax hiliting stumbles - html file
Posted: 23 Sep 2026 18:13
by DerellLicht1
Can I get a beta/development version of this build? These highlighting issues are interfering with the project that I'm working on right now...
Re: FIXED: V16.67 - syntax hiliting stumbles - html file
Posted: 24 Sep 2026 12:19
by Rickard Johansson
Copy the files to the correct folders and give it a try:
https://www.rj-texted.se/downloads/TextEd.zip
Re: FIXED: V16.67 - syntax hiliting stumbles - html file
Posted: 24 Sep 2026 13:54
by DerellLicht1
Ahhhh... *much* better, especially with the Makefile; those color switches over large blocks, were really tweaking my eyes!!
There *still* are some quirks with html files, though...
I'll enclose a couple of images here...
[ I am removing the "FIXED" from the top post, so you'll see this... ]
color map changed, midway through block

- rjte.index.html.color_swap.jpg (66.22 KiB) Viewed 1017 times
color hiliting cancelled across large block

- rjte.index.html.color_map_cancelled.jpg (238.52 KiB) Viewed 1017 times
Re: FIXED (not quite): V16.67 - syntax hiliting stumbles - html file
Posted: 24 Sep 2026 17:58
by Rickard Johansson
Re: FIXED (not quite): V16.67 - syntax hiliting stumbles - html file
Posted: 24 Sep 2026 18:30
by DerellLicht1
Makefile looks perfect!! That's good...
Markdown has an occasional glitch.
But html still has issues, in that same <div> block:
BTW, this file can be accessed here, if you wish to look at it yourself...
https://gitlab.com/DerellLicht/pretty-m ... type=heads

- rjte.html.jpg (178.39 KiB) Viewed 1005 times
Re: FIXED (not quite): V16.67 - syntax hiliting stumbles - html file
Posted: 24 Sep 2026 19:27
by DerellLicht1
I will admit one thing about this `index.html` file, though...
It is not really a standard `html` file; it is implementing functions in something called `WebView2`, so it *may* not be using entirely conventional html/js/css code...
When I look through all of my standard html+aLittleCSS files, I don't see any display issues with any of them...
Re: FIXED (not quite): V16.67 - syntax hiliting stumbles - html file
Posted: 24 Sep 2026 21:19
by Rickard Johansson
Re: FIXED (not quite): V16.67 - syntax hiliting stumbles - html file
Posted: 24 Sep 2026 23:11
by DerellLicht1
hmmm... okay... OKAY!! Yes...
all the quirky sections in `index.html` appear to display consistently now...
Makefile is still Perfect !!
There are *still* occasional quirks in `.md` files;
- file links sometimes draw with the default color instead of the link color,
- formatting lines in tables render in default color instead of table color,
- The notorious "Em dash" ( — ) (which is used a *lot* by Claude AI, which is where many of my `.md` files come from these days) throws a line back to default color for remainder of line, at least within tables
but I'm not sure they are worth battling with at this point;
Unlike the issues that I had with the preceding files, the `.md` quirks don't impede understanding of what I am reading...
Yes, that is Excellent!!
Thank you so much!!!
I has a purr...
Re: FIXED: V16.67 - syntax hiliting stumbles - html file
Posted: 25 Sep 2026 09:44
by Rickard Johansson
Thank you for the feedback.
If you get the time - I would very much like to have a sample file showing all the quirks in .md files

Re: FIXED: V16.67 - syntax hiliting stumbles - html file
Posted: 25 Sep 2026 12:58
by Rickard Johansson
Never mind... i've fixed the quirks

Re: FIXED: V16.67 - syntax hiliting stumbles - html file
Posted: 25 Sep 2026 16:47
by DerellLicht1
Rickard Johansson wrote: 25 Sep 2026 09:44
Thank you for the feedback.
If you get the time - I would very much like to have a sample file showing all the quirks in .md files
Okay, you've gotten those issues fixed, but I'll go ahead and upload a file which contains the three issues that I commented upon...
This will give you one more test case.
I had to zip it up, can't upload .md file...
Line 4 shows "table header line in default color"
Lines 5, 6, 8 show "color reset after 'Em dash' character"
The rest of the file contains a number of markdown file links;
Only *one* of them shows the file link in markdown color, all the rest show as default color... in *this* case, I'm not actually sure which of those is correct...