position of the comment character

Joao Miguel Ferreira joao.miguel.c.ferreira at gmail.com
Thu Aug 12 16:43:27 BST 2021


Hi Sven,

Thank you for the clarification.

Where can I find a sample of the ruby.xml file ?
Where should I place it (on my filesystem) after removing the field you
mentioned ?

thx
Joao


On Thu, Aug 12, 2021 at 4:04 PM Sven Brauch <mail at svenbrauch.de> wrote:

> Hi,
>
> On 8/12/21 3:37 PM, Joao Miguel Ferreira wrote:
> > now, my issue: on Debian 10 / kwrite 18.08, when I press "CTRL-D" the
> > comment character (#, for perl and ruby) appears at position 0 of the
> > lines to be commmented. on Debian 11 / kwrite 20.12 the comment
> > character (# for ruby) appears at the position of the 1st non-space
> > position.
>
> This is specified in the syntax highlighting files for each type of
> comment and for each language. For example, ruby.xml has
>
> <comment name="singleLine" start="#" position="afterwhitespace"/>
>
> This was specifically changed by Nibaldo González about a year ago. I'll
> CC him, maybe he can explain in more detail.
>
> If you want the old behaviour back, you can locally copy the ruby.xml
> file and remove the position="afterwhitespace".
>
> Greetings,
> Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20210812/12312f59/attachment.htm>


More information about the KWrite-Devel mailing list