Closed kompilainenn closed 2 months ago
Hi,
I'm not sure at all to understand what you describe. Would it be possible to provide a real life example, or a sort of mock up? Thanks.
I'm not sure at all to understand what you describe. Would it be possible to provide a real life example, or a sort of mock up? Thanks.
Ok, I added the ODT file with some examples of source code in different tables Example for Code highlighting issue.odt
So, now I want to highlight all these code examples for only one action using your extension.
Let me show you how it can look in the dialog or sub-dialog:
Thank you very much! This is highly specific. What about a dedicated macro, shipped with the extension? Or an advanced option to show such a specific button? I must think about this... If you have any arguments they would be welcome.
If you have any arguments they would be welcome.
Hi. I had a discussion about this feature with my friend who is a LibreOffice developer and he gave me another idea: to highlight only text that has some user selected Paragraph style! In this case we don't need tables and its cells as conditions, we will have in the document many text blocks that will have the same Paragraph style, then we just select the style in drop-down list in your dialog and then click "Highlight all text with selected style" button (for example).
Let me show you the another mock-up for this variant:
What do you think?
This is a top idea. I was thinking about something similar, reusing the character style that one can define as base style for the option "use character styles" (see More... button). But paragraph style sounds better. I'll try to work on this as soon as possible.
Hi,
I have uploaded a beta version. Would you have some time to test it on some of your files? It should work either with text tables, text frames and normal plain texts. Only for Writer obviously... Thanks a lot.
Now I could install it. Works like a charm! There is only one problem I saw: why error message do we show after highlight ending operation?
May be it should be just a message type window?
Another nitpick: drop-down list with styles should remember selected style inside one user LibreOffice session, what do you think?
Error message is obviously... an error :) . Should be an info box. I was in fact wondering about keeping or not the paragraph style. Remembering it for the current session seems quite evident.
I tested latest OXT variant right now. It works as I expected. A huge thank you! This feature will very useful for me and other writers who write books about programming!
Btw, I have some other ideas and questions for your extension (I can write different issues if you want):
Hi, Thanks for your interest in this extension! About your last comments:
- 'Set background color' checkbox should be named 'Set background color from Style'
For information, that is specified in the tooltip (when you move the pointer over the control).
For information, that is specified in the tooltip (when you move the pointer over the control).
Direct label is more clear I think.
I think we can close this issue as Fixed. Thanks so much!
Add opportunity to highlight all code in user selected row of the all tables in Writer where first (or user selected too) row has some key phrase, for example 'Python listing' or 'C++ listing'. User should have an opportunity to enter that key phrase manually inside the dialog.
The use case here is next: I write some book with many code examples. I want to highlight it all at once just by using some conditions like table's row number with the code example and by entering some key phrase that should be in first row of these tables inside all document.
Thanks for your great extension!