Hi I found something. The file which determines php highlighting is /usr/share/gtksourceview-2.0/language-specs/php.lang.
In this file, in line 321, '<context id="php" class="no-spell-check">' seems to mean that all the edited script is unchecked, unless if the no- spell-check class is disabled (ex : strings have 'class-disabled="no- spell-check"'). But what is outside php code is not detected, thus can't have any class. I think (but I'm really not an expert) it would be better to only uncheck what is actually php code, ie to switch of the no-spell-check for 'php' in line 321, and to switch on in line 291 for 'php-blocks'. I'm not sure it's enough, but it works as I expect here. I explained it here : <http://blog.cyril-ravat.fr/post/2011/08/26/Gedit %2C-spell-check-and-PHP-syntax>. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/789051 Title: Spell checking does not correctly work To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/789051/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
