FIXED: V16.67 - syntax hiliting stumbles - html file
- DerellLicht1
- Posts: 230
- Joined: 23 Jul 2021 17:38
- Location: Fremont, CA, USA
FIXED: V16.67 - syntax hiliting stumbles - html file
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)
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.
Re: V16.67 - syntax hiliting stumbles - html file
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.
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.
- DerellLicht1
- Posts: 230
- Joined: 23 Jul 2021 17:38
- Location: Fremont, CA, USA
Re: V16.67 - syntax hiliting stumbles - html file
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...
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...
- Rickard Johansson
- Site Admin
- Posts: 6995
- Joined: 19 Jul 2006 14:29
Re: V16.67 - syntax hiliting stumbles - html file
Fixed both issues in the next release. (The issues you have are completely unrelated
)
- DerellLicht1
- Posts: 230
- Joined: 23 Jul 2021 17:38
- Location: Fremont, CA, USA
Re: FIXED: V16.67 - syntax hiliting stumbles - html file
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...
- Rickard Johansson
- Site Admin
- Posts: 6995
- Joined: 19 Jul 2006 14:29
Re: FIXED: V16.67 - syntax hiliting stumbles - html file
Copy the files to the correct folders and give it a try:
https://www.rj-texted.se/downloads/TextEd.zip
https://www.rj-texted.se/downloads/TextEd.zip
- DerellLicht1
- Posts: 230
- Joined: 23 Jul 2021 17:38
- Location: Fremont, CA, USA
Re: FIXED: V16.67 - syntax hiliting stumbles - html file
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 color hiliting cancelled across large block
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 color hiliting cancelled across large block
- Rickard Johansson
- Site Admin
- Posts: 6995
- Joined: 19 Jul 2006 14:29
- DerellLicht1
- Posts: 230
- Joined: 23 Jul 2021 17:38
- Location: Fremont, CA, USA
Re: FIXED (not quite): V16.67 - syntax hiliting stumbles - html file
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
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
- DerellLicht1
- Posts: 230
- Joined: 23 Jul 2021 17:38
- Location: Fremont, CA, USA
Re: FIXED (not quite): V16.67 - syntax hiliting stumbles - html file
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...
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...
- Rickard Johansson
- Site Admin
- Posts: 6995
- Joined: 19 Jul 2006 14:29
- DerellLicht1
- Posts: 230
- Joined: 23 Jul 2021 17:38
- Location: Fremont, CA, USA
Re: FIXED (not quite): V16.67 - syntax hiliting stumbles - html file
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...
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...
- Rickard Johansson
- Site Admin
- Posts: 6995
- Joined: 19 Jul 2006 14:29
Re: FIXED: V16.67 - syntax hiliting stumbles - html file
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
If you get the time - I would very much like to have a sample file showing all the quirks in .md files
- Rickard Johansson
- Site Admin
- Posts: 6995
- Joined: 19 Jul 2006 14:29
Re: FIXED: V16.67 - syntax hiliting stumbles - html file
Never mind... i've fixed the quirks 
- DerellLicht1
- Posts: 230
- Joined: 23 Jul 2021 17:38
- Location: Fremont, CA, USA
Re: FIXED: V16.67 - syntax hiliting stumbles - html file
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...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![]()
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
