On 25 February 2013 09:43, Bob Furber burnsmicro@gmail.com 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