jmzambon / libreoffice-code-highlighter

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

Line numbers zero padding #21

Closed sdasda7777 closed 1 year ago

sdasda7777 commented 1 year ago

Hi, would it be possible to add a feature to pad line numbers with zeroes?

I think either to fixed number of digits or dynamically to the largest number of digits used would be fine, but the possibility of choosing between these two would be absolutely perfect.

jmzambon commented 1 year ago

Hi,

Thank for suggesting. I'll have a look on this.

jmzambon commented 1 year ago

Could you try the last uploaded codehighlighter2.oxt? You'll have to input 0 in the new 'Padding symbol' option (button [More...] of the dialog box). Thanks.

sdasda7777 commented 1 year ago

Hey, it works great, but I had trouble finding it in the settings to be honest 😅 Could you maybe change the label to say "Line number padding", or something like that? 😄

jmzambon commented 1 year ago

The line numbering options use to exist before your demand. I've just added the adding symbol option. So the section is not only concerned with number padding.

sdasda7777 commented 1 year ago

I'm not sure I understand. Can you explain what else it does except for the line number padding?

jmzambon commented 1 year ago

The "line numbering" section of the options tab allows to:

sdasda7777 commented 1 year ago

I see, yes 😅 I was just trying to point out that it wasn't completely clear to me that "Padding symbol" means the line number padding symbol, even though I knew the feature is there (which most people won't know), so some rewording of the label might be possible to clear this up 😅

jmzambon commented 1 year ago

The option lays in the section "Line numbering", so it was obvious to me. I'll think about a better name, ideally no too long... :-)