jmzambon / libreoffice-code-highlighter

Code snippet highlighter for LibreOffice.
https://extensions.libreoffice.org/en/extensions/show/5814
Other
79 stars 5 forks source link

Use Character styles instead of Direct styles #19

Closed sdasda7777 closed 1 year ago

sdasda7777 commented 1 year ago

Hey, would it be possible to modify the code to use Character styles instead of Direct styles?

I believe when using Direct styles and saving to .fodt, all Direct styles are assigned random unique names, which makes it much harder to properly version with git, whereas all usages of a Character style use the same name.

jmzambon commented 1 year ago

Hi, sorry to answer so late, I didn't receive any notification of your post. What if you check the option "Use character styles in Writer" from de dialog?

sdasda7777 commented 1 year ago

Ah, you're right, I completely missed that. Amazing, thanks!

flywire commented 1 year ago

See also #5 #8