[Geany-Users] # user definable keywords

JVP jvp at TubeJoiners.com
Sun Oct 23 06:06:43 UTC 2016

Hi All

I notice that in some filetypes. there are entries called:



 From that I assumed that I can add more user key word lists (with 
different colours).

I have edited my filetypes.freebasic by adding:


then added:


to filetypes.common (if Keyword_3 is user1, then hopefully keyword_5 is 

However, that doesn't work. Is it even possible to do this, or are there 
more changes to make ?

Jan van de Poll

On 09/20/2016 07:33 AM, JVP wrote:
> Hi All
> Thanks Lex, I have it working now.
> Another reason why it didn't, is any of the letters are capitalized 
> ie: user1=Myspecialword
> Now all I have to do is choose the right colours so the programming 
> page doesn't look
> like a Picasso.
> Regards
> Jan van de Poll
> On 09/19/2016 12:08 AM, Lex Trotman wrote:
>> Works for me with latest Geany development version.
>> The `user1` keywords are highlighted by the `keyword_3` style.  To
>> change that you should edit that style in the style file you are using
>> (which is filetypes.common if you are using the default style and
>> menu->tools->configuration files->filetypes.common will load it).
>> Cheers
>> Lex
>> On 19 September 2016 at 13:06, JVP<jvp at tubejoiners.com>  wrote:
>>>   Hi All
>>> Using FreeBasic with Geany 1.27 and having difficulty getting the
>>> user1=myspecialword to work.
>>> I have copied the filetypes.freebasic to ~/.config/geany/filedefs and edited
>>> it there.
>>> >From my reading on the FreeBasic forum I saw that the colouring of user1 is
>>> controlled by word3.
>>> The filetypes.freebasic suggest editing colours in the colorscheme  .conf
>>> file.
>>> There wasn't a file there, but copying alt.conf there made no change at all.
>>> If I add my word to the [keywords] then it gets high lighted, but I want
>>> separate colours for
>>> the user1 keywords.
>>> Can someone please suggest what the problem is.
>>> Regards
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.geany.org
>>> https://lists.geany.org/cgi-bin/mailman/listinfo/users
> _______________________________________________
> Users mailing list
> Users at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/users/attachments/20161023/d8e20a9c/attachment.html>

More information about the Users mailing list