From kwrite-devel Fri Nov 28 20:25:45 2014 From: Matthew Woehlke Date: Fri, 28 Nov 2014 20:25:45 +0000 To: kwrite-devel Subject: Re: A doubt on language-specific indentation settings Message-Id: X-MARC-Message: https://marc.info/?l=kwrite-devel&m=141720637507504 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 ():' directive applies only to files >> matching '', where '' 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