Re: position of the comment character

Joao Miguel Ferreira <[email protected]>
Newsgroups gmane.comp.kde.devel.kwrite
Message-ID <CALyyT7S448kLnA23R80R+kPvLa6ttg38GQuRd2J-q=8OY54Kog@mail.gmail.com>
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 <[email protected]> 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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.