https://bugs.kde.org/show_bug.cgi?id=468484

--- Comment #4 from Jonathan Poelen <jonathan.poe...@gmail.com> ---
I understand better, but it's a rather complicated thing to do with undesirable
effects.

For example, in the simple case of checking title and alt in HTML, this
involves adding a "color" that would have the particularity of being
verifiable.

<img class="..." alt="bla bla">
with
<img is Element
class= is Attribute
"..." is Value
alt= is Attribute
"bla bla" is spellCheckableValue

Value and spellCheckableValue are in fact values, but the syntax must expose 2
distinct values, which implies modifying 2 colors if you want to change the
color of the attributes. Although this can be done, I think the resulting
behavior is strange from the user's point of view.

The same goes for PHP with String, Heredoc, Nowdoc which, in addition to
creating false positives, is a real pain when you have to juggle with a lot of
interleave highlights.

A plugin could do it, but I'm thinking that it would end up duplicating a lot
of code, both for the one that handles spell checking and the one that detects
useful parts of the syntax.

I'm wondering whether it wouldn't be possible to add alternative syntaxes
dedicated to spell checking, ideally with a way of selecting them when checking
is activated. Since this kind of "syntax" eliminates the need for highlighting,
the detection of language elements could be simplified.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to