How to set the default lexer to open files?

Post Reply
gh_origin
Posts: 16
Joined: 27.09.2020 09:30

How to set the default lexer to open files?

Post by gh_origin »

I want to open .h files on CudaText and each time it always asks if I want to use the C or C++ lexer. Since I only work with C++, how could I set C++ as the default lexer applied when opening .h files so Cuda will not ask me again and again? Thank you.
Shovel
Posts: 141
Joined: 31.12.2019 10:16

Post by Shovel »

Try: Options > Lexers > Lexer Library > C > Configure
Remove 'h' from file types
uvviewsoft_
Posts: 17
Joined: 27.12.2020 08:31

Post by uvviewsoft_ »

the solution is "file types config", read in the wiki--
https://wiki.freepascal.org/CudaText#Configs

I added the config for C++ and .h file is opened in C++ now. I also will remove .h file type from C lexer. to be simpler.
Post Reply