tutoriels:nano
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tutoriels:nano [29/09/2019 20:31] – créée stephane.dufour.ilinux.fr | tutoriels:nano [01/10/2019 19:47] (Version actuelle) – stephane.dufour.ilinux.fr | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== Configuration nano ====== | ====== Configuration nano ====== | ||
| + | {{ : | ||
| + | \\ | ||
| + | Permet de colorer par défaut les **__fichiers de configuration__** (Extension .conf)avec l’éditeur nano .\\ | ||
| - | en utilisateur root : | + | Avec l'utilisateur root : |
| - | < | + | < |
| + | nano / | ||
| + | </ | ||
| + | Puis copier/ | ||
| + | |||
| + | <code bash> | ||
| + | # config file highlighting | ||
| + | |||
| + | syntax " | ||
| + | |||
| + | # default text | ||
| + | color magenta " | ||
| + | |||
| + | # special values | ||
| + | icolor brightblue " | ||
| + | |||
| + | # keys | ||
| + | icolor cyan " | ||
| + | |||
| + | # commands | ||
| + | color blue " | ||
| + | |||
| + | # punctuation | ||
| + | color blue " | ||
| + | |||
| + | # numbers | ||
| + | color red " | ||
| + | |||
| + | # keys | ||
| + | icolor cyan " | ||
| + | |||
| + | # punctuation | ||
| + | color blue "/" | ||
| + | color brightwhite " | ||
| + | color brightwhite " | ||
| + | |||
| + | # section headings | ||
| + | icolor brightyellow " | ||
| + | color brightcyan " | ||
| + | color brightcyan " | ||
| + | |||
| + | # URLs | ||
| + | icolor green " | ||
| + | |||
| + | # XML-like tags | ||
| + | icolor brightcyan "</? | ||
| + | |||
| + | # strings | ||
| + | color yellow " | ||
| + | |||
| + | # comments | ||
| + | color white "# | ||
| + | color blue " | ||
| + | color white " | ||
| + | color white start="< | ||
| + | </ | ||
| + | |||
| + | Vous pouvez profitez de l’édition de vos fichiers de configuration (.conf) en mode coloré. | ||
tutoriels/nano.1569789098.txt.gz · Dernière modification : 29/09/2019 20:31 de stephane.dufour.ilinux.fr
