On Thursday 08 February 2007, Hamish Rodda wrote: > You need to call si->addHighlightToDocument() (or addHighlightToView) on > the top range, in this case, d->liRange I figured that, but I have no succes. I added the call in the constructor, and when that wouldn't work also with each each change: d->liRange->setRange( KTextEditor::Range( d->dcRange.end(), m.length() ) ); KTextEditor::SmartInterface *si = qobject_cast( m_view->document() ); si->addHighlightToView( m_view, d->liRange, false ); But still no succes. (And I should really be fine doing this once, right?) -anders -- www: http://www.alweb.dk jabber: anderslund@jabber.dk _______________________________________________ KTextEditor-Devel mailing list KTextEditor-Devel@kde.org https://mail.kde.org/mailman/listinfo/ktexteditor-devel