Copy query with formatting from 'Queries' tab - is it still possible?

Timon's profile image Timon posted 3 weeks ago in General Permalink

Hi everyone,

until recently, we were able to copy SQL queries directly from the "Queries" tab in HeidiSQL and paste them with syntax highlighting (colors, italics, etc.) into other applications (e.g., Word, Outlook).

It seems that this is no longer working. Now the queries are pasted as plain text without any formatting. Is there still a way to copy queries with syntax highlighting? Maybe there is a setting or a workaround I'm not aware of?

Thanks in advance for any help!

ansgar's profile image ansgar posted 3 weeks ago Permalink

Yes, I removed that formatting on clipboard due to bugs in commit:a41d2dd0af75bc36ee01ab2dbc116b1d0c5ec3b1 . The underlying SynEdit crashes many times here. See this forum thread for some more details.

Timon's profile image Timon posted 3 weeks ago Permalink

Hi ansgar,

first of all, thank you for the clarification about why the RTF/syntax highlighting clipboard feature was removed and the very fast response.

I completely understand that stability has priority, especially if SynEdit caused crashes or even affected the system clipboard globally.

That said, I would like to share that this feature was extremely useful for documentation purposes. Being able to copy SQL queries with syntax highlighting directly into tools like Word or Outlook saved a lot of time and improved readability significantly.

So I wanted to ask:

Is there any chance of bringing this feature back in a safer way in the future? For example:

  • as an optional setting (disabled by default)
  • or via a more stable export method (HTML/RTF copy)
  • or even as a "copy as formatted text" option

Alternatively, do you have any recommended workflow or workaround to achieve similar results?

Thanks again for your work on HeidiSQL - it's a great tool and highly appreciated!

Best regards Timon

ansgar's profile image ansgar posted 3 weeks ago Permalink

Yea I can give it a new try, probably with a more cleaner way without causing crashes. But please open a feature request ticket on Github for that.

Timon's profile image Timon posted 3 weeks ago Permalink

That would be amazing, thank you very much! I really appreciate you taking the time to look into this again and considering a cleaner implementation. I'll go ahead and create a feature request on GitHub as suggested. Thanks a lot for your support and your continued work on HeidiSQL - it's highly appreciated!

Timon's profile image Timon posted 3 weeks ago Permalink

Hi,

wir haben gerade festgestellt, dass du scheinbar auch deutsch bist.

Ich habe den Feature Request erstellt: https://github.com/HeidiSQL/HeidiSQL/issues/2487

Da meinem Chef das Kopieren mit Formatierung sehr wichtig ist und wir deine Software schon lange nutzen, hat er ausserdem eine kleine Spende geschickt. Ich hoffe, sie ist angekommen.

Vielen Dank nochmals!

ansgar's profile image ansgar posted 3 weeks ago Permalink

Alles klar, dann danke erstmal für die Spende! Wenn dein Chef Fahrudin heißt ist die Spende angekommen :)

Timon's profile image Timon posted 2 weeks ago Permalink

Ja, das ist er. Vielen Dank noch einmal für die Funktion.

Auch wenn der Wunsch ursprünglich von ihm kam, bin ich wirklich froh über die Funktion, gerade im Hinblick auf die Dokumentation.

Please login to leave a reply, or register at first.