Hello all,
I have started creating custom content for the FOSS game "Battle for Wesnoth" [1]. I have been using Geany for editing the files, which are written in a custom markup language. Does anyone else develop for this, and if so, does anyone have custom filetypes for the markup language? Otherwise, I'll have to get cracking on it myself.
Thanks, Jon
Hi Jon,
On Tue, 16 Nov 2010 10:17:15 -0500 Jonathan Daily biomathjdaily@gmail.com wrote:
Hello all,
I have started creating custom content for the FOSS game "Battle for Wesnoth" [1]. I have been using Geany for editing the files, which are written in a custom markup language. Does anyone else develop for this, and if so, does anyone have custom filetypes for the markup language? Otherwise, I'll have to get cracking on it myself.
I don't know of anybody who is doing this. Is this some kind of XML you are hacking there?
Cheers, Frank
To be honest, I wish it were just a specification of XML. It, however, seems to use a combination of XML-like tags and config/ini file syntax, such as:
[section] option= value other_option= value2 name_option= "a string" [nested_section] image= "/relative/path/to/file.png" [/nested_section] [/section]
On Tue, Nov 16, 2010 at 11:20 AM, Frank Lanitz frank@frank.uvena.de wrote:
Hi Jon,
On Tue, 16 Nov 2010 10:17:15 -0500 Jonathan Daily biomathjdaily@gmail.com wrote:
Hello all,
I have started creating custom content for the FOSS game "Battle for Wesnoth" [1]. I have been using Geany for editing the files, which are written in a custom markup language. Does anyone else develop for this, and if so, does anyone have custom filetypes for the markup language? Otherwise, I'll have to get cracking on it myself.
I don't know of anybody who is doing this. Is this some kind of XML you are hacking there?
Cheers, Frank -- http://frank.uvena.de/en/
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Tue, 16 Nov 2010 11:25:25 -0500 Jonathan Daily biomathjdaily@gmail.com wrote:
To be honest, I wish it were just a specification of XML. It, however, seems to use a combination of XML-like tags and config/ini file syntax, such as:
[section] option= value other_option= value2 name_option= "a string" [nested_section] image= "/relative/path/to/file.png" [/nested_section] [/section]
Well, looks really weird. Unfortunately I don't know of any lexxer which might can handle this. Did you check already on Scintilla project, whether there is maybe some lexer available for this -- however this is called?
Cheers, Frank
Good call. I'll see if one is there sometime tonight.
On Tue, Nov 16, 2010 at 12:31 PM, Frank Lanitz frank@frank.uvena.de wrote:
On Tue, 16 Nov 2010 11:25:25 -0500 Jonathan Daily biomathjdaily@gmail.com wrote:
To be honest, I wish it were just a specification of XML. It, however, seems to use a combination of XML-like tags and config/ini file syntax, such as:
[section] option= value other_option= value2 name_option= "a string" [nested_section] image= "/relative/path/to/file.png" [/nested_section] [/section]
Well, looks really weird. Unfortunately I don't know of any lexxer which might can handle this. Did you check already on Scintilla project, whether there is maybe some lexer available for this -- however this is called?
Cheers, Frank
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Tue, 16 Nov 2010 13:08:41 -0500 Jonathan Daily biomathjdaily@gmail.com wrote:
Good call. I'll see if one is there sometime tonight.
I'm exited :)
No luck, although I did encounter a further complication: the markup language accepts embedded lua scripts. I think this lexer is beyond my current abilities, especially considering how little C I know. What gives a relatively decent coloring scheme, though, is config files. Does anyone know how to get them to ignore indentation?
On Tue, Nov 16, 2010 at 2:31 PM, Frank Lanitz frank@frank.uvena.de wrote:
On Tue, 16 Nov 2010 13:08:41 -0500 Jonathan Daily biomathjdaily@gmail.com wrote:
Good call. I'll see if one is there sometime tonight.
I'm exited :)
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Wed, 17 Nov 2010 13:53:10 -0500 Jonathan Daily biomathjdaily@gmail.com wrote:
No luck, although I did encounter a further complication: the markup language accepts embedded lua scripts. I think this lexer is beyond my current abilities, especially considering how little C I know. What gives a relatively decent coloring scheme, though, is config files. Does anyone know how to get them to ignore indentation?
In your user filetypes.conf, try:
[lexer_properties] lexer.props.allow.initial.spaces=1
Nick
Worked like a charm, thanks. Is there documentation for what can be put into [lexer_properties], or is that a filetype specific parameter?
On Thu, Nov 18, 2010 at 10:08 AM, Nick Treleaven < nick.treleaven@btinternet.com> wrote:
On Wed, 17 Nov 2010 13:53:10 -0500 Jonathan Daily biomathjdaily@gmail.com wrote:
No luck, although I did encounter a further complication: the markup language accepts embedded lua scripts. I think this lexer is beyond my current abilities, especially considering how little C I know. What gives
a
relatively decent coloring scheme, though, is config files. Does anyone
know
how to get them to ignore indentation?
In your user filetypes.conf, try:
[lexer_properties] lexer.props.allow.initial.spaces=1
Nick _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Fri, 19 Nov 2010 08:04:46 -0500 Jonathan Daily biomathjdaily@gmail.com wrote:
Worked like a charm, thanks. Is there documentation for what can be put into [lexer_properties], or is that a filetype specific parameter?
It's determined by the Scintilla lexer for the filetype, and apart from the source code I don't think there's any comprehensive list of properties anywhere.
Nick
On Fri, 19 Nov 2010 13:09:35 +0000 Nick Treleaven nick.treleaven@btinternet.com wrote:
On Fri, 19 Nov 2010 08:04:46 -0500 Jonathan Daily biomathjdaily@gmail.com wrote:
Worked like a charm, thanks. Is there documentation for what can be put into [lexer_properties], or is that a filetype specific parameter?
It's determined by the Scintilla lexer for the filetype, and apart from the source code I don't think there's any comprehensive list of properties anywhere.
Maybe it would be a nice project for somebody to add a list of this hacks to documentation.
Cheers, Frank
On Sun, 21 Nov 2010 12:51:05 +0100 Frank Lanitz frank@frank.uvena.de wrote:
On Fri, 19 Nov 2010 13:09:35 +0000 Nick Treleaven nick.treleaven@btinternet.com wrote:
On Fri, 19 Nov 2010 08:04:46 -0500 Jonathan Daily biomathjdaily@gmail.com wrote:
Worked like a charm, thanks. Is there documentation for what can be put into [lexer_properties], or is that a filetype specific parameter?
It's determined by the Scintilla lexer for the filetype, and apart from the source code I don't think there's any comprehensive list of properties anywhere.
Maybe it would be a nice project for somebody to add a list of this hacks to documentation.
You can grep them: egrep -o 'GetProperty\w*("([^"]+)"[^)]+)' scintilla/Lex*.cxx
I've now updated the manual with this info.
Nick
Am 22.11.2010 13:46, schrieb Nick Treleaven:
On Sun, 21 Nov 2010 12:51:05 +0100 Frank Lanitz frank@frank.uvena.de wrote:
On Fri, 19 Nov 2010 13:09:35 +0000 Nick Treleaven nick.treleaven@btinternet.com wrote:
On Fri, 19 Nov 2010 08:04:46 -0500 Jonathan Daily biomathjdaily@gmail.com wrote:
Worked like a charm, thanks. Is there documentation for what can be put into [lexer_properties], or is that a filetype specific parameter?
It's determined by the Scintilla lexer for the filetype, and apart from the source code I don't think there's any comprehensive list of properties anywhere.
Maybe it would be a nice project for somebody to add a list of this hacks to documentation.
You can grep them: egrep -o 'GetProperty\w*("([^"]+)"[^)]+)' scintilla/Lex*.cxx
I've now updated the manual with this info.
Cool.
Cheers, Frank