Created
April 30, 2024 16:04
-
-
Save devinci-it/f3fb306ee182a788dbfc14cbdedb1dd8 to your computer and use it in GitHub Desktop.
This file contains settings for the Nano text editor. Each setting is preceded by a comment explaining its purpose. You can enable syntax highlighting, line numbers, soft wrapping, and more
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Nano Configuration File | |
| # | |
| # This file contains settings for the Nano text editor. Uncomment or modify the settings below | |
| # to customize your Nano experience. Each setting is preceded by a comment explaining its purpose. | |
| # You can enable syntax highlighting, line numbers, soft wrapping, and more. | |
| # | |
| # Enable line numbers for better navigation | |
| set linenumbers | |
| # Enable syntax highlighting for various programming languages | |
| include "/usr/share/nano/*.nanorc" | |
| # Enable soft wrapping of long lines for easier reading | |
| set softwrap | |
| # Enable case-sensitive search for more precise searches | |
| set casesensitive | |
| # Automatically indent new lines based on the previous line | |
| set autoindent | |
| # Create a backup of the file when saving (adds a ~ to the original filename) | |
| set backup | |
| # Enable mouse support for easier navigation | |
| set mouse | |
| # Show the current cursor position in the status bar | |
| set constantshow | |
| # Enable smooth scrolling for a more pleasant editing experience | |
| set smooth | |
| # Highlight the matching parenthesis when the cursor is next to one | |
| set showmatch | |
| # Convert tabs to spaces for consistent indentation | |
| set tabstospaces | |
| # Uncomment the following lines to enable docstring highlighting | |
| # include "/usr/share/nano/python.nanorc" | |
| # include "/usr/share/nano/javascript.nanorc" | |
| # include "/usr/share/nano/html.nanorc" | |
| # Uncomment the following line to enable documentation highlighting | |
| # include "/usr/share/nano/man.nanorc" | |
| ## Python specific settings ## | |
| # Set Python-specific indentation to 4 spaces | |
| syntax "python" "\.py$" | |
| set tabsize 4 | |
| set tabstospaces | |
| ## JSON specific settings ## | |
| # Set JSON-specific indentation to 2 spaces | |
| syntax "json" "\.json$" | |
| set tabsize 2 | |
| set tabstospaces | |
| ## String delimiter settings for files with both single and double quotes ## | |
| # Treat both single and double quotes as string delimiters | |
| syntax "default" ".*" | |
| icolor brightblue "['\"]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment