[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: Re: Identation problem
From: Dominik Haumann <dhaumann () kde ! org>
Date: 2013-05-10 21:53:29
Message-ID: 2027200.Es2CkBPZPN () eriador
[Download RAW message or body]
Hi Dmiry,
On Friday, 3. May 2013 16:02:41 Dmitri Koulikoff wrote:
> On Friday, May 03, 2013, Dominik Haumann wrote:
>
> Hello, Dominik.
>
> Thank you for you answer. But it is not I asked about.
> Of course I know about document variables. But having two dozen projects
> with up to 1000 files makes it annoying to put settings into each file. So
> my first quesion was rather how to setup kate globally to behave according
> to the file type. As it was possible in KDE3 I conclude it should be
> possible in KDE' as well.
Gerald gave you the solution already below: Change the file types, then it's
globally.
> As in user interface this operation obviously is not possible, maybe it
It is, see below.
> can be done via editing config file. And should it be reported as a bug?
> The second aspect is I was rather asking about tab-indents and tab-width
> settings adopted to each file type.
>
> And my second question was left without answer at all. :-(
>
> Thank you in advance.
>
> DH> On Thursday, May 02, 2013 23:37:11 Gerald Senarclens de Grancy wrote:
> DH> > Hi,
> DH> >
> DH> > > I have a project that I manage in one kate session. The project has
> DH> > > an .xml
> DH> > > file and some .rb files. The first one uses tab for identation and 4
> DH> > > spaces
> DH> > > shift, while the latters use 2 spaces for identation.
> DH> > >
> DH> > > How to configure kate for this? I can not?
> DH> >
> DH> > try settings->configure kate->Open/Save->Modes and Filetypes
> DH> > there you can add custom modelines per filetype in the 'variables'
> DH> > field;
^^^ There you go.
Greeings,
Dominik
> DH> Another way is to put these variables directly as comments at the end of
> DH> the files. This is usually the way to go.
> DH> xml: <!-- kate: indent-width 4; -->
> DH> rb: # kate: indent-width 2;
> DH>
> DH> Greetings
> DH>
> DH> > > And another question. There is a lot of embedded identation types.
> DH> > > How to edit them?
> DH> >
> DH> > the indentation scripts are in part/script/data/indentation in Kate's
> DH> > source. There's no configuration interface for them. Try to upgrade to
> DH> > the current version of Kate - a lot has been fixed/ improved since
> DH> > 3.8.
> DH> > Regards, g
> DH> >
> DH> > --
> DH> > Gerald Senarclens de Grancy
> DH> > http://senarclens.eu/~gerald/
> DH> > Open minds on open source!
> DH> > _______________________________________________
> DH> > KWrite-Devel mailing list
> DH> > KWrite-Devel@kde.org
> DH> > https://mail.kde.org/mailman/listinfo/kwrite-devel
_______________________________________________
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