Hi, Yes I'm using the latest svn, but the color schemes were not deleted, I have no syntax highlighting for any of the supported languages.
Regards, Yannis.
Date: Tue, 10 Nov 2009 16:40:02 +0000 From: Nick Treleaven nick.treleaven@btinternet.com Subject: Re: [Geany] Issues adding a new filetype To: geany@uvena.de Message-ID: 20091110164002.edd30196.nick.treleaven@btinternet.com Content-Type: text/plain; charset=US-ASCII
On Tue, 10 Nov 2009 17:25:59 +0100 Yannis Mazzer yannis.mazzer@gmail.com wrote:
I'm using an unusual language at work called NesC, it's a C-based, event-driven language for micro-controller programming.
Some months ago I made everything necessary to have syntax
highlighting
for this language in Geany and it worked. But sadly I lost the changes in a hard-drive crash, and now I'm trying to re-add this syntax highlighting.
Anyway I'm having some trouble adding this filetype using the Cpp Lexer. I figured out that there is no --generate-data-files option anymore and that I had to edit the filetype_extension.conf. But I don't have syntax highlighting, not only for NesC, but for all languages supported by geany. I'm using the current development version, and it seems there is a bug since when I revert my changes and compile, I can't get the syntax highlighting.
Since I'm not an active geany developper and that I don't know the code perfectly, I'm asking you for advices.
Are you running latest SVN? I recently added some limited code for color scheme files, there was an issue where if the color scheme selected had been deleted the user would have to choose Default again. But that should be fixed in latest SVN.
Regards, Nick
On Wed, 11 Nov 2009 12:20:38 +0100 Yannis Mazzer yannis.mazzer@gmail.com wrote:
Yes I'm using the latest svn, but the color schemes were not deleted, I have no syntax highlighting for any of the supported languages.
Just to check, have you installed normally? Maybe geany can't see the filetype definition files. What does geany say if you run geany -v in a terminal?
Regards, Nick
Well yes I installed it normally. You were right when you said that geany couldn't see the filetype definition files. He was looking for files in /usr/local/share/geany/filetypes.foo. I figured it out using the v option as you adviced me. Thank you very much for your help.
Besides, do you think I should commit it or keep it for myself ?
On Thu, 2009-11-12 at 16:37 +0000, Nick Treleaven wrote:
On Wed, 11 Nov 2009 12:20:38 +0100 Yannis Mazzer yannis.mazzer@gmail.com wrote:
Yes I'm using the latest svn, but the color schemes were not deleted, I have no syntax highlighting for any of the supported languages.
Just to check, have you installed normally? Maybe geany can't see the filetype definition files. What does geany say if you run geany -v in a terminal?
Regards, Nick _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Thu, 12 Nov 2009 21:20:06 +0100 Yannis Mazzer yannis.mazzer@gmail.com wrote:
Besides, do you think I should commit it or keep it for myself ?
Well, if you're using the CPP lexer and an existing tag parser, you could probably write a custom filetype file to achieve the same effect. This could then be made available for download, instead of building in support for it to Geany.
http://www.geany.org/manual/dev/index.html#custom-filetypes
BTW, Custom filetypes are a new feature in SVN.
Regards, Nick
On Fri, 13 Nov 2009 15:35:01 +0000 Nick Treleaven nick.treleaven@btinternet.com wrote:
Besides, do you think I should commit it or keep it for myself ?
Well, if you're using the CPP lexer and an existing tag parser, you could probably write a custom filetype file to achieve the same effect. This could then be made available for download, instead of building in support for it to Geany.
Having thought more, at the moment custom filetype files can't have custom keywords (only keywords for the matching lexer), which might be annoying. Hopefully soon that will be possible though.
BTW, people can't commit without permission to the SVN repo. I'm not sure whether to add a NesC filetype to the core if it won't have a wide appeal. Maybe for now just post the patch here in an attachment, then at least anyone that wants it can see it.
Regards, Nick