Page 1 of 1

How to set the default lexer to open files?

Posted: 19.12.2020 15:48
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.

Posted: 20.12.2020 08:50
by Shovel
Try: Options > Lexers > Lexer Library > C > Configure
Remove 'h' from file types

Posted: 27.12.2020 08:42
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.