This file is indexed.

/usr/share/doc/medit-1/help/ch01s05.html is in medit 1.0.3-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>File filters tab</title>
<link rel="stylesheet" href="medit.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="medit manual">
<link rel="up" href="ch01.html" title="Chapter 1. Preferences">
<link rel="prev" href="ch01s04.html" title="Languages tab">
<link rel="next" href="ch01s06.html" title="File Selector tab">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="navheader">
<table width="100%" summary="Navigation header">
<tr><th colspan="3" align="center">File filters tab</th></tr>
<tr>
<td width="20%" align="left">
<a accesskey="p" href="ch01s04.html">Prev</a> </td>
<th width="60%" align="center">Chapter 1. Preferences</th>
<td width="20%" align="right"> <a accesskey="n" href="ch01s06.html">Next</a>
</td>
</tr>
</table>
<hr>
</div>
<div class="sect1" title="File filters tab">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="section-prefs-file-filters"></a>File filters tab</h2></div></div></div>
<p>
<span class="guilabel">File filters tab</span> 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>
<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>
<p>
To add a filter, use <span class="guilabel">New</span> button. Click the filter in the list to
select it, then click the <span class="guilabel">Filter</span> or <span class="guilabel">Options</span>
part of it to edit. Use <span class="guilabel">Delete</span> button to delete a filter,
and <span class="guilabel">Up</span> and <span class="guilabel">Down</span> buttons to change the order in
which they are applied.
</p>
<p>
<span class="guilabel">Filter</span> field contains a regular expression matched agains the
document filename. If it is found in the filename,
then the options from the <span class="guilabel">Options</span> field are applied to the
document. Example:
</p>
<pre class="programlisting">projects/moo/</pre>
<p>
</p>
<p>
Use dollar if you need to match ends of filenames, e.g. "<code class="code">\.doc$</code>" will work as
"<code class="code">*.doc</code>" pattern.
</p>
<p>
Alternatively it can be
a comma-separated list of globs prefixed with "<code class="code">globs:</code>" or a list
of language ids prefixed with "<code class="code">langs:</code>", e.g.
</p>
<pre class="programlisting">globs:*.c,*.h</pre>
<p>
or
</p>
<pre class="programlisting">langs:c,c++</pre>
<p>
</p>
<p>
<span class="guilabel">Options</span> field contains the options, in format described in
<a class="xref" href="ch01s07.html" title="Options for editing text">the section called &#8220;Options for editing text&#8221;</a>.
</p>
<div class="informalexample"><div align="center"><img src="img/prefs-file-filters.png" align="middle"></div></div>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="ch01s04.html">Prev</a> </td>
<td width="20%" align="center"><a accesskey="u" href="ch01.html">Up</a></td>
<td width="40%" align="right"> <a accesskey="n" href="ch01s06.html">Next</a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">
<span class="guilabel">Languages</span> tab </td>
<td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td>
<td width="40%" align="right" valign="top"> <span class="guilabel">File Selector</span> tab</td>
</tr>
</table>
</div>
</body>
</html>