You can add to the file .kobo\Kobo\Kobo eReader.conf
Code:
ExportHighlights=true
under the heading [FeatureSettings] (insert this heading if not existing). Cf.
this thread.
I order to save the highlights/annotations of a book to a text file go to Library > Books > the three line symbol on the right side of the book entry > Export Highlights.