Page 1 of 1

Use a lexer for files without extension

Posted: 17.04.2019 12:36
by Rodario
Hello,

is it possible to use a lexer with file without extension?
For example I want to use lexer "bash skript" for shell skripts which have no explicit file extensions.

Is it alternativly possible to define a "default lexer" when files have a extension without a explicit deligated lexer?

Thanks.
rodario

Posted: 17.04.2019 13:42
by Alexey
Possible in this way:
a) you can use CudaText option to detect lexer by first line / filename
http://wiki.freepascal.org/CudaText#File_types_config
b) you can write in lexer's File Types field full names:

Code: Select all

/.myname /.bashrc /myname2