Hi

the documentation for

QSyntaxHighlighter::setCurrentBlockUserData ( QTextBlockUserData * data )
says

you can ask the current QTextBlock (retrieved using the QTextCursor::block() function) if it has a user data object set
but I don't understand how to actually retrieve the current QTextBlock, since on what should I call QTextCursor::block()?

thanks in advance
Lorenzo