source: postlfs/editors/nano.xml@ 89a8d9a

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 89a8d9a was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 19 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • Property mode set to 100644
File size: 6.2 KB
RevLine 
[b5951ec]1<?xml version="1.0" encoding="ISO-8859-1"?>
[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 " ">
[9b6c9212]10 <!ENTITY nano-md5sum "32faafd9da9ee75feda8423d5744ee4d">
[ac451b9]11 <!ENTITY nano-size "1.5 MB">
[9b6c9212]12 <!ENTITY nano-buildsize "24 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
[b5d7180]35 &lfs112_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
[3597eb6]71 <para condition="html" role="usernotes">User Notes:
[4890200]72 <ulink url="&blfs-wiki;/Nano"/>
73 </para>
[2cfa892]74 </sect2>
75
76 <sect2 role="installation">
77 <title>Installation of Nano</title>
78
[f716ef4]79 <para>
80 Install <application>Nano</application> by running the following
81 commands:
82 </para>
[2cfa892]83
[fad8db2]84<screen><userinput>./configure --prefix=/usr \
[d78d84d]85 --sysconfdir=/etc \
[30fe7dd]86 --enable-utf8 \
87 --docdir=/usr/share/doc/nano-&nano-version; &amp;&amp;
[2cfa892]88make</userinput></screen>
[d7444dee]89
[d78d84d]90 <para>
91 This package does not come with a test suite.
92 </para>
[40729db]93
[d78d84d]94 <para>
95 Now, as the <systemitem class="username">root</systemitem> user:
96 </para>
[d7444dee]97
[2cfa892]98<screen role="root"><userinput>make install &amp;&amp;
[8d3f3780]99install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/nano-&nano-version;</userinput></screen>
[b5951ec]100
[2cfa892]101 </sect2>
[b5951ec]102
[c70fd34]103 <sect2 role="commands">
104 <title>Command Explanations</title>
105
[90c160c]106 <para>
107 <parameter>--enable-utf8</parameter>: This switch enables unicode support
[4890200]108 in <application>Nano</application>.
109 </para>
110
[c70fd34]111 </sect2>
112
[2cfa892]113 <sect2 role="configuration">
114 <title>Configuring nano</title>
[b5951ec]115
[2cfa892]116 <sect3 id="nano-config">
117 <title>Config Files</title>
[b5951ec]118
[f716ef4]119 <para>
120 <filename>/etc/nanorc</filename> and
121 <filename>~/.nanorc</filename>
122 </para>
[b5951ec]123
[2cfa892]124 <indexterm zone="nano nano-config">
[d78d84d]125 <primary sortas="e-etc-nanorc">/etc/nanorc</primary>
[2cfa892]126 </indexterm>
127
128 <indexterm zone="nano nano-config">
129 <primary sortas="e-AA.nanorc">~/.nanorc</primary>
130 </indexterm>
131
132 </sect3>
133
134 <sect3>
135 <title>Configuration Information</title>
136
[d78d84d]137 <para>
138 Example configuration (create as a system-wide
139 <filename>/etc/nanorc</filename> or a personal
140 <filename>~/.nanorc</filename> file)
141 </para>
[2cfa892]142
143<screen><literal>set autoindent
[ce34cbb]144set constantshow
[b5951ec]145set fill 72
146set historylog
147set multibuffer
148set nohelp
[ce34cbb]149set positionlog
[8558044]150set quickblank
[b73999c]151set regexp</literal></screen>
[2cfa892]152
[d78d84d]153 <para>
[b285074]154 Check the <filename>sample.nanorc</filename> file in the installed
155 documentation directory. It includes color configurations and has
156 some documentation included in the comments.
[d78d84d]157 </para>
[2cfa892]158
[fcabde3c]159 <para>
160 Syntax highlighting is provided for several file types, in
161 <filename class="directory">/usr/share/nano/</filename> directory.
162 E.g., for shell scripts, you can insert
163 <option>include /usr/share/nano/sh.nanorc</option> in the personal or
164 global configuration file. If you wish highlighting for all supported
[7fdc32cb]165 files, use <option>include /usr/share/nano/*.nanorc</option>. This
166 include does not descend into the <filename class="directory">extra</filename>
167 directory. Move required files one level up.
[fcabde3c]168 </para>
169
[2cfa892]170 </sect3>
171
172 </sect2>
173
174 <sect2 role="content">
175 <title>Contents</title>
176
177 <segmentedlist>
178 <segtitle>Installed Programs</segtitle>
[c3c56b2]179 <segtitle>Installed Libraries</segtitle>
[0af9f257]180 <segtitle>Installed Directories</segtitle>
[2cfa892]181
182 <seglistitem>
[d78d84d]183 <seg>
[30fe7dd]184 nano and rnano (symlink)
[d78d84d]185 </seg>
[c3c56b2]186 <seg>
187 None
188 </seg>
[d78d84d]189 <seg>
190 /usr/share/nano and
191 /usr/share/doc/nano-&nano-version;
192 </seg>
[2cfa892]193 </seglistitem>
194 </segmentedlist>
195
196 <variablelist>
197 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
198 <?dbfo list-presentation="list"?>
199 <?dbhtml list-presentation="table"?>
200
201 <varlistentry id="nano-prog">
202 <term><command>nano</command></term>
203 <listitem>
[d78d84d]204 <para>
205 is a small, simple text editor which aims to replace
206 <application>Pico</application>, the default editor in the
[4c24eb0a]207 <application>Pine</application> package
[d78d84d]208 </para>
[2cfa892]209 <indexterm zone="nano nano-prog">
210 <primary sortas="b-nano">nano</primary>
211 </indexterm>
212 </listitem>
213 </varlistentry>
214
[0af9f257]215 <varlistentry id="rnano-prog">
216 <term><command>rnano</command></term>
217 <listitem>
[d78d84d]218 <para>
[4c24eb0a]219 is a restricted mode for <command>nano</command>
[d78d84d]220 </para>
[0af9f257]221 <indexterm zone="nano rnano-prog">
222 <primary sortas="b-rnano">rnano</primary>
223 </indexterm>
224 </listitem>
225 </varlistentry>
226
[2cfa892]227 </variablelist>
228
229 </sect2>
[f45b1953]230
231</sect1>
Note: See TracBrowser for help on using the repository browser.