Re: [Geany-Users] adding json support

2013-02-24 Thread Lex Trotman
On 25 February 2013 09:43, Bob Furber  wrote:
> On 13-02-23 07:41 PM, Matthew Brush wrote:
>>>
>>> No change even after restarting my PC: Names are bold black, values are
>>> normal black, numbers are green ..and filetypes.JSON.conf looks like
>>> this:
>>>
>>
> I found it!!
>
> For some reason, I had 2 filetypes.JSON.conf files:
>
> /usr/share/geany/filetypes.JSON.conf
> and
>/root/.config/geany/filedefs/filetypes.JSON.conf
>
> This seems to have come about because I accessed Geany in supervisor mode to
> edit filetypes.JSON.conf.
>

Perhaps the lesson is "Don't try stuff as root", do it as an
unprivileged user, thats why we read the user config so users can
change it without touching the system stuff :)

And as a user mistakes make less of a mess :)

Cheers
Lex


> In the meantime, I have merrily been editing
> /root/.config/geany/filedefs/filetypes.JSON.conf, while Geany, accessed in
> user mode uses /usr/share/geany/filetypes.JSON.conf.
>
>> What are "names"?
>
>
> Perhaps I am using Name inappropriately. What I mean is the lowest element
> in a json file is a name:value pair (i.e., {"myVarName":"myVarValue"}).
> While not very important, I can see some merit in differentiating the name
> from the value.
>
> The only way I have found so far to differentiate names from values is by
> setting lexer_filetype=YAML.
>
> Thanks Matthew & Lex for all your help.
>
> RF
>
> ___
> Users mailing list
> Users@lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users


Re: [Geany-Users] adding json support

2013-02-24 Thread Bob Furber

On 13-02-23 07:41 PM, Matthew Brush wrote:

No change even after restarting my PC: Names are bold black, values are
normal black, numbers are green ..and filetypes.JSON.conf looks like 
this:





I found it!!

For some reason, I had 2 filetypes.JSON.conf files:

/usr/share/geany/filetypes.JSON.conf
and
   /root/.config/geany/filedefs/filetypes.JSON.conf

This seems to have come about because I accessed Geany in supervisor 
mode to edit filetypes.JSON.conf.


In the meantime, I have merrily been editing 
/root/.config/geany/filedefs/filetypes.JSON.conf, while Geany, accessed 
in user mode uses /usr/share/geany/filetypes.JSON.conf.


What are "names"? 


Perhaps I am using Name inappropriately. What I mean is the lowest 
element in a json file is a name:value pair (i.e., 
{"myVarName":"myVarValue"}). While not very important, I can see some 
merit in differentiating the name from the value.


The only way I have found so far to differentiate names from values is 
by setting lexer_filetype=YAML.


Thanks Matthew & Lex for all your help.

RF

___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users


Re: [Geany-Users] EuGeany - Geany support for the Euphoria Programming Language

2013-02-24 Thread Codger
Thanks again.  :-)

Personally, I have decided not to inherit the Lua styling because I have
customized the syntax coloring to my preference. I have posted a note to
the Euphoria mailing list that suggesting that Lua's styling can be
inherited as you have indicated.  I have also encouraged Euphoria/Geany
users to subscribe to this list.



On Sun, Feb 24, 2013 at 11:17 AM, Colomban Wendling <
lists@herbesfolles.org> wrote:

> Le 24/02/2013 03:34, Codger a écrit :
> > SUCCESS! Thanks to Colomban, Lex, Matthew and all for the corrections.
>
> No problem :)
>
> > I'll clean up the Euphoria support files and post it to the Geany Wiki.
>
> Also, when creating a custom filetype, you generally want to inherit
> styles from the filetype you inherit the lexer from.  E.g., in your case
> replacing the whole [styling] section with [styling=Lua].
>
> That's not required of course, but it's less work for you and it's more
> future-proof (if new styles are added in the future, you'd automatically
> get them).
>
> Regards,
> Colomban
> ___
> Users mailing list
> Users@lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>



-- 
Kenneth Rhodes
Ubuntu 12.1
100% MicroSoft Free!
___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users


Re: [Geany-Users] EuGeany - Geany support for the Euphoria Programming Language

2013-02-24 Thread Colomban Wendling
Le 24/02/2013 03:34, Codger a écrit :
> SUCCESS! Thanks to Colomban, Lex, Matthew and all for the corrections. 

No problem :)

> I'll clean up the Euphoria support files and post it to the Geany Wiki.

Also, when creating a custom filetype, you generally want to inherit
styles from the filetype you inherit the lexer from.  E.g., in your case
replacing the whole [styling] section with [styling=Lua].

That's not required of course, but it's less work for you and it's more
future-proof (if new styles are added in the future, you'd automatically
get them).

Regards,
Colomban
___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users