Default lexer

Post Reply
iferius
Posts: 12
Joined: 30.06.2017 08:57

Default lexer

Post 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?
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Yes, in the Options dialog, "New/open" part, there's option "Lexer".
iferius
Posts: 12
Joined: 30.06.2017 08:57

Post by iferius »

Found it, thanks! I must have missed it when I was looking through the options.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Btw. In CudaText you can assign lexer to "log.txt":
http://wiki.freepascal.org/CudaText#File-types_config
Post Reply