Typing a heading tag in an empty line (excluding spaces) breaks the HTML syntax highlighting
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the freeze in xed's HTML highlighting mode with a file of about 4,000 characters, then compare it with the ERB (HTML) mode mentioned in the report. Done means typing a heading tag such as
on a whitespace-only line no longer freezes xed or removes HTML highlighting.
Written by the indexing model from the issue text.
Description
Basically what the title says.
It seems this is somehow related to the amount of text in a file. I get this bug at around 4000 characters (including spaces).
This only happens when you type a number after an h, plus it only seems to break if the only symbols you type on a line is whitespace and the tag.
Steps to reproduce
- Create a new file and set the highlighting to HTML mode
- Write or paste a sufficiently large file (~4000 characters or larger)
- Try to type
<h1>or another heading tag on its own line.
After these steps, xed will freeze for a moment, and after that the highlighting will be gone.
My workarounds
This seems to not happen using the ERB (HTML) highlighting mode. This highlighter is similar to the normal HTML highlighter, but does not crash when typing the tags above.
- Dominant language
- C
- Stars
- 551
- Forks
- 115
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from linuxmint/xed
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Allow pkexec xed OpenFEATURE REQUEST
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Similar issues
-
level/task module/gcp type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
hapostgres/pg_auto_failover#1190 ·
-
docs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
P3 sonic-vpp
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sonic-net/sonic-buildimage#29662 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
spack/spack-packages#6586 ·