diff options
author | 2015-03-10 00:20:54 -0400 | |
---|---|---|
committer | 2015-03-10 00:20:54 -0400 | |
commit | 9bfbe1863fd85aa8c8004616daf2a290a08c644a (patch) | |
tree | b19498d6c76f15eb3ae16d3bcd759b073b1fd70b /doc/manual.md | |
parent | 2f1bea53cc0a38970c2cea52ff44569d20cde937 (diff) | |
download | textadept-9bfbe1863fd85aa8c8004616daf2a290a08c644a.tar.gz textadept-9bfbe1863fd85aa8c8004616daf2a290a08c644a.zip |
Merged `textadept.file_types.shebangs` into `textadept.file_types.patterns`.
Diffstat (limited to 'doc/manual.md')
-rw-r--r-- | doc/manual.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/manual.md b/doc/manual.md index a4547fba..b89c8349 100644 --- a/doc/manual.md +++ b/doc/manual.md @@ -1088,17 +1088,17 @@ Learn more about snippet syntax in the [snippets documentation][]. ### File Types Textadept recognizes a wide range of programming language files either by file -extension, by a keyword in the shebang ("#!/path/to/exe") line, or by a -[Lua pattern](#Lua.Patterns) that matches the text of the first line. The editor -does this by consulting a set of tables in [`textadept.file_types`][] that are -modifiable from *~/.textadept/init.lua*. For example: +extension or by a [Lua pattern](#Lua.Patterns) that matches the text of the +first line. The editor does this by consulting a set of tables in +[`textadept.file_types`][] that are modifiable from *~/.textadept/init.lua*. For +example: -- Recognize .luadoc files as Lua code. textadept.file_types.extensions.luadoc = 'lua' -- Change .html files to be recognized as XML files. textadept.file_types.extensions.html = 'xml' -- Recognize a shebang line like "#!/usr/bin/zsh" as shell code. - textadept.file_types.shebangs.zsh = 'bash' + textadept.file_types.patterns['^#!.+/zsh'] = 'bash' [`textadept.file_types`]: api.html#textadept.file_types |