Hi.
I wish to add syntax highlighting support for YAML and I've performed some effort in this area. Here is the patch with my try. But highlighting still doesn't work. What have I missed? Please, help ;)
On Fri, 21 Nov 2008 21:30:12 +0400 "Walery Studennikov" despairr@gmail.com wrote:
I wish to add syntax highlighting support for YAML and I've performed some effort in this area. Here is the patch with my try.
Is this support for language described here? http://en.wikipedia.org/wiki/YAML
Cheers, Frank
2008/11/21 Frank Lanitz frank@frank.uvena.de:
On Fri, 21 Nov 2008 21:30:12 +0400 "Walery Studennikov" despairr@gmail.com wrote:
I wish to add syntax highlighting support for YAML and I've performed some effort in this area. Here is the patch with my try.
Is this support for language described here? http://en.wikipedia.org/wiki/YAML
Yes, sure.
On Fri, 21 Nov 2008 21:30:12 +0400, "Walery Studennikov" despairr@gmail.com wrote:
Hi.
I wish to add syntax highlighting support for YAML and I've performed some effort in this area. Here is the patch with my try. But highlighting still doesn't work. What have I missed? Please, help ;)
See the attached patch for a more complete version. You missed basic changes in src/highlighting.c.
Please note that the attached patch is made from GIT, so you need to apply it with: patch -p1 < /path/to/geany_yaml_v2.patch
And it's probably easier to revert your local changes before to prevent merge conflicts.
Should we add YAML to Geany? I'm not sure whether it is widely used and so whether it's reasonable to add yet another filetype for it.
Regards, Enrico
2008/11/23 Enrico Tröger enrico.troeger@uvena.de:
On Fri, 21 Nov 2008 21:30:12 +0400, "Walery Studennikov" despairr@gmail.com wrote:
Hi.
I wish to add syntax highlighting support for YAML and I've performed some effort in this area. Here is the patch with my try. But highlighting still doesn't work. What have I missed? Please, help ;)
See the attached patch for a more complete version. You missed basic changes in src/highlighting.c.
Please note that the attached patch is made from GIT, so you need to apply it with: patch -p1 < /path/to/geany_yaml_v2.patch
Thank you. I've made the final version of the patch -- it is attached.
Should we add YAML to Geany? I'm not sure whether it is widely used and so whether it's reasonable to add yet another filetype for it.
I'm working in web-programming world, where text-based serialization formats are used widely.
And the three pillars of base text formats are: XML, JSON and YAML. The meaning and significance of last two formats are growing.
If we support XML in geany, why we do not support other two of those pillars: JSON and YAML? ;) JSON is mostly: "machine-writeable", but YAML files are very often "human-writeable" and it is important to have convenient editor for them.
And I'm sure thet geany is convenient (and should be convenient) not only for "low-level" languages and "low-level" applications, but also for scripting languages and scripting languages text-based world. For example I use geany for working with large Perl-based project with heavy usage of JSON and YAML.
2008/11/24 Walery Studennikov despairr@gmail.com:
2008/11/23 Enrico Tröger enrico.troeger@uvena.de:
Should we add YAML to Geany? I'm not sure whether it is widely used and so whether it's reasonable to add yet another filetype for it.
I'm working in web-programming world, where text-based serialization formats are used widely.
And the three pillars of base text formats are: XML, JSON and YAML. The meaning and significance of last two formats are growing.
If we support XML in geany, why we do not support other two of those pillars: JSON and YAML? ;) JSON is mostly: "machine-writeable", but YAML files are very often "human-writeable" and it is important to have convenient editor for them.
And I'm sure thet geany is convenient (and should be convenient) not only for "low-level" languages and "low-level" applications, but also for scripting languages and scripting languages text-based world. For example I use geany for working with large Perl-based project with heavy usage of JSON and YAML.
So, when we should we add YAML support to Geany? ;)
Hi ;)
On Wed, 26 Nov 2008 11:53:28 +0400 "Walery Studennikov" despairr@gmail.com wrote:
2008/11/24 Walery Studennikov despairr@gmail.com:
2008/11/23 Enrico Tröger enrico.troeger@uvena.de:
Should we add YAML to Geany? I'm not sure whether it is widely used and so whether it's reasonable to add yet another filetype for it.
I'm working in web-programming world, where text-based serialization formats are used widely.
And the three pillars of base text formats are: XML, JSON and YAML. The meaning and significance of last two formats are growing.
If we support XML in geany, why we do not support other two of those pillars: JSON and YAML? ;) JSON is mostly: "machine-writeable", but YAML files are very often "human-writeable" and it is important to have convenient editor for them.
And I'm sure thet geany is convenient (and should be convenient) not only for "low-level" languages and "low-level" applications, but also for scripting languages and scripting languages text-based world. For example I use geany for working with large Perl-based project with heavy usage of JSON and YAML.
So, when we should we add YAML support to Geany? ;)
Thanks for your patch. I guess Enrico will have a look onto it as soon as he is back online again. He currently got some issues with his local ISP
Rrgards, Frank
On Mon, 24 Nov 2008 08:07:43 +0400, "Walery Studennikov" despairr@gmail.com wrote:
2008/11/23 Enrico Tröger enrico.troeger@uvena.de:
On Fri, 21 Nov 2008 21:30:12 +0400, "Walery Studennikov" despairr@gmail.com wrote:
Hi.
I wish to add syntax highlighting support for YAML and I've performed some effort in this area. Here is the patch with my try. But highlighting still doesn't work. What have I missed? Please, help ;)
See the attached patch for a more complete version. You missed basic changes in src/highlighting.c.
Please note that the attached patch is made from GIT, so you need to apply it with: patch -p1 < /path/to/geany_yaml_v2.patch
Thank you. I've made the final version of the patch -- it is attached.
Should we add YAML to Geany? I'm not sure whether it is widely used and so whether it's reasonable to add yet another filetype for it.
I'm working in web-programming world, where text-based serialization formats are used widely.
And the three pillars of base text formats are: XML, JSON and YAML. The meaning and significance of last two formats are growing.
If we support XML in geany, why we do not support other two of those pillars: JSON and YAML? ;) JSON is mostly: "machine-writeable", but YAML files are very often "human-writeable" and it is important to have convenient editor for them.
And I'm sure thet geany is convenient (and should be convenient) not only for "low-level" languages and "low-level" applications, but also
The only low-level language we support is ASM. Even C is a high-level programming language although many people seem not wanting to believe this :). Anyway, I got your point.
I think I add the filetype tomorrow or at the weekend.
Regards, Enrico
On Mon, 24 Nov 2008 08:07:43 +0400, "Walery Studennikov" despairr@gmail.com wrote:
2008/11/23 Enrico Tröger enrico.troeger@uvena.de:
On Fri, 21 Nov 2008 21:30:12 +0400, "Walery Studennikov" despairr@gmail.com wrote:
Hi.
I wish to add syntax highlighting support for YAML and I've performed some effort in this area. Here is the patch with my try. But highlighting still doesn't work. What have I missed? Please, help ;)
See the attached patch for a more complete version. You missed basic changes in src/highlighting.c.
Please note that the attached patch is made from GIT, so you need to apply it with: patch -p1 < /path/to/geany_yaml_v2.patch
Thank you. I've made the final version of the patch -- it is attached.
And it was again missing many parts of v2. Anyway, I just committed my version to SVN. If anything is missing, just tell me.
Regards, Enrico
2008/11/29 Enrico Tröger enrico.troeger@uvena.de:
Thank you. I've made the final version of the patch -- it is attached.
And it was again missing many parts of v2. Anyway, I just committed my version to SVN. If anything is missing, just tell me.
Yes, it works. Thank you!
On Sun, 23 Nov 2008 16:24:09 +0100 Enrico Tröger enrico.troeger@uvena.de wrote:
Should we add YAML to Geany? I'm not sure whether it is widely used and so whether it's reasonable to add yet another filetype for it.
I think we could add it. When adding filetypes from plugins is ready we could move out some of the less common filetypes into an 'Extra Filetypes' plugin.
Regards, Nick