Both sides previous revisionPrevious revision | Next revisionBoth sides next revision |
nano [2022/04/30 01:31] – add cheatsheet section peteyboy | nano [2022/04/30 01:38] – emphasized sections peteyboy |
---|
A great addition, especially if you connect to SDF on a color terminal, is nano's use of "syntax" files, which provide syntax highlighting for several programming languages and related filetypes, such as HTML files, shell scripts, shell resource files (like ''.bashrc'') and even the nano resource file ''.nanorc'', where the settings for syntax file are kept. | A great addition, especially if you connect to SDF on a color terminal, is nano's use of "syntax" files, which provide syntax highlighting for several programming languages and related filetypes, such as HTML files, shell scripts, shell resource files (like ''.bashrc'') and even the nano resource file ''.nanorc'', where the settings for syntax file are kept. |
| |
== How to Activate Syntax Hightlighting == | ==== How to Activate Syntax Hightlighting ==== |
To activate syntax highlighting, we are going to copy the default ''nanorc'' file to your user space and edit it. The steps are: | To activate syntax highlighting, we are going to copy the default ''nanorc'' file to your user space and edit it. The steps are: |
- copy the default file ''nanorc'' to your local as a resource file, ''.nanorc'' (yes, with the dot)<code> | - copy the default file ''nanorc'' to your local as a resource file, ''.nanorc'' (yes, with the dot)<code> |
| |
| |
=== nano cheatsheet === | ==== nano cheatsheet ==== |
Nano, like 'pico', has Help. So if you start with the [[pico_cheat_sheet|pico cheatsheet]] and read the Help, you'll get what you need. | Nano, like 'pico', has Help. So if you start with the [[pico_cheat_sheet|pico cheatsheet]] and read the Help, you'll get what you need. |
| |
| |