Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-08-26 18:19:46

uibits
Member
Registered: 2022-07-02
Posts: 39

[SOLVED] Mousepad: HTML: headings (h1 h2 etc) break code coloring

Their is something very buggy with the processing of headings by the code coloring system used by Mousepad. It will completely balk, hang for a moment and then fail, while changing a heading from say an <h1> to an <h2>. In that interim moment when the two opening and closing tags don't match, that is when the coloring dies. The text is treated as plain text, to restore code coloring you need to close the tab with the broken document, and reopen the file.

There is another time when the coloring dies... inside the heading element try making a line of whitespace like so:

<h1>This is

a

heading!
</h1>

This has been an issue for a number of years. I just didn't say anything it back then. (I can't use gitlab, javascript, so thanks for understanding)

Thanks for reading, dear great defenders of freedom computing.

Last edited by uibits (2024-08-27 18:46:46)

Offline

#2 2024-08-26 20:17:55

Tamaranch
Member
Registered: 2020-12-31
Posts: 321

Re: [SOLVED] Mousepad: HTML: headings (h1 h2 etc) break code coloring

This is entirely managed by GtkSourceView, what is your version of this library?

Offline

#3 2024-08-27 11:15:49

uibits
Member
Registered: 2022-07-02
Posts: 39

Re: [SOLVED] Mousepad: HTML: headings (h1 h2 etc) break code coloring

Hi Tamaranch,
Thanks, I'm on whatever version Manjaro were giving out recently but it looks like they have an even more recent update since so I'll do the update and report back after. smile If anyone has the latest version already and wants to report the state of this bug, that would be most excellent.

**...still recovering from the last update tbh tongue**

Offline

#4 2024-08-27 12:12:52

Tamaranch
Member
Registered: 2020-12-31
Posts: 321

Re: [SOLVED] Mousepad: HTML: headings (h1 h2 etc) break code coloring

I can actually reproduce the problem with gtksourceview-4 but not with git master, see https://gitlab.gnome.org/GNOME/gtksourc … te_2207802

Offline

#5 2024-08-27 18:46:16

uibits
Member
Registered: 2022-07-02
Posts: 39

Re: [SOLVED] Mousepad: HTML: headings (h1 h2 etc) break code coloring

Most excellent! If only I waited a bit longer smile

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 528.25 KiB (Peak: 531.48 KiB) ]