Use a lexer for files without extension

All questions regarding lexer highlighting schemes are discussed here...
Post Reply
User avatar
Rodario
Posts: 1
Joined: 13.01.2017 12:10

Use a lexer for files without extension

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

Post 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
Post Reply