Page 1 of 1

All those mysterious extra tabs

Posted: Sun Jul 27, 2014 11:32 pm
by MatGB
So, I'm working on a patch, and it involves digging out code I wrote ages ago but never completed, copying it into a current techs.txt which regularly involves copying lines of code, adding extra lines, etc.

And I noticed, whenever I hit return at the end of an indented line, Notepad++ handily indents the next line to keep the code coherent. What I'd never noticed until now was it does it using tabs, not the 4 spaces preferred for FO.

All those many many times Geoff has asked me to redo a patch and remove the tabs, and I've been confused where they came from, it was N++ being helpful. And now I've noticed it, there's a handy setting in options to check a box to keep it being helpful but to replace tabs with 4 spaces.

This is good. Hopefully, Geoff won't need to get me to delete lots of extraneous tabs from now on. I'll undoubtedly start getting something else wrong, but, y'know, progress.

Re: All those mysterious extra tabs

Posted: Mon Jul 28, 2014 9:32 am
by Vezzra
MatGB wrote:I'll undoubtedly start getting something else wrong, but, y'know, progress.
Well, three steps forward and two steps back is still one step forward ;)

Re: All those mysterious extra tabs

Posted: Mon Jul 28, 2014 11:07 am
by Geoff the Medio
Komodo Edit has something similar...

Re: All those mysterious extra tabs

Posted: Mon Jul 28, 2014 3:19 pm
by MatGB
I keep meaning to give Komodo a go at some point but I've got N++ setup the way I like it ATM and I'm used to it, but yeah, one of those simple-when-you-know answers.

Re: All those mysterious extra tabs

Posted: Tue Jul 29, 2014 9:09 pm
by Dilvish
Also, qsswin kindly shared a FOCS User-Defined-Language file for Notepad++, which should facilitate writing well-formed/well-formatted content scripts. It probably could use an update by now, though.

Our Effects page should probably say something about editor requirements & suggestions, and a link from there to qsswin's thread would probably also be helpful.

Re: All those mysterious extra tabs

Posted: Tue Jul 29, 2014 9:31 pm
by MatGB
Oh, that might be useful, assuming I can get it to work.

Wiki. That reminds me, wanted to update the quickstart play guide for 0.4.4 when we were close to ready for release (it's currently for 0.4.0, horribly outdated). Who do I talk to to go edit that, Geoff?

Re: All those mysterious extra tabs

Posted: Tue Jul 29, 2014 9:55 pm
by Geoff the Medio
MatGB wrote:Who do I talk to to go edit that, Geoff?
You should have recently received an email about a wiki account.

Re: All those mysterious extra tabs

Posted: Tue Jul 29, 2014 9:59 pm
by MatGB
Yup, thanks, I'll try to remember to play through a pure default game with RC1 and write up a basic strategy guide for it, based on the existing one.