New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
View XML with markup in Query tab results #136
Comments
I think that in this case we should only limit the tooltip max length and display an ellipsis in cases like that. Additionally, provide a way to open the Text Editor in read-only (if we could not update the row at moment) or in write-mode (if is possible). |
I'm not on Pascal side, sorry. In C# you are able to send any text to e.g. stock notepad through importing user32.dll library and sending your text through SendMessage() to a target process. Then, you can read or save this anywhere you want as a text file (not to database, of course, I did not mean direct xml save throgh UPDATE statement). |
Did you mean "open text in an external editor"? |
Yes. It's the simpliest way (rather than providing a built-in editor like MS SQL Management Studio does). |
@ansgarbecker I think valid this suggestion. So I think that we could make it available on Preferences to be an alternative to the default Text Editor (the It could works like the Filezilla do: when you open some file to edit, it creates a temporary file with that content, and if you modify it, the app will ask if you wants to save changes. In this way, we just should take care about two situations:
|
@YetAnotherRussian - some things you might not have noticed:
Two things which would help here most in my eyes:
|
Hm... I thinks that an external editor seems better in general way. I could just open an image to Photoshop, save and update the binary content, for instance. It could be done? |
I think we're about to lose the point of the initial reporter here, which only asked for
Anyway, that external app thing is a nice idea, but should probably have its own ticket. |
Oh, you are right at this point. So based on current ticket, I think that supports specific language markup will give to HeidiSQL one more responsability that goes beyond of to be a database manager. And maybe this feature is very public specific at time. So I think that the best solution here is close this ticket while I write a new ticket about the external editor support. |
This is how it looks like after some hours I spent on it, replacing the standard memo with a mighty TSynMemo: There are quite a few other highlighters, e.g. for JSON, HTML, PHP, even for TeX and ZPL.
|
…th a TSynMemo. And provide all supported highlighters in a drop-down, remembering the previously selected highlighter.
…time. Not sure why I moved that in 2015. * support find/replace using our self baken dialog * fix non-working shortcuts for find/replace actions
…t' has not been expanded because unit 'System.Types' is not specified in USES list
… and make them available in text editor
…ppSettings.SessionPath := GetRegKeyTable, indirectly by TAppSettings.PrepareRegistry
I think I can safely consider this as done. The only doable thing which might now be missing is the highlighter customizations. I will probably do that in a future commit. Apart from that, there are some enhancements here I didn't even expect:
|
One additional thing to note: the language selector is restored for edited columns in the data tab, but not in the query tabs (the query tab columns don't have unique identifiers which could be used to identify them the next time) |
…og, when query result is non editable
… SQL highlighter when copying from grid text editor
…000/verysimplexml to reformat XML in grid cells. Also, auto-disable slow wordwrap in editor if text is > 1M large
Expected behavior
Built-in XML viewer or show as a link (for system external viewer) or tooltip with textarea style (with margins and line breaks)
Current behavior
Veeeery long tooltip w/o line breaks. It also has display timeout
Steps to reproduce (use case)
Context
New session (MS SQL), "▻Query" tab(s)
Detailed screenshots:


The text was updated successfully, but these errors were encountered: