jmzambon / libreoffice-code-highlighter

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

Add some kind of preview, perhaps even custom color selection #20

Closed sdasda7777 closed 5 months ago

sdasda7777 commented 1 year ago

Would it be possible to show preview of the Highlight Style (colors, mainly) somewhere? (There is noticeable empty space on the right)

I assume I must not be the only one who has no clue what the difference between borland, lovelace and vim is, and just going through all the styles until I find one that is not terrible seems like uneffective usage of my time.

Having an option to modify the styles would be nice too, actually, since the style may be almost perfect, but perhaps might look nicer with strings highlighted in different color, or what have you.

image

jmzambon commented 1 year ago

Hi, This could be an interesting enhancement. But I need to think about it: a solution is not obvious, and probably not easy to implement... Meanwhile you can have a look here: https://pygments.org/styles.

sdasda7777 commented 1 year ago

Meanwhile you can have a look here: https://pygments.org/styles.

I see, that's definitely helpful, thanks. Adding this link to the main page and possibly to the extension somehow would be a big improvement, but I still think it would be better to be able to use the extension fully without having to reference an external site.

jmzambon commented 1 year ago

Hi,

I've finally found a solution and implemented an in-document preview. Please see the last release (v2.5.0).