source: postlfs/editors/nano.xml@ 289fd16

12.1 ken/TL2024 lazarus rahul/power-profiles-daemon trunk xry111/llvm18
Last change on this file since 289fd16 was ab4fdfc, checked in by Pierre Labastie <pierre.labastie@…>, 5 months ago

Change all xml decl to encoding=utf-8

  • Property mode set to 100644
File size: 6.1 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[b5951ec]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[9513623]7 <!-- Note minor version in URL -->
[9b6c9212]8 <!ENTITY nano-download-http "https://www.nano-editor.org/dist/v7/nano-&nano-version;.tar.xz">
[9513623]9 <!ENTITY nano-download-ftp " ">
[a3fb37f]10 <!ENTITY nano-md5sum "13742c686c6ddb0b7b294634f0c13cec">
[ac451b9]11 <!ENTITY nano-size "1.5 MB">
[a3fb37f]12 <!ENTITY nano-buildsize "20 MB">
[0f5f10b]13 <!ENTITY nano-time "0.2 SBU">
[b5951ec]14]>
15
[fd680fb]16<sect1 id="nano" xreflabel="nano-&nano-version;">
[2cfa892]17 <?dbhtml filename="nano.html"?>
18
19
20 <title>Nano-&nano-version;</title>
21
22 <indexterm zone="nano">
23 <primary sortas="a-Nano">Nano</primary>
24 </indexterm>
25
26 <sect2 role="package">
27 <title>Introduction to Nano</title>
28
[d78d84d]29 <para>
30 The <application>Nano</application> package contains a small,
31 simple text editor which aims to replace <application>Pico</application>,
32 the default editor in the <application>Pine</application> package.
33 </para>
[2cfa892]34
[2314cd7]35 &lfs120_checked;
[c70fd34]36
[2cfa892]37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
[d78d84d]40 <para>
41 Download (HTTP): <ulink url="&nano-download-http;"/>
42 </para>
[2cfa892]43 </listitem>
44 <listitem>
[d78d84d]45 <para>
46 Download (FTP): <ulink url="&nano-download-ftp;"/>
47 </para>
[2cfa892]48 </listitem>
49 <listitem>
[d78d84d]50 <para>
51 Download MD5 sum: &nano-md5sum;
52 </para>
[2cfa892]53 </listitem>
54 <listitem>
[d78d84d]55 <para>
56 Download size: &nano-size;
57 </para>
[2cfa892]58 </listitem>
59 <listitem>
[d78d84d]60 <para>
61 Estimated disk space required: &nano-buildsize;
62 </para>
[2cfa892]63 </listitem>
64 <listitem>
[d78d84d]65 <para>
66 Estimated build time: &nano-time;
67 </para>
[2cfa892]68 </listitem>
69 </itemizedlist>
70
71 </sect2>
72
73 <sect2 role="installation">
74 <title>Installation of Nano</title>
75
[f716ef4]76 <para>
77 Install <application>Nano</application> by running the following
78 commands:
79 </para>
[2cfa892]80
[fad8db2]81<screen><userinput>./configure --prefix=/usr \
[d78d84d]82 --sysconfdir=/etc \
[30fe7dd]83 --enable-utf8 \
84 --docdir=/usr/share/doc/nano-&nano-version; &amp;&amp;
[2cfa892]85make</userinput></screen>
[d7444dee]86
[d78d84d]87 <para>
88 This package does not come with a test suite.
89 </para>
[40729db]90
[d78d84d]91 <para>
92 Now, as the <systemitem class="username">root</systemitem> user:
93 </para>
[d7444dee]94
[2cfa892]95<screen role="root"><userinput>make install &amp;&amp;
[8d3f3780]96install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/nano-&nano-version;</userinput></screen>
[b5951ec]97
[2cfa892]98 </sect2>
[b5951ec]99
[c70fd34]100 <sect2 role="commands">
101 <title>Command Explanations</title>
102
[90c160c]103 <para>
104 <parameter>--enable-utf8</parameter>: This switch enables unicode support
[4890200]105 in <application>Nano</application>.
106 </para>
107
[c70fd34]108 </sect2>
109
[2cfa892]110 <sect2 role="configuration">
111 <title>Configuring nano</title>
[b5951ec]112
[2cfa892]113 <sect3 id="nano-config">
114 <title>Config Files</title>
[b5951ec]115
[f716ef4]116 <para>
117 <filename>/etc/nanorc</filename> and
118 <filename>~/.nanorc</filename>
119 </para>
[b5951ec]120
[2cfa892]121 <indexterm zone="nano nano-config">
[d78d84d]122 <primary sortas="e-etc-nanorc">/etc/nanorc</primary>
[2cfa892]123 </indexterm>
124
125 <indexterm zone="nano nano-config">
126 <primary sortas="e-AA.nanorc">~/.nanorc</primary>
127 </indexterm>
128
129 </sect3>
130
131 <sect3>
132 <title>Configuration Information</title>
133
[d78d84d]134 <para>
135 Example configuration (create as a system-wide
136 <filename>/etc/nanorc</filename> or a personal
137 <filename>~/.nanorc</filename> file)
138 </para>
[2cfa892]139
140<screen><literal>set autoindent
[ce34cbb]141set constantshow
[b5951ec]142set fill 72
143set historylog
144set multibuffer
145set nohelp
[ce34cbb]146set positionlog
[8558044]147set quickblank
[b73999c]148set regexp</literal></screen>
[2cfa892]149
[d78d84d]150 <para>
[b285074]151 Check the <filename>sample.nanorc</filename> file in the installed
152 documentation directory. It includes color configurations and has
153 some documentation included in the comments.
[d78d84d]154 </para>
[2cfa892]155
[fcabde3c]156 <para>
157 Syntax highlighting is provided for several file types, in
158 <filename class="directory">/usr/share/nano/</filename> directory.
159 E.g., for shell scripts, you can insert
160 <option>include /usr/share/nano/sh.nanorc</option> in the personal or
161 global configuration file. If you wish highlighting for all supported
[7fdc32cb]162 files, use <option>include /usr/share/nano/*.nanorc</option>. This
163 include does not descend into the <filename class="directory">extra</filename>
164 directory. Move required files one level up.
[fcabde3c]165 </para>
166
[2cfa892]167 </sect3>
168
169 </sect2>
170
171 <sect2 role="content">
172 <title>Contents</title>
173
174 <segmentedlist>
175 <segtitle>Installed Programs</segtitle>
[c3c56b2]176 <segtitle>Installed Libraries</segtitle>
[0af9f257]177 <segtitle>Installed Directories</segtitle>
[2cfa892]178
179 <seglistitem>
[d78d84d]180 <seg>
[30fe7dd]181 nano and rnano (symlink)
[d78d84d]182 </seg>
[c3c56b2]183 <seg>
184 None
185 </seg>
[d78d84d]186 <seg>
187 /usr/share/nano and
188 /usr/share/doc/nano-&nano-version;
189 </seg>
[2cfa892]190 </seglistitem>
191 </segmentedlist>
192
193 <variablelist>
194 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
195 <?dbfo list-presentation="list"?>
196 <?dbhtml list-presentation="table"?>
197
198 <varlistentry id="nano-prog">
199 <term><command>nano</command></term>
200 <listitem>
[d78d84d]201 <para>
202 is a small, simple text editor which aims to replace
203 <application>Pico</application>, the default editor in the
[4c24eb0a]204 <application>Pine</application> package
[d78d84d]205 </para>
[2cfa892]206 <indexterm zone="nano nano-prog">
207 <primary sortas="b-nano">nano</primary>
208 </indexterm>
209 </listitem>
210 </varlistentry>
211
[0af9f257]212 <varlistentry id="rnano-prog">
213 <term><command>rnano</command></term>
214 <listitem>
[d78d84d]215 <para>
[4c24eb0a]216 is a restricted mode for <command>nano</command>
[d78d84d]217 </para>
[0af9f257]218 <indexterm zone="nano rnano-prog">
219 <primary sortas="b-rnano">rnano</primary>
220 </indexterm>
221 </listitem>
222 </varlistentry>
223
[2cfa892]224 </variablelist>
225
226 </sect2>
[f45b1953]227
228</sect1>
Note: See TracBrowser for help on using the repository browser.