Page 1 of 1

Editing YAML?

Posted: Fri Jul 13, 2012 8:26 pm
by robn86
So I'm new to Open RA and YAML editing so maybe I dont understand this fully. I'm trying to edit the yaml files in notepad++ but all the text is red when I open them and that cant be normal. What program does everyone else use to edit?

Posted: Fri Jul 13, 2012 9:20 pm
by Matt
I don't use Windows, but I just googled your question and found a possible answer
This is default behavior for Notepad++. You can add .yaml extension via Settings>Style Configurator>YAML>User ext.; add ".yaml" there.
at http://stackoverflow.com/questions/2235 ... dows-users

Posted: Mon Jul 16, 2012 2:01 pm
by robn86
Unfortunately that posting doesent really help. I had already switched the tab to space like it said and nothing. Could it be because the files are .yaml and not. Yml? I did add .yaml recognition in notepad++ though. Can someone just tell me step by step what theu do to open and edit yaml? This sbouldent be that difficult.

Posted: Mon Jul 16, 2012 3:33 pm
by Matt
Switching tab to space will break OpenRA as Chrisf already told you. It seems that the original YAML specification uses spaces, OpenRA uses tabs so Notepad++ thinks it is invalid YAML which it is not (for OpenRA). Have a look at http://sourceforge.net/apps/mediawiki/n ... tion_Files to customize your syntax highlighting.

I use http://kate-editor.org/ which works great after I configured it to use real tabs instead of multiple spaces for YAML files when I press TAB.

Posted: Mon Jul 16, 2012 4:20 pm
by robn86
that helped a lot. thanks. im starting to figure this out. i need to find ojt how to syntaxhighlight for yaml now

Posted: Mon Jul 16, 2012 4:33 pm
by robn86
i changed the language to yaml so its not in all red anymore. now its all black. is this normal? i o.ly ask cause i see pasted code elswhere thats multiple colors. i think i need to research syntx customizing.

Posted: Mon Jul 16, 2012 6:14 pm
by robn86
i think notepad++ kinda sucks if its this difficult to open and edit a text file. im not a programmer just a ra player. so this is mostly foreign to me. can anyone at all tell me exactly what program and procedure you use to open and edit a yaml?

wiki

Posted: Tue Jul 17, 2012 4:10 am
by zypres1
Some info here, slighly outdated: https://github.com/OpenRA/OpenRA/wiki/Mapping
Also come to IRC for more help...
Download other maps from resources/forum to learn more...