Bug 82543

Summary: Spellchecker shouldn't check HTML tags
Product: [Applications] kate Reporter: Thomas Forster <thc>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 2.2.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Thomas Forster 2004-05-31 01:23:57 UTC
Version:           2.2.1 (using KDE 3.2.1, SuSE)
Compiler:          gcc version 3.3.3 (SuSE Linux)
OS:                Linux (i686) release 2.6.4-54.5-default

Hi all

Well, I didn't call it a bug, for there is nothing going wrong, but it is a bug as I cannot use the spellchecker as intended:

May be if you use english spellchecking, this is not a big problem, as most program code is in english, but if I have to "ignore" the HTML-Head, all Stylesheets, Javascript code and so on, I realy don't want to use this "feature".

So far, I don't think it would be a big problem, to simply ignore everything between < and >   (do ignore comments between <!-- and --> could be an option).

Another Option could be to check values of attributes, if there is no pre-defined list of options (check value='' but don't check align='').

By the way: thanks for your good work!

Thomas
Comment 1 Anders Lund 2004-05-31 01:46:50 UTC
In CVS, Kate is able to not spellcheck HTML tags. The feature is very limited, for example all text in javascripts and style sheets is still checked. But it's there.
Comment 2 Travis Evans 2007-10-20 08:41:49 UTC
I hate to have to ask this, but where is it? I can't find any spellchecking options anywhere in Kate, and in KDE 3.5.8, Kate is /still/ spellchecking the tags in my XHTML documents.
Comment 3 Anders Lund 2007-10-22 17:07:01 UTC
it should happen automatically for documents with mimetypes text/html, text/xml and text/x-php. What mimetype is your document (look at it in konqueror, which does about the same check as KatePart)
Comment 4 Travis Evans 2008-01-05 00:30:09 UTC
I was saving the files with the *.xhtml extension, and I had set the mimetype to application/xml+xhtml, which I thought was correct. (Apparently *nothing* on my system recognizes the xhtml extension by default, which I don't understand. I have to manually tell every application about this extension, it seems.)

Now I tried setting the mimetype of *.xhtml to text/html instead. I'm not sure if that's correct, but now the Kate spell checker works properly. And Konqueror's thumbnail views actually show the appearance of .xhtml files instead of just a preview of the source, which is much nicer.
Comment 5 Christoph Cullmann 2010-07-10 12:27:38 UTC
SVN commit 1148339 by cullmann:

mwolff:
    limit spellchecking to text and comments in HTML
    
BUG: 82543


 M  +29 -28    html.xml  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1148339