Hello I tried to add keys to the empty list "expand". However, this did not produce any highlighting effect for the keys. The styles I tried changing were "wordexpand" and "expand", but neither produced the desired effect, which is to have the keys under the "expand" list highlighted in a particular style. The aim of this exercise is to expand highlighting support for OpenSEES, which uses tcl as a front-end scripting language to generate and analyze structural models. I would like to add the OpenSEES specific commands under the "expand" list to highlight them in a different style from normal tcl/tk commands. I have tried the exercise using two methods: first define a custom filetypes.OpenSEES.conf, and second using a user-copy of filetypes.tcl. Does not work using either approach.
Any help would be much appreciated. Thanks.
On 13-06-20 06:10 AM, Arpit wrote:
Hello I tried to add keys to the empty list "expand". However, this did not produce any highlighting effect for the keys. The styles I tried changing were "wordexpand" and "expand", but neither produced the desired effect, which is to have the keys under the "expand" list highlighted in a particular style. The aim of this exercise is to expand highlighting support for OpenSEES, which uses tcl as a front-end scripting language to generate and analyze structural models. I would like to add the OpenSEES specific commands under the "expand" list to highlight them in a different style from normal tcl/tk commands. I have tried the exercise using two methods: first define a custom filetypes.OpenSEES.conf, and second using a user-copy of filetypes.tcl. Does not work using either approach.
What Geany version are you using?
If 1.22 or newer...
Try changing the style of "keyword_4" named style in your colour scheme (default one is at bottom of filetypes.common).
Although I don't know TCL at all and didn't actually test changing this named style, the mappings all seem to be hooked up.
Cheers, Matthew Brush
Matthew Brush <mbrush@...> writes:
What Geany version are you using?
If 1.22 or newer... Cheers, Matthew Brush
Hi Matthew Your suggestion does not work either. I tried it on geany v1.23. I have linked the files you can use to test them out. http://ubuntuone.com/4HGKwedibL70GLWGRddoqL Thanks Arpit
On 13-06-22 01:53 AM, Arpit wrote:
Matthew Brush <mbrush@...> writes:
What Geany version are you using?
If 1.22 or newer... Cheers, Matthew Brush
Hi Matthew Your suggestion does not work either. I tried it on geany v1.23. I have linked the files you can use to test them out. http://ubuntuone.com/4HGKwedibL70GLWGRddoqL Thanks Arpit
Playing around with a bit, the "expand" key under "[styling]" group controls the style of TCL {expand}-style keywords. I have no clue what this does in TCL, but it has to be {inside braces like this}.
As for the "wordexpand" style, I've no clue. I tried reading the lexer code but it makes no sense how it's organized WRT keyword sets, and upstream provides 0 documentation on lexers (except the C++ code itself).
Sorry I couldn't help more.
Cheers, Matthew Brush
Playing around with a bit, the "expand" key under "[styling]" group controls the style of TCL {expand}-style keywords. I have no clue what this does in TCL, but it has to be {inside braces like this}.
As for the "wordexpand" style, I've no clue. I tried reading the lexer code but it makes no sense how it's organized WRT keyword sets, and upstream provides 0 documentation on lexers (except the C++ code itself).
Sorry I couldn't help more.
Cheers, Matthew Brush
Hi Matthew Actually, that helps a lot. Now I know that my plan will not work with the expand keyword (which has something to do with variable number of input arguments to a function). I'll use one of the other keywords, since I only need the tcl keywords. Thanks Arpit