70 lines
3.4 KiB
HTML
70 lines
3.4 KiB
HTML
<html lang="en">
|
|
<head>
|
|
<title>File filters tab - medit 0.99.0-devel manual</title>
|
|
<meta http-equiv="Content-Type" content="text/html">
|
|
<meta name="description" content="medit 0.99.0-devel manual">
|
|
<meta name="generator" content="makeinfo 4.13">
|
|
<link title="Top" rel="start" href="index.html#Top">
|
|
<link rel="up" href="Preferences.html#Preferences" title="Preferences">
|
|
<link rel="prev" href="Language-options-tab.html#Language-options-tab" title="Language options tab">
|
|
<link rel="next" href="Options-for-editing-text.html#Options-for-editing-text" title="Options for editing text">
|
|
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
|
|
<meta http-equiv="Content-Style-Type" content="text/css">
|
|
<style type="text/css"><!--
|
|
pre.display { font-family:inherit }
|
|
pre.format { font-family:inherit }
|
|
pre.smalldisplay { font-family:inherit; font-size:smaller }
|
|
pre.smallformat { font-family:inherit; font-size:smaller }
|
|
pre.smallexample { font-size:smaller }
|
|
pre.smalllisp { font-size:smaller }
|
|
span.sc { font-variant:small-caps }
|
|
span.roman { font-family:serif; font-weight:normal; }
|
|
span.sansserif { font-family:sans-serif; font-weight:normal; }
|
|
--></style>
|
|
</head>
|
|
<body>
|
|
<div class="node">
|
|
<a name="File-filters-tab"></a>
|
|
<p>
|
|
Next: <a rel="next" accesskey="n" href="Options-for-editing-text.html#Options-for-editing-text">Options for editing text</a>,
|
|
Previous: <a rel="previous" accesskey="p" href="Language-options-tab.html#Language-options-tab">Language options tab</a>,
|
|
Up: <a rel="up" accesskey="u" href="Preferences.html#Preferences">Preferences</a>
|
|
<hr>
|
|
</div>
|
|
|
|
<h3 class="section">1.2 File filters tab</h3>
|
|
|
|
<p><!-- moo-help-section: PREFS_FILE_FILTERS -->
|
|
|
|
<p><em>File filters tab</em> section allows to customize editing options,
|
|
as well as syntax highlighting language, on per-document basis using regular
|
|
expressions which are matched against the document filename (globs can also be
|
|
used, see below). Full file paths are used, so one can have per-directory settings.
|
|
|
|
<p>Use dollar if you need to match ends of filenames, e.g. "<code>\.doc$</code>" will work as
|
|
"<code>*.doc</code>" pattern.
|
|
|
|
<p>The filters are applied in the order they appear in the list, one by one. All filters
|
|
are applied to every file, so several filters may affect options in the same file. In
|
|
this way one can set some options for a set of files or a directory, then set or modify
|
|
some additional options for certain files in that set, etc.
|
|
|
|
<p>To add a filter, use <em>New</em> button. Click the filter in the list to
|
|
select it, then click the <em>Filter</em> or <em>Options</em>
|
|
part of it to edit. Use <em>Delete</em> button to delete a filter,
|
|
and <em>Up</em> and <em>Down</em> buttons to change the order in
|
|
which they are applied.
|
|
|
|
<p><em>Filter</em> field contains a regular expression matched agains the
|
|
document filename. If it is found in the filename, then the options from the
|
|
<em>Options</em> field are applied to the document. Alternatively it can be
|
|
a comma-separated list of globs prefixed with "<code>globs:</code>" or a list
|
|
of language ids prefixed with "<code>langs:</code>", e.g. "<code>globs:*.c,*.h</code>" or
|
|
"<code>langs:c,c++</code>".
|
|
|
|
<p><em>Options</em> field contains the options, in format described in
|
|
section <a href="Options-for-editing-text.html#Options-for-editing-text">Options for editing text</a>.
|
|
|
|
</body></html>
|
|
|