FIXED: V16.67 - syntax hiliting stumbles - html file

Report issues, odd behaviors or submit a detailed bug report.
User avatar
DerellLicht1
Posts: 230
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

FIXED: V16.67 - syntax hiliting stumbles - html file

Post by DerellLicht1 »

rjte.color.bug.jpg
rjte.color.bug.jpg (268.78 KiB) Viewed 450 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)
Last edited by DerellLicht1 on 26 Sep 2026 14:54, edited 4 times in total.
ScrKiddle
Posts: 57
Joined: 05 Aug 2026 03:15

Re: V16.67 - syntax hiliting stumbles - html file

Post 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.
User avatar
DerellLicht1
Posts: 230
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

Re: V16.67 - syntax hiliting stumbles - html file

Post 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
rjte.makefile.issue.jpg (169.71 KiB) Viewed 286 times
User avatar
Rickard Johansson
Site Admin
Posts: 6995
Joined: 19 Jul 2006 14:29

Re: V16.67 - syntax hiliting stumbles - html file

Post by Rickard Johansson »

Fixed both issues in the next release. (The issues you have are completely unrelated :))
User avatar
DerellLicht1
Posts: 230
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

Re: FIXED: V16.67 - syntax hiliting stumbles - html file

Post 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...
User avatar
Rickard Johansson
Site Admin
Posts: 6995
Joined: 19 Jul 2006 14:29

Re: FIXED: V16.67 - syntax hiliting stumbles - html file

Post by Rickard Johansson »

Copy the files to the correct folders and give it a try:

https://www.rj-texted.se/downloads/TextEd.zip
User avatar
DerellLicht1
Posts: 230
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

Re: FIXED: V16.67 - syntax hiliting stumbles - html file

Post 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
rjte.index.html.color_swap.jpg (66.22 KiB) Viewed 222 times
color hiliting cancelled across large block
rjte.index.html.color_map_cancelled.jpg
rjte.index.html.color_map_cancelled.jpg (238.52 KiB) Viewed 222 times
User avatar
DerellLicht1
Posts: 230
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

Re: FIXED (not quite): V16.67 - syntax hiliting stumbles - html file

Post 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
rjte.html.jpg (178.39 KiB) Viewed 210 times
User avatar
DerellLicht1
Posts: 230
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

Re: FIXED (not quite): V16.67 - syntax hiliting stumbles - html file

Post 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...
User avatar
DerellLicht1
Posts: 230
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

Re: FIXED (not quite): V16.67 - syntax hiliting stumbles - html file

Post 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...
User avatar
Rickard Johansson
Site Admin
Posts: 6995
Joined: 19 Jul 2006 14:29

Re: FIXED: V16.67 - syntax hiliting stumbles - html file

Post 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 8)
User avatar
Rickard Johansson
Site Admin
Posts: 6995
Joined: 19 Jul 2006 14:29

Re: FIXED: V16.67 - syntax hiliting stumbles - html file

Post by Rickard Johansson »

Never mind... i've fixed the quirks 8)
User avatar
DerellLicht1
Posts: 230
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

Re: FIXED: V16.67 - syntax hiliting stumbles - html file

Post 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 8)
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...
Attachments
issues.zip
(1.23 KiB) Downloaded 5 times
Post Reply