FreeOrion

Forums for the FreeOrion project
It is currently Mon Dec 11, 2017 7:47 am

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Sun Jul 27, 2014 11:32 pm 
Offline
Creative Contributor
User avatar

Joined: Fri Jun 28, 2013 11:45 pm
Posts: 3286
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.

_________________
Mat Bowles

Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.


Top
 Profile  
 
PostPosted: Mon Jul 28, 2014 9:32 am 
Offline
Release Manager, Design
User avatar

Joined: Wed Nov 16, 2011 12:56 pm
Posts: 4284
Location: Sol III
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 ;)


Top
 Profile  
 
PostPosted: Mon Jul 28, 2014 11:07 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12039
Location: Munich
Komodo Edit has something similar...


Attachments:
File comment: tabs or spaces?
komodo_edit_tabs_spaces.png
komodo_edit_tabs_spaces.png [ 50.66 KiB | Viewed 1667 times ]
Top
 Profile  
 
PostPosted: Mon Jul 28, 2014 3:19 pm 
Offline
Creative Contributor
User avatar

Joined: Fri Jun 28, 2013 11:45 pm
Posts: 3286
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.

_________________
Mat Bowles

Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.


Top
 Profile  
 
PostPosted: Tue Jul 29, 2014 9:09 pm 
Offline
AI Lead, Programmer
User avatar

Joined: Sat Sep 22, 2012 6:25 pm
Posts: 4390
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.

_________________
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0


Top
 Profile  
 
PostPosted: Tue Jul 29, 2014 9:31 pm 
Offline
Creative Contributor
User avatar

Joined: Fri Jun 28, 2013 11:45 pm
Posts: 3286
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?

_________________
Mat Bowles

Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.


Top
 Profile  
 
PostPosted: Tue Jul 29, 2014 9:55 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12039
Location: Munich
MatGB wrote:
Who do I talk to to go edit that, Geoff?
You should have recently received an email about a wiki account.


Top
 Profile  
 
PostPosted: Tue Jul 29, 2014 9:59 pm 
Offline
Creative Contributor
User avatar

Joined: Fri Jun 28, 2013 11:45 pm
Posts: 3286
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.

_________________
Mat Bowles

Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group