Page 1 of 1

Default lexer

Posted: 06.07.2017 09:59
by iferius
Hey there!

I've recently started using SynWrite for its great lexer features, and I've created a lexer to highlight the logs I look at daily. (still working on it - I have some great ideas for improvement using the tree view)

Now my problem is that I always open my log.txt, get to the lexer menu (which I've added to the top bar as I couldn't find it anywhere else) and select my lexer; I would like the program to start with this lexer active by default. Is there a way to do this?

Posted: 06.07.2017 13:10
by Alexey
Yes, in the Options dialog, "New/open" part, there's option "Lexer".

Posted: 06.07.2017 13:30
by iferius
Found it, thanks! I must have missed it when I was looking through the options.

Posted: 06.07.2017 14:23
by Alexey
Btw. In CudaText you can assign lexer to "log.txt":
http://wiki.freepascal.org/CudaText#File-types_config