Hi, 
<br>
<br>Thanks for the feedback, I am planning to create a release again with the latest changes with the release of the next Creator.
<br>
<br>Since I was not getting the desired result I did not push my changes to the repository, I will attempt to upload it later today or tomorrow.
<br>
<br>Regards
<br>-----Original Message-----
<br>From: preeteesh kakkar
<br>Sent:  12/07/2014, 9:28  AM
<br>To: Carel Combrink
<br>Cc: <a href="mailto:qt-creator@qt-project.org">qt-creator@qt-project.org</a>
<br>Subject: Re: [Qt-creator] SpellChecker: Underline Spelling mistakes
<br>
<br><div dir="ltr">Sorry somehow i clicked on Send button a little too early, so can you share code which you are using to highlight a text block?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jul 12, 2014 at 3:26 AM, preeteesh kakkar <span dir="ltr"><<a href="mailto:preeteesh.kakkar@gmail.com" target="_blank">preeteesh.kakkar@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Carel,<br><br></div>This is very kool plugin that I would love to use. I compiled your plugin sources and looked at it, it looks great. I don't see any place in your code where you are using setExtraAdditionalFormats, I tried adding below code which highlighting the line in below function and it does works<br>



<br>SpellCheckerCore::addWordsWithSpellingMistakes<br>{<br>.....<br><br>TextEditor::BaseTextEditorWidget* editorWidget = qobject_cast<TextEditor::BaseTextEditorWidget*>(d->currentEditor->widget());<br>    if (words.count() != 0) {<br>



        <br>        editorWidget->setHighlightCurrentLine(true);<br>    }<br>    else<br>    {<br>        editorWidget->setHighlightCurrentLine(false);<br>    }<br>.....<br>}<br></div><div class="gmail_extra"><br><br>



<div class="gmail_quote"><div><div class="h5">On Fri, Jul 11, 2014 at 5:11 PM, Carel Combrink <span dir="ltr"><<a href="mailto:carel.combrink@gmail.com" target="_blank">carel.combrink@gmail.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr">Hi,<div><br></div><div>I am busy with a <a href="https://github.com/CJCombrink/SpellChecker-Plugin" target="_blank">SpellChecker Plugin</a> for Qt Creator but have one big outstanding thing I want to achieve next. I want to underline the spelling mistakes in the current file (the red wave-underline).</div>





<div><br></div><div>From what I understand the TextEditor::SyntaxHighlighter on the document is responsible for doing the highlighting. Also on the CppDocument there is already a SyntaxHighlighter (CppHighlighter) that I do not want to replace nor re-implement (its working rather well as-is). </div>





<div><br></div><div>I am using the setExtraAdditionalFormats() function on the highlighter I obtain from the BaseTextEditor to try and add just the red underline to the word with the spelling mistake. This works on some level. Each time the current file changes I can see the red line appear and disappear from the misspelled words. I am assuming that as soon as I add the formatting something else overwrites it, thus removing my added format. If I then switch to another editor and back my red lines appear again and stay there until the file is edited again. This causes the red underline again to  appear and disappear. </div>





<div><br></div><div>Am I doing something wrong, is this a bug or feature? </div><div><br></div><div>I would really like to only add the formatting without having to worry about something overwriting it after I have added it. I understand that at some point it should be cleared if the word is not a spelling mistake anymore, but not sure how this will be achieved. </div>





<div><br></div><div>Any help in this regard will be much appreciated.</div><div><br></div><div>A screenshot is attached to show what I get if I change editors to keep the line.</div><div><br></div><div>Regards,<br><div>---</div>





<div>Check out my SpellChecker Plugin for Qt Creator @ <a href="https://github.com/CJCombrink/SpellChecker-Plugin" target="_blank">https://github.com/CJCombrink/SpellChecker-Plugin</a></div></div></div>
<br></div></div>_______________________________________________<br>
Qt-creator mailing list<br>
<a href="mailto:Qt-creator@qt-project.org" target="_blank">Qt-creator@qt-project.org</a><br>
<a href="http://lists.qt-project.org/mailman/listinfo/qt-creator" target="_blank">http://lists.qt-project.org/mailman/listinfo/qt-creator</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>