[Geany-Users] Highlighting for todo.txt

Matthew Brush mbrush at xxxxx
Sun Oct 8 18:54:15 UTC 2017


On 2017-10-08 11:41 AM, Matthew Petty wrote:
> Is it possible to create a filedef for a single file? For example instead
> of defining the extension as "*.txt", could it be "todo.txt"?
> 

Should work fine. Make a custom filetype as shown in the Geany manual, 
and then in the filetype_extensions.conf file, use `todo.txt` instead of 
the pattern `*.txt`. I believe Makefiles already do this.

> Secondly, how can I set highlighting for "any string starting with @". Is
> that possible?
> 

I believe there is a plugin that highlights TODO and FIXME and such. 
Otherwise you could do it by writing your own plugin. I'm not aware of a 
way to do it without writing a plugin.

Regards,
Matthew Brush


More information about the Users mailing list