# License: GPL 3 or later
#
# Version: 2011-05-05
#
# Notes: Originally based on Ruby syntax rc by Josef 'Jupp' Schugt
##############################################################################
# Automatically use for '.lua' files
syntax "lua" "\.lua$"
color brightwhite "\[\[.*\]\]"
# Operators
color brightyellow ":|\*|/|%|\+|-|\^|>|>=|<|<=|~=|=|\.\.|\<(not|and|or)\>"
# Statements
color brightblue "\<(do|end|while|repeat|until|if|elseif|then|else|for|in|function|local|return|break)\>"
# Keywords
color brightyellow "\<(debug|string|math|table|io|coroutine|os)\>\."
color brightyellow "\<(_G|_VERSION|assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|module|next|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\s*\("
# Standard library
color brightyellow "io\.\<(close|flush|input|lines|open|output|popen|read|tmpfile|type|write|stdin|stdout|stderr)\>"
color brightyellow "math\.\<(abs|acos|asin|atan2|atan|ceil|cosh|cos|deg|exp|floor|fmod|frexp|huge|ldexp|log10|log|max|min|mod|modf|pi|pow|rad|random|randomseed|sinh|tan)\>"
color brightyellow "os\.\<(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)\>"
color brightyellow "package\.\<(cpath|loaded|loadlib|path|preload|seeall)\>"
color brightyellow "string\.\<(byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)\>"
color brightyellow "table\.\<(concat|insert|maxn|remove|sort)\>"
color brightyellow "coroutine\.\<(create|resume|running|status|wrap|yield)\>"
color brightyellow "debug\.\<(debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)\>"
# File handle methods
color brightyellow "\:\<(close|flush|lines|read|seek|setvbuf|write)\>"
# false, nil, true
color brightmagenta "\<(false|nil|true)\>"
# External files
color brightgreen "\<(dofile|require)\>"
# Numbers
color red "\<([0-9]+)\>"
# Symbols
color brightmagenta "(\(|\)|\[|\]|\{|\})"
# Shebang
color brightcyan "^#!.*"
# Simple comments
color green "\-\-.*$"
# Multiline comments
color green start="\-\-\[\[" end="\]\]"
# Strings
#color green "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'"
# Strings
color red "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'"
# color red start="\[\[" end="\]\]"
# Hex literals
color red "0x[0-9a-fA-F]*"
makefile.nanorc 0000644 00000000370 15122361175 0007526 0 ustar 00 # unattributed syntax highlighting example from wiki.linuxhelp.net/
syntax "makefile" "Makefile[^/]*$"
color red "[:=]"
color magenta "\<(if|ifeq|else|endif)\>"
color blue "\$+[{(][a-zA-Z0-9_-]+[})]"
color brightblue "^[^ ]+:"
color green "#.*$"
man-html/fr/nano.1.html 0000644 00000102076 15122361175 0010661 0 ustar 00
NANO
NANO
NOM
SYNOPSIS
DESCRIPTION
OPTIONS
FICHIERS D’INITIALISATION
NOTES
BOGUES
SITE INTERNET
VOIR AUSSI
AUTEUR
TRADUCTION
NOM
|
nano − NAno un NOuvel éditeur, un clone
libre et amélioré de Pico
|
SYNOPSIS
|
nano [OPTIONS] [[+LIGNE,COLONNE]
FICHIER]...
|
DESCRIPTION
|
Cette page de manuel décrit brièvement la
commande nano.
nano est un éditeur petit, sympathique et
libre, qui vise à remplacer Pico,
l’éditeur par défaut du logiciel non
libre Pine. nano ne se contentant pas de copier
l’interface et l’ergonomie de Pico, il offre
également certaines fonctions manquantes (ou
désactivées par défaut) dans Pico. Ces
fonctionnalités sont, par exemple, les fonctions de
recherche et de remplacement, et la possibilité de
sauter directement à une ligne et à une
colonne précise.
|
OPTIONS
|
Démarre avec le curseur positionné à
la colonne COLONNE de la ligne LIGNE
(l’un des deux, au moins, devant être
spécifié) au lieu de démarrer à
la colonne 1, ligne 1.
|
|
−?
|
|
Identique à -h (−−help).
|
|
|
Rend plus malin le fonctionnement de la touche «
Début ». Lorsque l’on appuie sur cette
touche à n’importe quel endroit excepté
au tout début du texte d’une ligne (i. e. au
premier caractère non blanc), le curseur se
positionnera au début du texte de la ligne
(qu’il soit en avant ou en arrière). Si le
curseur est déjà là, il se placera au
vrai début de la ligne.
|
|
Lors de l’écriture d’un fichier,
crée une copie de sécurité de la
version précédente, en ajoutant un tilde (~)
au nom du fichier.
|
|
Utilise des caractères gras à la place de
la vidéo inverse.
|
|
−C répertoire
(−−backupdir=répertoire) |
|
Définit le répertoire utilisé par
nano pour enregistrer les copies de
sécurité uniques si celles-ci sont
activées.
|
|
Convertit les tabulations clavier en espaces.
|
|
Active le mode multi-espace, autorisant
l’édition simultanée de plusieurs
fichiers, si ce mode est disponible.
|
|
Enregistre les chaînes ayant fait l’objet
d’une recherche ou d’un remplacement dans le
fichier ~/.nano_history afin de permettre leur
réutilisation. Ceci n’est possible que si
nano est configuré pour utiliser les fichiers
nanorc.
|
|
Ne pas utiliser pas les fichiers SYSCONFDIR/nanorc
et ~/.nanorc (si nano est capable de les
utiliser).
|
|
Interprète les touches du pavé
numérique afin qu’elles fonctionnent toutes
correctement. Vous ne devriez utiliser cette option que si
ce n’est pas le cas, car nano ne sera plus capable
d’utiliser la souris correctement lorsque cette option
sera activée.
|
|
Ne pas ajouter de passage à la ligne à la
fin des fichiers.
|
|
Désactive la conversion automatique des fichiers
depuis les formats Mac et DOS.
|
|
Utiliser la ligne blanche située sous la ligne de
titre comme espace supplémentaire
d’édition.
|
|
−Q chaîne
(−−quotestr=chaîne) |
|
Définit le préfixe par défaut des
citations. Nano utilise ce préfixe pour
réaliser une justification correcte des citations. Si
nano est capable d’utiliser des expressions
rationnelles, le préfixe par défaut sera
"^([ \t]*[#:>\|}])+", sinon, ce sera
"> ". Dans l’expression
rationnelle précédente, « \t
» représente une tabulation.
|
|
Mode restreint : aucune lecture ou écriture de
fichiers non indiqués sur la ligne de commande, pas
de lecture des fichiers nanorc, interdiction de suspendre,
interdiction d’ajouter au début, à la
fin, de sauvegarder un fichier ayant déjà un
nom sous un nom différent, d’utiliser une copie
de sécurité ou le correcteur orthographique.
Cette option peut aussi être activée en
appelant nano sous un nom commençant par
« r » (par exemple « rnano »).
|
|
Active le défilement progressif. Le texte
défilera ligne-par-ligne au lieu de défiler
morceau-par-morceau.
|
|
−T nombre
(−−tabsize=nombre) |
|
Définit la taille (largeur) des tabulations en
nombre de colonnes. Le nombre indiqué doit être
strictement supérieur à 0. La valeur par
défaut est de 8.
|
|
Effacement rapide de la ligne d’état. Les
messages affichés par la ligne d’état
disparaîtront après une frappe clavier au lieu
de 25. Notez que l’option -c prend le pas sur
cette option.
|
|
Affiche la version, puis s’arrête.
|
|
Détection plus précise des limites de mots,
obtenue en considérant les caractères de
ponctuation comme faisant partie des mots.
|
|
−Y chaîne
(−−syntax=chaîne) |
|
Indique quel mode de colorisation syntaxique adopter,
parmi les modes définis dans le fichier
.nanorc, si cette fonctionnalité est
disponible.
|
|
Affiche en permanence la position du curseur. Notez que
cette option prend le pas sur l’option -U.
|
|
Interprète différemment la touche «
Supprimer », afin que les touches « Effacement
arrière » et « Supprimer »
fonctionnent correctement. Vous ne devriez avoir besoin de
cette option que si, sur votre système, la touche
« Effacement arrière » produit
l’effet de la touche « Supprimer ».
|
|
Affiche un résumé des options de lancement
de nano, puis s’arrête.
|
|
Indentation automatique. Commence chaque nouvelle ligne
au même niveau que la ligne précédente.
Utile pour l’édition de code source.
|
|
Coupe le texte du curseur à la fin de la ligne, au
lieu de couper la ligne entière.
|
|
Si le fichier édité est un lien symbolique,
au lieu de le suivre, remplace le lien par le nouveau
fichier. Sans doute utile pour éditer les fichiers de
/tmp, non ?
|
|
Active l’utilisation de la souris, si elle est
disponible pour votre système. Lorsque celle-ci est
activée, il est possible d’utiliser la souris
pour positionner le curseur, pour marquer le texte (avec un
double-clic) et pour lancer les fonctions correspondant aux
raccourcis. Il est possible d’utiliser la souris sous
X Window ou en mode console avec gpm.
|
|
−o répertoire
(−−operatingdir=répertoire) |
|
Définit le répertoire de travail. Demande
à nano de mettre en place quelque chose de
similaire à un environnement d’exécution
restreint (chroot).
|
|
Préserve les séquences XON et XOFF (^Q et
^S), afin qu’elle soient reçues par le
terminal.
|
|
−r colonne
(−−fill=colonne) |
|
Passe automatiquement à la ligne une fois
arrivé à la colonne colonne. Si la
valeur indiquée est de 0 ou moins, le point de
passage à la ligne aura lieu à la taille de
l’écran moins colonne. Cela permet de
faire varier le point de passage à la ligne lorsque
l’on change la taille de l’écran. La
valeur par défaut est de −8.
|
|
−s programme
(−−speller=programme) |
|
Choix d’un correcteur orthographique de
remplacement.
|
|
S’il a été modifié, le fichier
sera sauvegardé automatiquement sans demande de
confirmation. Identique à l’option -t de
Pico.
|
|
Mode visualisation (lecture seule).
|
|
Désactive le passage automatique à la
ligne.
|
|
Désactive la barre d’aide affichée en
bas de l’écran.
|
|
Autorise à suspendre l’éditeur.
|
|
Ignoré, pour être compatible avec Pico.
|
FICHIERS D’INITIALISATION
|
nano lit les fichiers d’initialisation dans
l’ordre suivant : SYSCONFDIR/nanorc, puis
~/.nanorc. Référez-vous à la
page de manuel de nanorc(5) et au fichier
d’exemple nanorc.sample, qui devraient tous les
deux être livrés avec nano.
|
NOTES
|
Si aucun correcteur orthographique de remplacement
n’est indiqué dans la ligne de commande ou dans
l’un des fichiers nanorc, nano prendra la
commande indiquée par la variable
d’environnement SPELL si elle est
définie.
Dans certains cas, nano essaiera de sauvegarder le
fichier en cours d’édition dans un fichier de
secours. Cela arrivera principalement si nano
reçoit un signal SIGHUP ou SIGTERM, ou bien se trouve
à court de mémoire. Le nom de ce fichier de
secours sera nano.save si le fichier en cours
n’avait pas encore de nom, ou sera composé du
nom du fichier en cours suivi du suffixe « .save
». Si un fichier de ce nom existe déjà
dans le répertoire, un « .save » et un
nombre seront ajoutés à la fin du nom du
fichier en cours afin de le rendre unique (par exemple,
« .save.1 »). En mode multi-espace, nano
réalisera une sauvegarde de tous les fichiers en
cours dans leurs fichiers de secours respectifs.
|
BOGUES
|
Merci de nous faire parvenir vos commentaires et de nous
signaler les bogues, en écrivant, en anglais,
à nano@nano-editor.org.
La liste de discussion anglophone nano est
disponible à l’adresse
nano-devel@gnu.org.
Pour vous abonner, envoyez un courrier
électronique à
nano-devel-request@gnu.org, ayant pour objet «
subscribe ».
N’hésitez pas également à
envoyez vos commentaires, suggestions et corrections
relatives à l’adaptation française de
cette page de manuel ou du logiciel à
jean-philippe.guerard@tigreraye.org.
|
SITE INTERNET
|
http://www.nano-editor.org/
|
VOIR AUSSI
|
/usr/share/doc/nano/ (ou son équivalent sur
votre système)
|
AUTEUR
|
Chris Allegretta <chrisa@asty.org> et
d’autres (voir les fichiers AUTHORS et
THANKS pour plus d’information). Cette page de
manuel a été initialement
rédigée par Jordi Mallach
<jordi@gnu.org> pour le système Debian (mais
elle peut être utilisée par
d’autres).
|
TRADUCTION
|
Cette adaptation française a été
réalisée par Jean-Philippe Guérard
<jean-philippe.guerard@tigreraye.org> le 29 novembre
2007 à partir de la version 1.54 du 11 octobre 2007
de la page de manuel de nano 2.0.0. Cette page a
été relue par Gérard Delafond.
Un maximum de soin a été apporté
lors de l’élaboration de cette traduction ;
néanmoins, quelques imperfections peuvent subsister.
Si vous en rencontrez, que ce soit dans la version
française ou dans la version originale,
n’hésitez pas à les signaler à
l’auteur ou au traducteur.
La version originale la plus à jour de ce document
est toujours consultable via la commande :
LANGUAGE=en man nano
|
man-html/fr/nanorc.5.html 0000644 00000114013 15122361175 0011204 0 ustar 00
NANORC
NANORC
NOM
DESCRIPTION
OPTIONS
FICHIERS
VOIR AUSSI
AUTEUR
TRADUCTION
NOM
|
nanorc − fichier de configuration de
l’éditeur nano du projet GNU
|
DESCRIPTION
|
Cette page de manuel décrit brièvement le
fichier de configuration de l’éditeur
nano GNU.
nano est un petit éditeur sympathique et
libre, qui vise à remplacer Pico,
l’éditeur par défaut du logiciel non
libre Pine. nano ne se contentant pas de copier
l’interface et l’ergonomie de Pico, il offre
également certaines fonctionnalités manquantes
(ou désactivées par défaut) de Pico.
Ces fonctionnalités sont, par exemple, les fonctions
de recherche et de remplacement et la possibilité de
sauter directement à une ligne et à une
colonne précise.
Le fichier nanorc contient les paramètres
par défaut de nano. Il ne doit pas être
au format DOS ou Mac. Lors de son démarrage, nano
commencera par lire le fichier de configuration
général SYSCONFDIR/nanorc, puis lira le
fichier de configuration personnel de l’utilisateur
~/.nanorc.
|
OPTIONS
|
Le fichier de configuration accepte une série de
commandes set (activer) et unset
(désactiver), qui permettent de définir le
paramétrage de nano au démarrage sans avoir
à utiliser d’options de ligne de commande. De
plus, les mots clefs syntax (syntaxe), color
(couleur) et icolor (couleur insensible à la
casse) sont utilisés pour définir les
règles de colorisation pour différents motifs
de texte. nano lit une commande par ligne.
Les options du fichier de configuration ont
priorité sur les valeurs par défaut
utilisées par nano. Les options de la ligne de
commande sont prioritaires par rapport aux options du
fichier de configuration. Les options sont
désactivées (unset) par défaut, sauf
les options prenant un argument.
Les apostrophes (« ’ ») et les
guillemets droits (« " »)
présents dans des chaînes de caractères
utilisées comme paramètres n’ont pas
besoin d’être précédées
d’une barre oblique inversée (« \
»). La chaîne sera terminée par le
dernier guillemet droit. Par exemple, pour l’option
brackets, ""’)>]}"
correspondra à ", ’,
), >, ] et }.
Les commandes et arguments reconnus sont :
|
|
Active l’indentation automatique.
|
|
Crée des copies de sécurité
nommées nom_du_fichier~.
|
|
Définit le répertoire utilisé par
nano pour enregistrer les copies de
sécurité uniques, si l’enregistrement de
copies de sécurité est activé.
|
|
Par défaut, les recherches se font vers
l’arrière.
|
|
Utilise des caractères gras à la place de
la vidéo inverse.
|
|
Définit les caractères
considérés comme des crochets fermants lors de
la justification des paragraphes. Ces caractères ne
doivent pas contenir d’espaces. Seules les
ponctuations terminales, éventuellement suivies de
crochets fermants, peuvent terminer une phrase.
La valeur par défaut de cette option est :
""’)>]}".
N.D.T. : reportez-vous au paragraphe sur l’option
punct pour plus d’informations.
|
|
Par défaut, les recherches ne tiennent pas compte
de la casse.
|
|
Affiche en permanence la position du curseur dans la
ligne d’état.
|
|
Par défaut, coupe le texte du curseur à la
fin de la ligne, au lieu de couper la ligne
entière.
|
|
Passe automatiquement à la ligne une fois
arrivé à la colonne n. Si la valeur
indiquée est de 0 ou moins, le point de passage
à la ligne aura lieu à la taille de
l’écran moins n. Cela permet de faire
varier le point de passage à la ligne lorsque
l’on change la taille de l’écran. La
valeur par défaut est de −8.
|
|
Active l’utilisation de ~/.nano_history pour
enregistrer et relire les chaînes ayant fait
l’objet d’une recherche ou d’un
remplacement.
|
|
Définit les crochets ouvrants et fermant pour la
recherche de crochets correspondants. Cette liste ne doit
pas contenir de blancs. L’ensemble des crochets
ouvrants doit être indiqué en premier, suivi de
l’ensemble des crochets fermant, qui doit être
dans le même ordre. La valeur par défaut de
cette option est "(<[{)>]}".
|
|
Utiliser la ligne blanche située sous la ligne de
titre comme espace supplémentaire
d’édition.
|
|
Active l’utilisation de la souris, si elle est
disponible pour votre système. Lorsque celle-ci est
activée, il est possible d’utiliser la souris
pour positionner le curseur, pour marquer le texte (avec un
double-clic) et pour lancer les fonctions correspondant aux
raccourcis. Il est possible d’utiliser la souris sous
X Window ou en mode console avec gpm.
|
|
Mode multi-espace : permet de charger les fichiers dans
leur propre espace.
|
|
Pas de conversion depuis les formats DOS et Mac.
|
|
Ne suit pas les liens symboliques lors de
l’écriture des fichiers.
|
|
Désactive les lignes d’aide affichée
en bas de l’écran.
|
|
Ne pas ajouter de passage à la ligne à la
fin des fichiers.
|
|
Désactive le passage automatique à la
ligne.
|
|
set operatingdir répertoire |
|
nano ne lira et n’écrira des fichiers
qu’à l’intérieur du
répertoire et de ses sous-répertoires.
De plus, celui-ci devient le répertoire courant, afin
que les fichiers soient lus depuis ce répertoire. Par
défaut, cette fonction est
désactivée.
|
|
Préserve les séquences XON et XOFF (^Q et
^S).
|
|
Définit les caractères
interprétés comme des ponctuations terminales
lors de la justification des paragraphes. Ces
caractères ne peuvent inclure de blancs. Seules les
ponctuations terminales, éventuellement suivies de
crochets fermants, peuvent terminer une phrase. La valeur
par défaut de cette option est
"!.?".
N.D.T. : ce réglage permet, lors de la
justification, de conserver 2 espaces au lieu d’une
derrière les ponctuations terminales, ce qui
correspond aux normes typographiques anglo-saxonnes, mais
n’a pas lieu d’être en français.
Pour le français, le plus simple est
d’indiquer, dans le fichier nanorc, une chaîne
vide pour ce paramètre.
|
|
Effacement rapide de la ligne d’état. Les
messages affichés par la ligne d’état
disparaîtront après une frappe clavier au lieu
de 25.
|
|
Définit le préfixe par défaut
utilisé pour les citations dans les courriers
électroniques. Ce préfixe est utilisé
pour réaliser une justification correcte de ces
citations. Il s’agira, si votre système le
permet, d’une expression rationnelle étendue.
Dans le cas contraire, il s’agira d’une
chaîne de texte brut. Si vous disposez des expressions
rationnelles, la valeur par défaut de cette option
sera "^([ \t]*[#:>\|}])+", sinon, ce
sera "> ". Notez que le « \t »
ci-dessus correspond à un caractère de
tabulation.
|
|
Interprète différemment la touche «
Supprimer », afin que les touches « Effacement
arrière » et « Supprimer »
fonctionnent correctement. Vous ne devriez avoir besoin de
cette option que si, sur votre système, la touche
« Effacement arrière » produit
l’effet de la touche « Supprimer ».
|
|
Interprète les touches du pavé
numérique afin qu’elles fonctionnent toutes
correctement. Vous ne devriez utiliser cette option que si
ce n’est pas le cas, car nano ne sera plus capable
d’utiliser la souris correctement lorsque cette option
sera activée.
|
|
Utilise par défaut des expressions rationnelles
étendues pour les recherches.
|
|
Rend plus malin le fonctionnement de la touche «
Début ». Lorsque cette touche est
pressée à n’importe quel endroit
excepté au tout début du texte d’une
ligne (i. e. au premier caractère non blanc), le
curseur se positionnera au début du texte de la ligne
(qu’il soit en avant ou en arrière). Si le
curseur est déjà là, il se placera au
vrai début de la ligne.
|
|
Active le défilement ligne-par-ligne du texte.
|
|
Utilise le correcteur orthographique programme au
lieu du correcteur intégré, qui s’appuie
sur spell.
|
|
Autorise à suspendre nano.
|
|
Utilise une taille de tabulation de n colonnes.
Cette valeur doit être strictement supérieure
à 0. La valeur par défaut est de 8.
|
|
Convertit les tabulations clavier en espaces.
|
|
S’il a été modifié, le fichier
sera sauvegardé automatiquement en quittant, sans
demande de confirmation.
|
|
Interdit de modifier les fichiers.
|
|
Définit les deux caractères utilisés
pour afficher les premiers caractères des tabulations
et des espaces. Ces deux caractères doivent
être mono-colonne.
|
|
Détection plus précise des limites de mots,
obtenue en considérant les caractères de
ponctuation comme faisant partie des mots.
|
|
syntax chaîne
["motif_de_fichier" ...
] |
|
Définit une syntaxe nommée
chaîne qui pourra être activé via
l’option -Y (ou --syntax) ou qui sera
automatiquement activée si le nom du fichier en cours
correspond à l’expression rationnelle
étendue motif_de_fichier. Toutes les
instructions suivantes de colorisation color ou
icolor s’appliqueront à cette syntaxe,
jusqu’à la définition d’une
nouvelle syntaxe.
La syntaxe nommée none (aucune) est
réservée ; si elle est indiquée dans la
ligne de commande, cela revient à ne définir
aucune syntaxe. La syntaxe nommée default (par
défaut) est spéciale, elle ne nécessite
aucun motif de motif_de_fichier, et s’applique
aux fichiers ne correspondant à aucun des
motif_de_fichier des autres syntaxes.
|
|
color
couleur_texte[,couleur_fond]
motif ... |
|
Pour la syntaxe en cours, affiche toutes les expressions
correspondant à l’expression rationnelle
étendue motif en utilisant la couleur de texte
couleur_texte et la couleur de fond
couleur_fond, l’une de ces deux couleurs au
moins devant être définie. Les couleurs
acceptées par nano pour le texte et le fond
sont : white (blanc), black (noir), red
(rouge), blue (bleu), green (vert),
yellow (jaune), magenta, et cyan. Pour
la couleur du texte, vous pouvez ajouter à ces
couleurs le préfixe bright (lumineux) pour
obtenir une couleur plus lumineuse. Si votre terminal est
capable de gérer la transparence, ne pas
spécifier de couleur_fond indique à
nano d’essayer d’utiliser un fond
transparent.
|
|
icolor
couleur_texte[,couleur_fond]
motif ... |
|
Comme ci-dessus, mais la recherche des motifs est
effectuée sans tenir compte de la casse.
|
|
color
couleur_texte[,couleur_fond]
start="motif_début"
end="motif_fin" |
|
Affiche les expressions commençant par
l’expression rationnelle étendue
motif_début et se terminant par
l’expression rationnelle étendue
motif_fin en utilisant la couleur de texte
couleur_texte et la couleur de fond
couleur_fond, l’une de ces deux couleurs au
moins devant être définie. Cela permet à
la colorisation syntaxique de s’étendre sur
plusieurs lignes. Notez que toutes les occurrences
successives de motif_début après le
motif_début initial seront surlignées
jusqu’à la prochaine instance de
motif_fin.
|
|
icolor
couleur_texte[,couleur_fond]
start="motif_début"
end="motif_fin" |
|
Comme ci-dessus, mais la recherche des motifs est
effectuée sans tenir compte de la casse.
|
|
include fichier_de_syntaxes |
|
Lit le fichier fichier_de_syntaxes contenant une
liste autosuffisante de définitions de syntaxes. Ce
fichier ne doit contenir que des commandes syntax,
color et icolor.
|
FICHIERS
|
Fichier de configuration général
|
|
Fichier de configuration personnel
|
VOIR AUSSI
|
/usr/share/doc/nano/examples/nanorc.sample (ou son
équivalent sur votre système)
|
AUTEUR
|
Chris Allegretta <chrisa@asty.org> et
d’autres (voir les fichiers AUTHORS et
THANKS pour plus d’information). Cette page de
manuel a été initialement
rédigée par Jordi Mallach
<jordi@gnu.org> pour le système Debian (mais
elle peut être utilisée par
d’autres).
|
TRADUCTION
|
Cette adaptation française a été
réalisée par Jean-Philippe Guérard
<jean-philippe.guerard@tigreraye.org> le 29 novembre
2007 à partir de la version 1.56 du 11 octobre 2007
de la page de manuel de nanorc (pour la version 2.0.0 de
nano). Cette page a été relue par
Gérard Delafond.
Un maximum de soin a été apporté
lors de l’élaboration de cette traduction ;
néanmoins, quelques imperfections peuvent subsister.
Si vous en rencontrez, que ce soit dans la version
française ou dans la version originale,
n’hésitez pas à les signaler à
l’auteur ou au traducteur.
La version originale la plus à jour de ce document
est toujours consultable via la commande :
LANGUAGE=en man nano
|
man-html/fr/rnano.1.html 0000644 00000022152 15122361175 0011037 0 ustar 00
RNANO
RNANO
NOM
SYNOPSIS
DESCRIPTION
OPTIONS
BOGUES
SITE INTERNET
AUTEUR
TRADUCTION
NOM
|
rnano − Le mode restreint de NAno un NOuvel
éditeur, un clone libre et amélioré de
Pico
|
SYNOPSIS
|
rnano [OPTIONS] [[+LIGNE,COLONNE]
FICHIER]...
|
DESCRIPTION
|
Cette page de manuel décrit brièvement la
commande rnano.
nano est un éditeur petit, sympathique et
libre, qui vise à remplacer Pico,
l’éditeur par défaut du logiciel non
libre Pine. nano ne se contentant pas de copier
l’interface et l’ergonomie de Pico, il offre
également certaines fonctions manquantes (ou
désactivées par défaut) dans Pico. Ces
fonctionnalités sont, par exemple, les fonctions de
recherche et de remplacement, et la possibilité de
sauter directement à une ligne et à une
colonne précise..
rnano est une version de nano fonctionnant
en mode restreint, qui ne permet d’éditer que
les fichiers indiqués et qui n’autorise pas
l’utilisateur à accéder au
système de fichier ou à un interpréteur
de commandes.
En mode restreint, nano refusera :
|
|
•
|
de lire ou d’écrire dans un fichier
n’ayant pas été indiqué dans la
ligne de commande ;
|
|
•
|
de lire un fichier nanorc ;
|
|
•
|
de permettre de suspendre l’édition ;
|
|
•
|
de permettre d’ajouter en début ou en fin
d’un fichier, ou de l’enregistrer sous un nom
différent ;
|
|
•
|
l’utilisation de copies de sécurité
ou de la correction orthographique.
|
OPTIONS
|
Démarre avec le curseur positionné à
la colonne COLONNE de la ligne LIGNE
(l’un des deux, au moins, devant être
spécifié) au lieu de démarrer à
la colonne 1, ligne 1.
|
|
−?
|
|
Identique à -h (−−help).
|
|
|
Affiche un résumé des options de lancement
de nano, puis s’arrête.
|
|
Affiche la version, puis s’arrête.
|
|
Reportez-vous à la page de manuel nano(1)
si vous souhaitez consulter la documentation complète
de nano.
|
BOGUES
|
Merci de nous faire parvenir vos commentaires et de nous
signaler les bogues, en écrivant, en anglais,
à nano@nano-editor.org.
La liste de discussion anglophone nano est
disponible à l’adresse
nano-devel@gnu.org.
Pour vous abonner, envoyez un courrier
électronique à
nano-devel-request@gnu.org, ayant pour objet «
subscribe ».
N’hésitez pas également à
envoyez vos commentaires, suggestions et corrections
relatives à l’adaptation française de
cette page de manuel ou du logiciel à
jean-philippe.guerard@tigreraye.org.
|
SITE INTERNET
|
http://www.nano-editor.org/
|
AUTEUR
|
Chris Allegretta <chrisa@asty.org> et
d’autres (voir le fichier AUTHORS). Cette page
de manuel a été initialement
rédigée par Thijs Kinkhorst
<thijs@kinkhorst.com>, pour le système GNU
Debian (mais elle peut être utilisée par
d’autres).
|
TRADUCTION
|
Cette adaptation française a été
réalisée par Jean-Philippe Guérard
<jean-philippe.guerard@tigreraye.org> le 29 novembre
2007 à partir de la version 1.19 du 6 novembre 2007
de la page de manuel de rnano (pour la version 2.0.0 de
nano).
Un maximum de soin a été apporté
lors de l’élaboration de cette traduction ;
néanmoins, quelques imperfections peuvent subsister.
Si vous en rencontrez, que ce soit dans la version
française ou dans la version originale,
n’hésitez pas à les signaler à
l’auteur ou au traducteur.
La version originale la plus à jour de ce document
est toujours consultable via la commande :
LANGUAGE=en man nano
|
man-html/nano.1.html 0000644 00000033772 15122361175 0010260 0 ustar 00
NANO
NANO
NAME
SYNOPSIS
DESCRIPTION
OPTIONS
INITIALIZATION FILE
NOTES
BUGS
HOMEPAGE
SEE ALSO
AUTHOR
NAME
nano −
Nano’s ANOther editor, an enhanced free Pico clone
SYNOPSIS
nano
[OPTIONS] [[+LINE,COLUMN] FILE]...
DESCRIPTION
This manual
page briefly documents the nano command.
nano is
a small, free and friendly editor which aims to replace
Pico, the default editor included in the non-free Pine
package. Rather than just copying Pico’s look and
feel, nano also implements some missing (or disabled
by default) features in Pico, such as "search and
replace" and "go to line and column
number".
OPTIONS
+LINE,COLUMN
Places cursor at line number
LINE and column number COLUMN (at least one of
which must be specified) on startup, instead of the default
of line 1, column 1.
−A
(−−smarthome)
Make the Home key smarter. When
Home is pressed anywhere but at the very beginning of
non-whitespace characters on a line, the cursor will jump to
that beginning (either forwards or backwards). If the cursor
is already at that position, it will jump to the true
beginning of the line.
−B
(−−backup)
When saving a file, back up the
previous version of it to the current filename suffixed with
a ~.
−C dir
(−−backupdir=dir)
Set the directory where
nano puts unique backup files if file backups are
enabled.
−D
(−−boldtext)
Use bold text instead of
reverse video text.
−E
(−−tabstospaces)
Convert typed tabs to
spaces.
−F
(−−multibuffer)
Enable multiple file buffers,
if available.
−H
(−−historylog)
Log search and replace strings
to ~/.nano_history, so they can be retrieved in later
sessions, if nanorc support is available.
−I
(−−ignorercfiles)
Don’t look at
SYSCONFDIR/nanorc or ~/.nanorc, if
nanorc support is available.
−K
(−−rebindkeypad)
Interpret the numeric keypad
keys so that they all work properly. You should only need to
use this option if they don’t, as mouse support
won’t work properly with this option enabled.
−L
(−−nonewlines)
Don’t add newlines to the
ends of files.
−N
(−−noconvert)
Disable automatic conversion of
files from DOS/Mac format.
−O
(−−morespace)
Use the blank line below the
titlebar as extra editing space.
−P
(−−poslog)
Log & read location of
cursor position.
−Q str
(−−quotestr=str)
Set the quoting string for
justifying. The default is
"^([ \t]*[#:>\|}])+" if extended
regular expression support is available, or
"> " otherwise. Note that \t
stands for a Tab.
−R
(−−restricted)
Restricted mode: don’t
read or write to any file not specified on the command line;
read any nanorc files; allow suspending; allow a file
to be appended to, prepended to, or saved under a different
name if it already has one; or use backup files or spell
checking. Also accessible by invoking nano with any
name beginning with ’r’ (e.g.
"rnano").
−S
(−−smooth)
Enable smooth scrolling. Text
will scroll line-by-line, instead of the usual
chunk-by-chunk behavior.
−T cols
(−−tabsize=cols)
Set the size (width) of a tab
to cols columns. The value of cols must be
greater than 0. The default value is 8.
−U
(−−quickblank)
Do quick statusbar blanking.
Statusbar messages will disappear after 1 keystroke instead
of 25. Note that -c overrides this.
−V
(−−version)
Show the current version number
and exit.
−W
(−−wordbounds)
Detect word boundaries more
accurately by treating punctuation characters as part of a
word.
−Y str
(−−syntax=str)
Specify a specific syntax
highlighting from the nanorc to use, if
available.
−c
(−−const)
Constantly show the cursor
position. Note that this overrides -U.
−d
(−−rebinddelete)
Interpret the Delete key
differently so that both Backspace and Delete work properly.
You should only need to use this option if Backspace acts
like Delete on your system.
−h
(−−help)
Show a summary of command line
options and exit.
−i
(−−autoindent)
Indent new lines to the
previous line’s indentation. Useful when editing
source code.
−k
(−−cut)
Enable cut from cursor to end
of line.
−l
(−−nofollow)
If the file being edited is a
symbolic link, replace the link with a new file instead of
following it. Good for editing files in /tmp,
perhaps?
−m
(−−mouse)
Enable mouse support, if
available for your system. When enabled, mouse clicks can be
used to place the cursor, set the mark (with a double
click), and execute shortcuts. The mouse will work in the X
Window System, and on the console when gpm is running.
−o dir
(−−operatingdir=dir)
Set operating directory. Makes
nano set up something similar to a chroot.
−p
(−−preserve)
Preserve the XON and XOFF
sequences (^Q and ^S) so they will be caught by the
terminal.
−q
(−−quiet)
Do not report errors in the
nanorc file and ask them to be acknowledged by
pressing Enter at startup.
−r cols
(−−fill=cols)
Wrap lines at column
cols. If this value is 0 or less, wrapping will occur
at the width of the screen less cols columns,
allowing the wrap point to vary along with the width of the
screen if the screen is resized. The default value is
−8.
−s prog
(−−speller=prog)
Enable alternative spell
checker command.
−t
(−−tempfile)
Always save changed buffer
without prompting. Same as Pico’s -t
option.
−u
(−−undo)
Enable experimental
generic-purpose undo code. By default, the undo and redo
shortcuts are Meta-U and Meta-E, respectively.
−v
(−−view)
View file (read only) mode.
−w
(−−nowrap)
Disable wrapping of long
lines.
−x
(−−nohelp)
Disable help screen at bottom
of editor.
−z
(−−suspend)
Enable suspend ability.
−$
(−−softwrap)
Enable ’soft
wrapping’. nano will attempt to display the
entire contents of a line, even if it is longer than the
screen width. Since ’$’ normally refers to a
variable in the Unix shell, you should specify this option
last when using other options (e.g. ’nano
−wS$’) or pass it separately (e.g. ’nano
−wS −$’).
−a, −b,
−e, −f, −g, −j
Ignored, for compatibility with
Pico.
INITIALIZATION FILE
nano
will read initialization files in the following order:
SYSCONFDIR/nanorc, then ~/.nanorc. Please see
nanorc(5) and the example file nanorc.sample,
both of which should be provided with nano.
NOTES
If no
alternative spell checker command is specified on the
command line or in one of the nanorc files,
nano will check the SPELL environment variable
for one.
In some cases
nano will try to dump the buffer into an emergency
file. This will happen mainly if nano receives a
SIGHUP or SIGTERM or runs out of memory. It will write the
buffer into a file named nano.save if the buffer
didn’t have a name already, or will add a
".save" suffix to the current filename. If an
emergency file with that name already exists in the current
directory, it will add ".save" plus a number (e.g.
".save.1") to the current filename in order to
make it unique. In multibuffer mode, nano will write
all the open buffers to their respective emergency
files.
BUGS
Please send any
comments or bug reports to nano@nano-editor.org.
The nano
mailing list is available from
nano-devel@gnu.org.
To subscribe,
email to nano-devel-request@gnu.org with a subject of
"subscribe".
HOMEPAGE
http://www.nano-editor.org/
SEE ALSO
nanorc(5)
/usr/share/doc/nano/ (or equivalent on your system)
AUTHOR
Chris
Allegretta <chrisa@asty.org>, et al (see
AUTHORS and THANKS for details). This manual
page was originally written by Jordi Mallach
<jordi@gnu.org>, for the Debian system (but may be
used by others).
man-html/nanorc.5.html 0000644 00000070513 15122361175 0010603 0 ustar 00
NANORC
NANORC
NAME
DESCRIPTION
OPTIONS
KEY BINDINGS
FILES
SEE ALSO
AUTHOR
NAME
nanorc −
GNU nano’s rcfile
DESCRIPTION
This manual
page briefly documents GNU nano’s rcfile.
nano is
a small, free and friendly editor which aims to replace
Pico, the default editor included in the non-free Pine
package. Rather than just copying Pico’s look and
feel, nano also implements some missing (or disabled
by default) features in Pico, such as "search and
replace" and "go to line and column
number".
The
nanorc file contains the default settings for
nano. It should not be in DOS or Mac format. During
startup, nano will first read its system-wide
settings from SYSCONFDIR/nanorc, and then
user-specific settings from ~/.nanorc.
OPTIONS
The
configuration file accepts a series of set and
unset commands, which can be used to configure nano
on startup without using the command line options.
Additionally, the syntax, color, and
icolor keywords are used to define syntax
highlighting rules for different text patterns. nano
will read one command per line.
Options in
nanorc files take precedence over nano’s
defaults, and command line options override nanorc
settings. Also, options are unset by default, except for
those that take arguments.
Quotes inside
string parameters don’t have to be escaped with
backslashes. The last double quote in the string will be
treated as its end. For example, for the brackets
option, ""’)>]}" will match
", ’, ), >,
], and }.
The supported
commands and arguments are:
set/unset allow_insecure_backup
When backing up files, allow
the backup to succeed even if its permissions can’t be
(re)set due to special OS considerations. You should NOT
enable this option unless you are sure you need it.
set/unset autoindent
Use auto-indentation.
set/unset backup
Create backup files in
filename~.
set backupdir
directory
Set the directory where
nano puts unique backup files if file backups are
enabled.
set/unset backwards
Do backwards searches by
default.
set/unset boldtext
Use bold text instead of
reverse video text.
set brackets
string
Set the characters treated as
closing brackets when justifying paragraphs. They cannot
contain blank characters. Only closing punctuation,
optionally followed by closing brackets, can end sentences.
The default value is
""’)>]}".
set/unset
casesensitive
Do case sensitive searches by
default.
set/unset const
Constantly display the cursor
position in the status bar.
set/unset cut
Use cut to end of line by
default.
set fill n
Wrap lines at column number
n. If n is 0 or less, the maximum line length
will be the screen width less n columns. The default
value is −8.
set/unset historylog
Enable ~/.nano_history
for saving and reading search/replace strings.
set matchbrackets
string
Set the opening and closing
brackets that can be found by bracket searches. They cannot
contain blank characters. The former set must come before
the latter set, and both must be in the same order. The
default value is "(<[{)>]}".
set/unset morespace
Use the blank line below the
titlebar as extra editing space.
set/unset mouse
Enable mouse support, if
available for your system. When enabled, mouse clicks can be
used to place the cursor, set the mark (with a double
click), and execute shortcuts. The mouse will work in the X
Window System, and on the console when gpm is running.
set/unset
multibuffer
Allow inserting files into
their own buffers.
set/unset noconvert
Don’t convert files from
DOS/Mac format.
set/unset nofollow
Don’t follow symlinks
when writing files.
set/unset nohelp
Don’t display the help
lists at the bottom of the screen.
set/unset nonewlines
Don’t add newlines to the
ends of files.
set/unset nowrap
Don’t wrap text at
all.
set operatingdir
directory
nano will only read and
write files inside directory and its subdirectories.
Also, the current directory is changed to here, so files are
inserted from this directory. By default, the operating
directory feature is turned off.
set/unset preserve
Preserve the XON and XOFF keys
(^Q and ^S).
set punct
string
Set the characters treated as
closing punctuation when justifying paragraphs. They cannot
contain blank characters. Only closing punctuation,
optionally followed by closing brackets, can end sentences.
The default value is "!.?".
set/unset quiet
nano will not report
errors in the nanorc file and ask them to be
acknowledged by pressing enter at startup. If this is used
it should be placed at the top of the file to be fully
effective.
set/unset quickblank
Do quick statusbar blanking.
Statusbar messages will disappear after 1 keystroke instead
of 25.
set quotestr
string
The email-quote string, used to
justify email-quoted paragraphs. This is an extended regular
expression if your system supports them, otherwise a literal
string. The default value is
"^([ \t]*[#:>\|}])+" if you have
extended regular expression support, or
"> " otherwise. Note that
’\t’ stands for a literal Tab character.
set/unset
rebinddelete
Interpret the Delete key
differently so that both Backspace and Delete work properly.
You should only need to use this option if Backspace acts
like Delete on your system.
set/unset
rebindkeypad
Interpret the numeric keypad
keys so that they all work properly. You should only need to
use this option if they don’t, as mouse support
won’t work properly with this option enabled.
set/unset regexp
Do extended regular expression
searches by default.
set/unset poslog
Save the cursor position of
files between editing sessions.
set/unset smarthome
Make the Home key smarter. When
Home is pressed anywhere but at the very beginning of
non-whitespace characters on a line, the cursor will jump to
that beginning (either forwards or backwards). If the cursor
is already at that position, it will jump to the true
beginning of the line.
set/unset smooth
Use smooth scrolling by
default.
set/unset softwrap
Enable soft line wrapping for
easier viewing of very long lones.
set speller
spellprog
Use spelling checker
spellprog instead of the built-in one, which calls
spell.
set/unset suspend
Allow nano to be
suspended.
set tabsize n
Use a tab size of n
columns. The value of n must be greater than 0. The
default value is 8.
set/unset
tabstospaces
Convert typed tabs to
spaces.
set/unset tempfile
Save automatically on exit,
don’t prompt.
set/unset undo
Enable experimental
generic-purpose undo code.
set/unset view
Disallow file modification.
set/unset softwrap
Enable soft line wrapping for
easier viewing of very long lones.
set whitespace
string
Set the two characters used to
display the first characters of tabs and spaces. They must
be single-column characters.
set/unset wordbounds
Detect word boundaries more
accurately by treating punctuation characters as parts of
words.
syntax str
["fileregex" ... ]
Defines a syntax named
str which can be activated via the
−Y/−−syntax command line option, or will
be automatically activated if the current filename matches
the extended regular expression fileregex. All
following color and icolor statements will
apply to syntax until a new syntax is defined.
The none
syntax is reserved; specifying it on the command line is the
same as not having a syntax at all. The default
syntax is special: it takes no fileregex, and applies
to files that don’t match any other syntax’s
fileregex.
magic
["regex" ... ]
For the currently defined
syntax, add one or more regexes which will be compared
against the magic database when attempting to
determine which highlighting rules to use for a given file.
This functionality only works when libmagic is
installed on the system and will be silently ignored
otherwise.
color
fgcolor,bgcolor regex ...
For the currently defined
syntax, display all expressions matching the extended
regular expression regex with foreground color
fgcolor and background color bgcolor, at least
one of which must be specified. Legal colors for foreground
and background color are: white, black, red, blue, green,
yellow, magenta, and cyan. You may use the prefix
"bright" to force a stronger color highlight for
the foreground. If your terminal supports transparency, not
specifying a bgcolor tells nano to attempt to
use a transparent background.
icolor
fgcolor,bgcolor regex ...
Same as above, except that the
expression matching is case insensitive.
color
fgcolor,bgcolor
start="sr"
end="er"
Display expressions which start
with the extended regular expression sr and end with
the extended regular expression er with foreground
color fgcolor and background color bgcolor, at
least one of which must be specified. This allows syntax
highlighting to span multiple lines. Note that all
subsequent instances of sr after an initial sr
is found will be highlighted until the first instance of
er.
icolor
fgcolor,bgcolor
start="sr"
end="er"
Same as above, except that the
expression matching is case insensitive.
include
syntaxfile
Read in self-contained color
syntaxes from syntaxfile. Note that syntaxfile
can only contain syntax, color, and
icolor commands.
KEY BINDINGS
Key bindings
may be reassigned via the following commands:
bind key function menu
Rebinds the key key to a
new function named function in the context of menu
menu. The format of key should be one of:
|
^ |
|
followed by an alpha character or the word
"Space". Example: ^C |
|
M- |
|
followed by a printable character or the word
"Space". Example: M-C |
|
F |
|
followed by a numeric value from 1 to 16. Example:
F10 |
Valid function names to be
bound include:
help
Invoke the help menu.
cancel
Cancel the current command.
exit
Exit from the program.
writeout
Write the current buffer to
disk.
justify
Justify the current text.
insert
Insert a file into the current
buffer (or into a new buffer when multibuffer is
enabled).
whereis
Search for text in the current
buffer.
searchagain
Repeat the last search
command.
|
up |
|
Move up in the editor or browser. |
|
down
Move down in the editor or
browser.
left
Move left in the editor or
browser.
right
Move right in the editor or
browser.
cut
Cut the current line of text
and store it.
uncut
Copy the currently stored text
into the current buffer position.
curpos
Show the current line, column,
word positions in the file.
firstline
Move to the first line of the
file.
lastline
Move to the last line of the
file.
gotoline
Move to a specific line (and
column if specified).
replace
Interactively replace text
within the current buffer.
mark
Begin selecting text for
cutting or pasting at the current position.
copytext
Copy the currently marked text
without deleting it.
indent
Indent the currently marked
text (shift to the right).
unindent
Un-indent the currently marked
text (shift to the left).
nextword
Move the cursor to the
beginning of the next word.
prevword
Move the cursor to the
beginning of the previous word.
home
Move the cursor to the
beginning of the current line.
end
Move the cursor to the end of
the current line.
beginpara
Move the cursor to the
beginning of the current paragraph.
endpara
Move the cursor to the end of
the current paragraph.
findbracket
Move the cursor to the matching
bracket (brace, parenthesis, etc.) of the one under the
cursor.
scrollup
Scroll up one line of text from
the current position.
scrolldown
Scroll down one line of text
from the current position.
prevbuf
Switch to editing/viewing the
previous buffer when using multibuffer mode.
nextbuf
Switch to editing/viewing the
next buffer when using multibuffer mode.
verbatim
Insert the next character
verbatim into the file.
tab
Insert a tab at the current
cursor location.
enter
Insert a new line below the
current one.
delete
Delete the character under the
cursor.
fulljustify
Justify the entire current
file.
wordcount
Count the number of words in
the current buffer.
refresh
Refresh the screen.
undo
Undo the text action peformed
(add text, delete text, etc).
redo
Redo the last undone action
(i.e., undo an undo).
suspend
Suspend the editor (if the
suspend function is enabled, see the
"suspendenable" entry below).
casesens
Toggle case sensitivity in
searching (search/replace menus only).
regexp
Toggle whether
searching/replacing is based on literal strings or regular
expressions.
prevhistory
Show the previous history entry
in the prompt menus (e.g. search).
nexthistory
Show the next history entry in
the prompt menus (e.g. search).
dontreplace
Switch back to searching
instead of replacing.
gototext
Search for files matching a
string in the file browser (reading or writing files).
dosformat
When writing a file, switch to
writing a DOS format (CR/LF).
macformat
When writing a file, switch to
writing a Mac format.
append
When writing a file, append to
the end instead of overwriting.
prepend
When writing a file,
’prepend’ (write at the beginning) instead of
overwriting.
backup
When writing a file, create a
backup of the current file.
firstfile
Move to the first file when
using the file browser (reading or writing files).
lastfile
Move to the last file when
using the file browser (reading or writing files).
nohelp
Toggle showing/hiding the
two-line list of key bindings at the bottom of the
screen.
constupdate
Constantly display the current
line, column, word positions.
morespace
Toggle showing/hiding the blank
line which ’separates’ the ’title’
from the file text.
smoothscroll
Toggle smooth scrolling when
moving via the arrow keys.
whitespacedisplay
Toggle whether whitespace is
shown.
smarthome
Toggle whether the smart home
key function is enabled.
autoindent
Toggle whether new lines will
contain the same amount of whitespace as the line above.
cuttoend
Toggle whether cutting text
will cut the whole line or just from the current cursor
position to the end of the line.
nowrap
Toggle whether long lines will
be wrapped to the next line.
suspendenable
Toggle whether the suspend
sequence (normally ^Z) will suspend the editor window.
Valid menu
sections are:
main
The main editor window where
text is entered.
search
The search menu (AKA
whereis).
replace
The ’search to
replace’ menu.
replacewith
The ’replace with’
menu, which comes up after ’search to
replace’.
gotoline
The ’goto line (and
column)’ menu.
writeout
The ’write file’
menu.
insert
The ’insert file’
menu.
extcmd
The menu for inserting output
from an external comman, reached from the insert menu.
help
The help menu.
spell
The interactive spell checker
Yes/no menu.
browser
The file browser for inserting
or writing a file.
whereisfile
The ’search for a
file’ menu in the file browser.
gotodir
The ’go to
directory’ menu.
all
A special name meaning: apply
to all menus where this function exists.
unbind key
menu
Unbind the key key from
the menu named menu or from all menus by using
all. Same key syntax as for binding. Rebinds the key
key to a new function named function in the
context of menu menu. The format of key should
be one of:
FILES
SYSCONFDIR/nanorc
System-wide configuration
file
~/.nanorc
Per-user configuration file
SEE ALSO
nano(1)
/usr/share/doc/nano/examples/nanorc.sample (or
equivalent on your system)
AUTHOR
Chris Allegretta
<chrisa@asty.org>, et al (see AUTHORS and
THANKS for details). This manual page was originally
written by Jordi Mallach <jordi@gnu.org>, for the
Debian system (but may be used by others).
man-html/rnano.1.html 0000644 00000015370 15122361175 0010434 0 ustar 00
RNANO
RNANO
NAME
SYNOPSIS
DESCRIPTION
OPTIONS
BUGS
HOMEPAGE
AUTHOR
NAME
|
rnano − Restricted mode for Nano’s ANOther
editor, an enhanced free Pico clone
|
SYNOPSIS
|
rnano [OPTIONS] [[+LINE,COLUMN]
FILE]...
|
DESCRIPTION
|
This manual page briefly documents the rnano
command.
nano is a small, free and friendly editor which
aims to replace Pico, the default editor included in the
non-free Pine package. Rather than just copying Pico’s
look and feel, nano also implements some missing (or
disabled by default) features in Pico, such as "search
and replace" and "go to line and column
number".
rnano is a restricted version of nano,
which only edits specific files and doesn’t allow the
user access to the filesystem or a command shell.
In restricted mode, nano will not:
|
|
•
|
|
read or write to any file not specified on the command
line;
|
|
•
|
|
read any nanorc files;
|
|
•
|
|
allow suspending;
|
|
•
|
|
allow a file to be appended to, prepended to, or saved
under a different name;
|
|
•
|
|
use backup files or spell checking.
|
OPTIONS
|
Places cursor at line number LINE and column
number COLUMN (at least one of which must be
specified) on startup, instead of the default of line 1,
column 1.
|
|
Show a summary of command line options and exit.
|
|
Show the current version number and exit.
|
|
See the nano(1) manpage for the complete
documentation of nano.
|
BUGS
|
Please send any comments or bug reports to
nano@nano-editor.org.
The nano mailing list is available from
nano-devel@gnu.org.
To subscribe, email to nano-devel-request@gnu.org
with a subject of "subscribe".
|
HOMEPAGE
|
http://www.nano-editor.org/
|
AUTHOR
|
Chris Allegretta <chrisa@asty.org>, et al (see
AUTHORS for details). This manual page was originally
written by Thijs Kinkhorst <thijs@kinkhorst.com>, for
the Debian system (but may be used by others).
|
man.nanorc 0000644 00000000461 15122361175 0006525 0 ustar 00 ## Here is an example for manpages.
##
syntax "man" "\.[1-9]x?$"
magic "troff or preprocessor input text"
color green "\.(S|T)H.*$"
color brightgreen "\.(S|T)H" "\.TP"
color brightred "\.(BR?|I[PR]?).*$"
color brightblue "\.(BR?|I[PR]?|PP)"
color brightwhite "\\f[BIPR]"
color yellow "\.(br|DS|RS|RE|PD)"
mgp.nanorc 0000644 00000000333 15122361175 0006533 0 ustar 00 ## Here is an example for Magicpoint presentations
##
syntax "mgp" "\.mgp$"
header "^%include.*"
icolor green "^%[a-z].*$"
color cyan "(^|[[:space:]])#.*$"
color cyan "(^|[[:space:]])%%.*$"
color ,green "[[:space:]]+$"
mutt.nanorc 0000644 00000000137 15122361175 0006743 0 ustar 00 ## Here is an example for quoted emails (under e.g. mutt).
##
syntax "mutt"
color green "^>.*"
nanorc.nanorc 0000644 00000002143 15122361175 0007231 0 ustar 00 ## Here is an example for nanorc files.
##
syntax "nanorc" "\.?nanorc$"
## Possible errors and parameters
icolor brightwhite "^[[:space:]]*((un)?set|include|syntax|i?color).*$"
## Keywords
icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(allow_insecure_backup|autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|poslog|preserve|punct)\>" "^[[:space:]]*(set|unset)[[:space:]]+(quickblank|quotestr|rebinddelete|rebindkeypad|regexp|smarthome|smooth|softwrap|speller|suspend|suspendenable|tabsize|tabstospaces|tempfile|undo|view|whitespace|wordbounds)\>"
icolor green "^[[:space:]]*(set|unset|include|syntax|header|magic)\>"
## Colors
icolor yellow "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)="
## Strings
icolor white ""(\\.|[^"])*""
## Comments
icolor brightblue "^[[:space:]]*#.*$"
icolor cyan "^[[:space:]]*##.*$"
objc.nanorc 0000644 00000003240 15122361175 0006665 0 ustar 00 ## Here is an example for C/C++/Obj-C.
##
syntax "m" "\.m$"
## Stuffs
color brightwhite "\<[A-Z_][0-9A-Z_]+\>"
color green "\<(float|double|BOOL|bool|char|int|short|long|id|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
color green "\<[[:alpha:]_][[:alnum:]_]*_t\>"
color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>"
color brightgreen "\<(for|if|while|do|else|case|default|switch)\>"
color brightgreen "\<(try|throw|catch|operator|new|delete)\>"
color brightgreen "\<(goto|continue|break|return)\>"
color brightgreen "@\<(en(code|d)|i(mplementation|nterface)|selector)\>"
##
## GCC builtins
color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__"
## Selector/method
color brightmagenta "(^|[[:space:]])\[.*[[:space:]].*\]"
color white ":[[:alnum:]]*"
color magenta "[[:alnum:]]*:"
color white "\[[^][:space:]]*\]"
##
## String highlighting. You will in general want your comments and
## strings to come last, because syntax highlighting rules will be
## applied in the order they are read in.
color brightblack "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'"
color brightblack "<[^= ]*>" ""(\\.|[^"])*""
color brightblue "@"(\\.|[^"])*""
##
## This string is VERY resource intensive!
## color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
color brightblue "^[[:space:]]*#[[:space:]]*(define|include|import|(un|ifn?)def|endif|el(if|se)|if|warning|error)"
## Comment highlighting
color yellow "//.*"
color yellow start="/\*" end="\*/"
ocaml.nanorc 0000644 00000001427 15122361175 0007050 0 ustar 00 # OCaml sample nanorc
#
syntax "ocaml" "\.mli?$"
#uid
color red "\<[A-Z][0-9a-z_]{2,}\>"
#declarations
color green "\<(let|val|method|in|and|rec|private|virtual|constraint)\>"
#structure items
color red "\<(type|open|class|module|exception|external)\>"
#patterns
color blue "\<(fun|function|functor|match|try|with)\>"
#patterns-modifiers
color yellow "\<(as|when|of)\>"
#conditions
color cyan "\<(if|then|else)\>"
#blocs
color magenta "\<(begin|end|object|struct|sig|for|while|do|done|to|downto)\>"
#constantes
color green "\<(true|false)\>"
#modules/classes
color green "\<(include|inherit|initializer)\>"
#expr modifiers
color yellow "\<(new|ref|mutable|lazy|assert|raise)\>"
#comments
color white start="\(\*" end="\*\)"
#strings (no multiline handling yet)
color brightblack ""[^\"]*""
patch.nanorc 0000644 00000000413 15122361175 0007046 0 ustar 00 ## Here is an example for patch files.
##
syntax "patch" "\.(patch|diff)$"
magic "diff output text"
color brightgreen "^\+.*"
color green "^\+\+\+.*"
color brightblue "^ .*"
color brightred "^-.*"
color red "^---.*"
color brightyellow "^@@.*"
color magenta "^diff.*"
perl.nanorc 0000644 00000002670 15122361175 0006720 0 ustar 00 ## Here is an example for Perl.
##
syntax "perl" "\.p[lm]$"
magic "perl.*script text"
header "^#!.*/perl[-0-9._]*"
color red "\<(accept|alarm|atan2|bin(d|mode)|c(aller|h(dir|mod|op|own|root)|lose(dir)?|onnect|os|rypt)|d(bm(close|open)|efined|elete|ie|o|ump)|e(ach|of|val|x(ec|ists|it|p))|f(cntl|ileno|lock|ork))\>" "\<(get(c|login|peername|pgrp|ppid|priority|pwnam|(host|net|proto|serv)byname|pwuid|grgid|(host|net)byaddr|protobynumber|servbyport)|([gs]et|end)(pw|gr|host|net|proto|serv)ent|getsock(name|opt)|gmtime|goto|grep|hex|index|int|ioctl|join)\>" "\<(keys|kill|last|length|link|listen|local(time)?|log|lstat|m|mkdir|msg(ctl|get|snd|rcv)|next|oct|open(dir)?|ord|pack|pipe|pop|printf?|push|q|qq|qx|rand|re(ad(dir|link)?|cv|do|name|quire|set|turn|verse|winddir)|rindex|rmdir|s|scalar|seek(dir)?)\>" "\<(se(lect|mctl|mget|mop|nd|tpgrp|tpriority|tsockopt)|shift|shm(ctl|get|read|write)|shutdown|sin|sleep|socket(pair)?|sort|spli(ce|t)|sprintf|sqrt|srand|stat|study|substr|symlink|sys(call|read|tem|write)|tell(dir)?|time|tr(y)?|truncate|umask)\>" "\<(un(def|link|pack|shift)|utime|values|vec|wait(pid)?|wantarray|warn|write)\>"
color magenta "\<(continue|else|elsif|do|for|foreach|if|unless|until|while|eq|ne|lt|gt|le|ge|cmp|x|my|sub|use|package|can|isa)\>"
icolor cyan start="[$@%]" end="( |[^0-9A-Z_]|-)"
color yellow "".*"|qq\|.*\|"
color white "[sm]/.*/"
color white start="(^use| = new)" end=";"
color green "#.*"
color yellow start="<< 'STOP'" end="STOP"
php.nanorc 0000644 00000001307 15122361175 0006541 0 ustar 00 ## Here is an example for PHP
##
syntax "php" "\.php[2345s~]?$"
magic "PHP script text"
## php markings
color brightgreen "(<\?(php)?|\?>)"
## functions
color white "\<[a-z_]*\("
## types
color green "\<(var|float|global|double|bool|char|int|enum|const)\>"
## structure
color brightyellow "\<(class|new|private|public|function|for|foreach|if|while|do|else|elseif|case|default|switch)\>"
## control flow
color magenta "\<(goto|continue|break|return)\>"
## strings
color brightyellow "<[^= ]*>" ""(\.|[^"])*""
## comments
color brightblue "//.*"
color brightblue start="/\*" end="\*/"
#color blue start="<" end=">"
#color red "&[^;[[:space:]]]*;"
## Trailing whitespace
color ,green "[[:space:]]+$"
pov.nanorc 0000644 00000001252 15122361175 0006555 0 ustar 00 ## Here is an example for POV-Ray.
##
syntax "pov" "\.(pov|POV|povray|POVRAY)$"
color brightcyan "^[[:space:]]*#[[:space:]]*(declare)"
color brightyellow "\<(sphere|cylinder|translate|matrix|rotate|scale)\>"
color brightyellow "\<(orthographic|location|up|right|direction|clipped_by)\>"
color brightyellow "\<(fog_type|fog_offset|fog_alt|rgb|distance|transform)\>"
color brightred "^\<(texture)\>"
color brightred "\<(light_source|background)\>"
color brightred "\<(fog|object|camera)\>"
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
color brightmagenta "\<(union|group|subgroup)\>"
## Comment highlighting
color brightblue "//.*"
color brightblue start="/\*" end="\*/"
python.nanorc 0000644 00000001017 15122361175 0007271 0 ustar 00 ## Here is an example for Python.
##
syntax "python" "\.py$"
header "^#!.*/python[-0-9._]*"
icolor brightblue "def [0-9A-Z_]+"
color brightcyan "\<(and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield)\>"
color brightgreen "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}"
color brightgreen "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
color brightgreen start=""""[^"]" end=""""" start="'''[^']" end="'''"
color brightred "#.*$"
ruby.nanorc 0000644 00000002703 15122361175 0006734 0 ustar 00 ## Here is an example for Ruby.
##
syntax "ruby" "\.rb$"
header "^#!.*/ruby[-0-9._]*"
## Asciibetical list of reserved words
color yellow "\<(BEGIN|END|alias|and|begin|break|case|class|def|defined\?|do|else|elsif|end|ensure|false|for|if|in|module|next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\>"
## Constants
color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*"
## Ruby "symbols"
icolor magenta "([ ]|^):[0-9A-Z_]+\>"
## Some unique things we want to stand out
color brightyellow "\<(__FILE__|__LINE__)\>"
## Regular expressions
color brightmagenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*"
## Shell command expansion is in `backticks` or like %x{this}. These are
## "double-quotish" (to use a perlism).
color brightblue "`[^`]*`" "%x\{[^}]*\}"
## Strings, double-quoted
color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
## Expression substitution. These go inside double-quoted strings,
## "like #{this}".
color brightgreen "#\{[^}]*\}"
## Strings, single-quoted
color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
## Comments
color cyan "#[^{].*$" "#$"
color brightcyan "##[^{].*$" "##$"
## "Here" docs
color green start="<<-?'?EOT'?" end="^EOT"
## Some common markers
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
sh.nanorc 0000644 00000001336 15122361175 0006366 0 ustar 00 ## Here is an example for Bourne shell scripts.
##
syntax "sh" "\.sh$"
magic "(POSIX|Bourne.*) shell script text"
header "^#!.*/(ba|k|pdk)?sh[-0-9_]*"
icolor brightgreen "^[0-9A-Z_]+\(\)"
color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>"
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
color green "-[Ldefgruwx]\>"
color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>"
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
color cyan "(^|[[:space:]])#.*$"
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
color ,green "[[:space:]]+$"
spec.nanorc 0000644 00000003613 15122361175 0006706 0 ustar 00 # RPM spec files syntax highlighting
# Parts taken from kate (KDE) syntax highlighting
# Asterios Dramis
syntax "spec" "\.(spec$|spec\.*)"
# Main tags
color brightblue "((Icon|ExclusiveOs|ExcludeOs)[[:space:]]*:)"
color brightblue "((BuildArch|BuildArchitectures|ExclusiveArch|ExcludeArch)[[:space:]]*:)"
color brightblue "((Conflicts|Obsoletes|Provides|Requires|Requires\(.*\)|Enhances|Suggests|BuildConflicts|BuildRequires|Recommends|PreReq|Supplements)[[:space:]]*:)"
color brightblue "((Epoch|Serial|Nosource|Nopatch)[[:space:]]*:)"
color brightblue "((AutoReq|AutoProv|AutoReqProv)[[:space:]]*:)"
color brightblue "((Copyright|License|Summary|Summary\(.*\)|Distribution|Vendor|Packager|Group|Source\d*|Patch\d*|BuildRoot|Prefix)[[:space:]]*:)"
color brightblue "((Name|Version|Release|Url|URL)[[:space:]]*:)"
color brightblue start="^Source" end=":" start="^Patch" end=":"
# Architectures
color brightred "(i386|i486|i586|i686|athlon|ia64|alpha|alphaev5|alphaev56|alphapca56|alphaev6|alphaev67|sparc|sparcv9|sparc64armv3l|armv4b|armv4lm|ips|mipsel|ppc|ppc|iseries|ppcpseries|ppc64|m68k|m68kmint|Sgi|rs6000|i370|s390x|s390|noarch)"
# Architectures conditionals
color brightred "(ifarch|ifnarch)"
# OS conditionals
color brightred "(ifos|ifnos)"
# %* strings
color green "%([A-Z_a-z_0-9_]*)"
color magenta "%_([A-Z_a-z_0-9_]*)"
color yellow start="%__" end="\ "
color magenta start="%\{" end="\}"
color yellow start="%\{__" end="\}"
# Sections
color red "^%(build$|changelog|check$|clean$|description|files|install$|package|pre|prep$|preun|post|postun)"
color red "^%(trigger|triggerin|triggerpostun|triggerun|verifyscript)"
# Conditionals and Defines
color brightred "%(if|else|endif|define|global|undefine)"
# Comments
color cyan "#.*$"
# "# norootforbuild" is handled as main tag
color brightblue "^# norootforbuild"
# %changelog date entries
color brightyellow "^\* .*\)$"
# Trailing whitespace
color ,green "[[:space:]]+$"
tcl.nanorc 0000644 00000004076 15122361175 0006542 0 ustar 00 syntax "tcl" "\.tcl$"
## Standard Tcl [info commands]
color green "\<(after|append|array|auto_execok|auto_import|auto_load|auto_load_index|auto_qualify|binary|break|case|catch|cd|clock|close|concat|continue|encoding|eof|error|eval|exec|exit|expr|fblocked|fconfigure|fcopy|file|fileevent|flush|for|foreach|format|gets|glob|global|history|if|incr|info|interp|join|lappend|lindex|linsert|list|llength|load|lrange|lreplace|lsearch|lset|lsort|namespace|open|package|pid|puts|pwd|read|regexp|regsub|rename|return|scan|seek|set|socket|source|split|string|subst|switch|tclLog|tell|time|trace|unknown|unset|update|uplevel|upvar|variable|vwait|while)\>"
## Basic Tcl sub commands.
color green "\<(array anymore|array donesearch|array exists|array get|array names|array nextelement|array set|array size|array startsearch|array statistics|array unset)\>"
color green "\<(string bytelength|string compare|string equal|string first|string index|string is|string last|string length|string map|string match|string range|string repeat|string replace|string to|string tolower|string totitle|string toupper|string trim|string trimleft|string trimright|string will|string wordend|string wordstart)\>"
## Extended TclX [info commands]
color green "\<(alarm|auto_load_pkg|bsearch|catclose|catgets|catopen|ccollate|cconcat|cequal|chgrp|chmod|chown|chroot|cindex|clength|cmdtrace|commandloop|crange|csubstr|ctoken|ctype|dup|echo|execl|fcntl|flock|fork|fstat|ftruncate|funlock|host_info|id|infox|keyldel|keylget|keylkeys|keylset|kill|lassign|lcontain|lempty|lgets|link|lmatch|loadlibindex|loop|lvarcat|lvarpop|lvarpush|max|min|nice|pipe|profile|random|readdir|replicate|scancontext|scanfile|scanmatch|select|server_accept|server_create|signal|sleep|sync|system|tclx_findinit|tclx_fork|tclx_load_tndxs|tclx_sleep|tclx_system|tclx_wait|times|translit|try_eval|umask|wait)\>"
## Syntax.
color brightblue "proc[[:space:]]" "(\{|\})"
color green "(\(|\)|\;|`|\\|\$|<|>|!|=|&|\|)"
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
color ,green "[[:space:]]+$"
color ,magenta "^[[:space:]]*#.*"
tex.nanorc 0000644 00000000215 15122361175 0006547 0 ustar 00 ## Here is a short example for TeX files.
##
syntax "tex" "\.tex$"
icolor green "\\.|\\[A-Z]*"
color magenta "[{}]"
color blue "(^|[^\])%.*"
xml.nanorc 0000644 00000000437 15122361175 0006555 0 ustar 00 ## Here is an example for xml files.
##
syntax "xml" "\.([jrs]html?|sgml?|xml|xslt?)$"
magic "XML.*document text"
color green start="<" end=">"
color cyan "<[^> ]+"
color cyan ">"
color yellow start=""
color yellow start=""
color red "&[^;]*;"