This file is indexed.

/usr/share/doc/medit-1/help/ch01s07.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
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Options for editing text</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="ch01s06.html" title="File Selector tab">
<link rel="next" href="ch01s08.html" title="Preferences files">
</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">Options for editing text</th></tr>
<tr>
<td width="20%" align="left">
<a accesskey="p" href="ch01s06.html">Prev</a> </td>
<th width="60%" align="center">Chapter 1. Preferences</th>
<td width="20%" align="right"> <a accesskey="n" href="ch01s08.html">Next</a>
</td>
</tr>
</table>
<hr>
</div>
<div class="sect1" title="Options for editing text">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="section-editing-options"></a>Options for editing text</h2></div></div></div>
<p>
<span class="application">medit</span> has some editing options which can be set in the document text,
or in the <span class="guilabel">Preferences</span> dialog for sets of files or for given syntax
highlighting language.
</p>
<p>
To set the options in the document text, place the following on the first,
second or the last line of the document:
</p>
<pre class="programlisting">
-%- <em class="parameter"><code>options</code></em> -%-
</pre>
<p>
where <em class="parameter"><code>options</code></em> is the option string
</p>
<pre class="programlisting">
<em class="parameter"><code>key</code></em>: <em class="parameter"><code>value</code></em>; <em class="parameter"><code>key</code></em>: <em class="parameter"><code>value</code></em>; ...
</pre>
<p>
(the latter is the format used also in the <span class="guilabel">Preferences</span> dialog).
</p>
<p>
For example, the following might be the first line in a C file:
</p>
<pre class="programlisting">
/* -%- indent-width: 2; use-tabs: yes; strip: yes -%- */
</pre>
<p>
</p>
<p>
Values can be strings, integers, or booleans.
</p>
<p>
Booleans are <code class="code">yes</code>, <code class="code">no</code>, <code class="code">true</code>, <code class="code">false</code>, <code class="code">1</code>, <code class="code">0</code>.
</p>
<p>
If a string value contains <code class="code">:</code> character, then the following syntax may be used:
<code class="code"><em class="parameter"><code>key</code></em>=/<em class="parameter"><code>value</code></em>/</code>. Any character may be used instead of slash (and it
must not occur in the <em class="parameter"><code>value</code></em>). Example: <code class="code">word-chars=@-/:@</code>
</p>
<p>
The following options are available:
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><code class="code">lang</code></span> : </p></td>
<td><p>syntax highlighting language to use in this document. Special value <code class="code">none</code> will
turn off syntax highlighting in this document.</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="code">strip</code></span> : </p></td>
<td><p>a boolean value, whether trailing whitespace should be removed from the document on save.</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="code">add-newline</code></span> : </p></td>
<td><p>a boolean value, whether the editor should ensure that saved files have a trailing new line character.</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="code">indent-width</code></span> : </p></td>
<td><p>an integer specifying indentation offset used when the Tab key is pressed to indent text.</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="code">tab-width</code></span> : </p></td>
<td><p>displayed width of the tab character. Note that this is <span class="emphasis"><em>not</em></span> the same as
<code class="code">indent-width</code>.</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="code">use-tabs</code></span> : </p></td>
<td><p>whether tab character should be used for indentation.</p></td>
</tr>
</tbody>
</table></div>
<p>
</p>
<p>
<span class="application">medit</span> tries to understand modelines of Vim, Emacs, and Kate text editors, so chances are it will correctly
pick up the conventional settings from source files.
</p>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="ch01s06.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="ch01s08.html">Next</a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">
<span class="guilabel">File Selector</span> tab </td>
<td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td>
<td width="40%" align="right" valign="top"> Preferences files</td>
</tr>
</table>
</div>
</body>
</html>