Saltar a contenido

NANO

## MOSTRAR NUMERO DE LINEAS

Para eso presionamos alt + altGR + 3

font: https://askubuntu.com/questions/73444/how-to-show-line-numbering-in-nano-when-opening-a-file#:~:text=The%20keyboard%20combination%20to%20display,using%20nano%20is%20CTRL%20%2B%20C%20.

MARKDOWN Syntax Highlighting

  • 1 Nos dirigimos a:

    cd /usr/share/nano/
    

  • 2 Creamos o editamos:

    sudo nano /usr/share/nano/markdown.nanorc
    

  • 3 Agregamos este codigo:

syntax "markdown" "\.md$" "\.markdown$"

## Quotations
color cyan "^>.*"

## Emphasis
color green "_[^_]*_"
color green "\*[^\*]*\*"

## Strong emphasis
color brightgreen "\*\*[^\*]*\*\*"
color brightgreen "__[\_]*__"

## Underline headers
color brightblue "^====(=*)"
color brightblue "^----(-*)"

## Hash headers
color brightblue "^#.*"

## Linkified URLs (and inline html tags)
color brightmagenta start="<" end=">"

## Links
color brightmagenta "\[.*\](\([^\)]*\))?"

## Link id's:
color brightmagenta "^\[.*\]:( )+.*"

## Code spans
color brightyellow "`[^`]*`"

## Links and inline images
color brightmagenta start="!\[" end="\]"
color brightmagenta start="\[" end="\]"

## Lists
color yellow "^( )*(\*|\+|\-|[0-9]+\.) "

Font: https://ourcodeworld.com/articles/read/807/how-to-enable-syntax-highlighting-for-markdown-files-in-gnu-nano