From kwrite-devel Sat Nov 09 12:53:25 2013 From: Jeroen Vuurens Date: Sat, 09 Nov 2013 12:53:25 +0000 To: kwrite-devel Subject: Re: indentation for Latex Message-Id: <527E3045.6000704 () tudelft ! nl> X-MARC-Message: https://marc.info/?l=kwrite-devel&m=138401380820248 I'm very sorry, I'll have to pass, atm I'm really too busy to look into that. On 11/09/2013 12:35 PM, Dominik Haumann wrote: > Hi Jeroen, > > On Friday 08 November 2013 19:12:33 Jeroen Vuurens wrote: >> Hi Guys, >> >> Thanks for the great job on Kate/Kile :) >> >> I've just started using Kile as editor for Latex documents. I rather >> like my editor to support auto-indentation, and created a Kate-script to >> do that. It is rather simple/primitive, but does a >> decent job for structuring the \begin \end and {} blocks, handling >> escaped characters. If you like, you can add it for others to use. > That's very nice, thanks. > > In order to guarantee the indenter does not break over time, we have unit > testing suite. It would be good if you created unit tests as well for the > indenter. To this end, can you please follow http://kate-editor.org/get-it/ > and build Kate from sources. Then, additionally, add the 'latex' indenter to > in tests/indenttest.h: > + void latex_data(); > + void latex(); > > in tests/indenttest.cpp > +void IndentTest::latex_data() > +{ > + getTestData( "latex" ); > +} > + > +void IndentTest::latex() > +{ > + runTest( ExpectedFailures() ); > +} > > And the test data into tests/data/latex/* > Important is the file tests/data/latex/.kateconfig, here you have to specify > Latex Highlighting and the indent-mode latex; > > I've already copied latex.js into part/script/data/indentation, so your > indenter should be there when you git clone the repository. > > Then, please post a patch again :-) > > Greetings, > Dominik _______________________________________________ KWrite-Devel mailing list KWrite-Devel@kde.org https://mail.kde.org/mailman/listinfo/kwrite-devel