[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: Re: A doubt on language-specific indentation settings
From: Christoph Cullmann <cullmann () absint ! com>
Date: 2014-11-29 15:33:40
Message-ID: 1491160252.24747.1417275220728.JavaMail.zimbra () absint ! com
[Download RAW message or body]
Hi,
actually there is
kate-wildcard(*.c;*.h): xxx
and
kate-mimetype(xxx/mimetype): xxx
that should set the variables only for files matching the given wildcard or mimetype.
I agree, that this seems to be under-documented and perhaps it even doesn't work,
we need tests for that :=)
Greetings
Christoph
----- Ursprüngliche Mail -----
> On 2014-11-28 14:52, Andrew Udvare wrote:
> > On 2014-11-28, at 11:21, Matthew Woehlke wrote:
> >> IOW, a 'kate:' directive, which is what we have right now, applies to
> >> all file types. A 'kate (<patterns>):' directive applies only to files
> >> matching '<patterns>', where '<patterns>' works the same as "File
> >> extensions" in the "Modes & Filetypes" options.
> >
> > I would rather see that in a fashion like this:
> >
> > kate (mode=CoffeeScript;mode=YAML): indent-width 2
> > kate (hl=C++;hl=C;hl=PHP): indent-width 4
>
> The main problem with this is that I can imagine it being much more work
> to implement. But if it can be done (and doesn't e.g. get confused by
> HL's with spaces in their names; seems like I've had issues with these
> before), then I think I'd be okay with it.
>
> > Of course, globs can still be a last resort though
>
> Yes, I would be disappointed if globs aren't an option. I've had cases
> where I have essentially a project-specific file type; I'd rather not
> define global file types to deal with these.
>
> --
> Matthew
>
> _______________________________________________
> KWrite-Devel mailing list
> KWrite-Devel@kde.org
> https://mail.kde.org/mailman/listinfo/kwrite-devel
>
--
----------------------------- Dr.-Ing. Christoph Cullmann ---------
AbsInt Angewandte Informatik GmbH Email: cullmann@AbsInt.com
Science Park 1 Tel: +49-681-38360-22
66123 Saarbrücken Fax: +49-681-38360-20
GERMANY WWW: http://www.AbsInt.com
--------------------------------------------------------------------
Geschäftsführung: Dr.-Ing. Christian Ferdinand
Eingetragen im Handelsregister des Amtsgerichts Saarbrücken, HRB 11234
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic