How to map multiple extension filenames to lexer? #113
Unanswered
michaeldurland
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Unfortunately, this is not possible.
For reference: https://github.com/orbitalquark/textadept/blob/83a49ca00580a3d5a987a9132ac4b0483a57bf4d/modules/textadept/file_types.lua#L52
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do I map a filename with multiple extensions to a specific lexer?
For example, let's say I have a filename called "script.foo.bar" and I want to have it use the "bash" lexer.
I tried adding this to my init.lua, but it didn't seem to work:
textadept.file_types.extensions['foo.bar'] = 'bash'
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions