Page 1 of 2

UDL (User-Defined Language) for Notepad++

Posted: Wed Jan 23, 2013 1:05 am
by qsswin
I had no idea whatsoever where to put this thing, so I decided to drop it here:

I made a UDL (User-Defined Language) for Notepad++ based the scripting language that FreeOrion uses. (Actually, for old versions, it's for the UDL 2.0 Notepad++ plugin, but in recent versions, that is part of the official program.) It should include all currently implemented values, statistics, conditions, effects, logical keywords, operators, and miscellaneous "glue" keywords. To use it, open the "Language", choose the "Define Your Language..." option, and click import and import the file. If you dislike the colors, you can change them from the many "styler" dialogs throughout the menus(see http://udl20.weebly.com/ for more information).

It probably isn't all that likely anybody will find this useful, but I hope somebody does! Even if nobody else does, I will.

(It is in a .zip since the forum software considers xml files possible attack vectors, apparently. Of course, downloading a zip is considerably less secure than downloading an xml file...)

Re: How to Help with Scripting

Posted: Wed Jan 23, 2013 6:20 am
by Bigjoe5
qsswin wrote:I had no idea whatsoever where to put this thing, so I decided to drop it here:
A new thread probably would have been appropriate.
qsswin wrote:I made a UDL (User-Defined Language) for Notepad++ based the scripting language that FreeOrion uses... It probably isn't all that likely anybody will find this useful, but I hope somebody does! Even if nobody else does, I will.
I was considering doing that myself actually. I'll have to tweak it some to suit my style, but I think I'll definitely use this.

Re: UDL (User-Defined Language) for Notepad++

Posted: Wed Jan 23, 2013 10:21 am
by em3
Maybe the language should get an official name... FreeOrionEffectsScript (FOES) ;)?

Re: UDL (User-Defined Language) for Notepad++

Posted: Wed Jan 23, 2013 3:13 pm
by Vezzra
em3 wrote:Maybe the language should get an official name... FreeOrionEffectsScript (FOES) ;)?
FreeOrionContentScript (FOCS) would be more accurate I think ;)

Re: UDL (User-Defined Language) for Notepad++

Posted: Wed Jan 23, 2013 3:43 pm
by em3
I might have suggested a humorous name, but in essence a name would be helpful. If someone were to, say, create an emacs mode, effects-mode (taking cue from qsswin's file name) would sound too generic, in my opinion. :)

Re: UDL (User-Defined Language) for Notepad++

Posted: Wed Jan 23, 2013 6:49 pm
by Geoff the Medio
Content Script instead of Effects Script might be more accurate, as the format does more than just effects.

Re: UDL (User-Defined Language) for Notepad++

Posted: Wed Jan 23, 2013 7:13 pm
by Vezzra
How does FOCOS sound? (_F_ree_O_rion_CO_ntent_S_cript)

Re: UDL (User-Defined Language) for Notepad++

Posted: Wed Jan 23, 2013 7:15 pm
by Geoff the Medio
Vezzra wrote:How does FOCOS sound? (_F_ree_O_rion_CO_ntent_S_cript)
Pretty lame...

Re: UDL (User-Defined Language) for Notepad++

Posted: Wed Jan 23, 2013 7:20 pm
by Vezzra
Geoff the Medio wrote:
Vezzra wrote:How does FOCOS sound? (_F_ree_O_rion_CO_ntent_S_cript)
Pretty lame...
:lol: Oh well, it was worth a try... ;)

Re: UDL (User-Defined Language) for Notepad++

Posted: Thu Jan 24, 2013 9:35 am
by em3
FOrCS
OrCS
FOrC
OrC
FOS
FOC

Re: UDL (User-Defined Language) for Notepad++

Posted: Thu Jan 24, 2013 11:54 pm
by qsswin
I'm glad it was useful!

As for a name, how about FreeOrion Content/Ui Scripts, or FOCUS?

Re: UDL (User-Defined Language) for Notepad++

Posted: Fri Jan 25, 2013 8:47 am
by em3
I like that, but it could lead to some hilarious statements (how to change a planet's focus in FOCUS? ;)).

Re: UDL (User-Defined Language) for Notepad++

Posted: Fri Jan 25, 2013 8:52 am
by yandonman
See previous
Pretty lame...
How about FOScript. Fo'shizzle.

... see previous ... :P
Pretty lame...

Re: UDL (User-Defined Language) for Notepad++

Posted: Fri Jan 25, 2013 11:15 am
by Bigjoe5
em3 wrote:I like that, but it could lead to some hilarious statements (how to change a planet's focus in FOCUS? ;)).
Actually, in that context IMO, FOCUS makes even more sense, and is less silly-sounding than FOrCS. We could also just drop the caps and call it "Focus".

Re: UDL (User-Defined Language) for Notepad++

Posted: Sun Jan 27, 2013 12:08 am
by eleazar
A name would be useful.

I think something distinct would be more beneficial than a clever acronym. A search for "focs" or whatever would work much better than for "focus"