Re-added textdoc delegate with (demo highlighting).
A few features remain (such as showing "..." for more text indication and highlighting the background of matching words.
Also, dynamic update of the highlight rules.
Small fixes in tableview properties