You are not logged in.

#1 2008-01-31 20:23:58

kanpio
Member
From: Poland/Wrocław
Registered: 2006-01-25
Posts: 49

pacman.conf file syntax highlighting for nano

Hi, here is pacman.conf file syntax highlighting for nano. It may be useful for those who edit their pacman.conf regularly.

Just put this lines in the end of your /etc/nanorc or ~/.nanorc file:

# syntax highlithing in pacman.conf
syntax "pacman.conf" "pacman\.conf$"
color brightwhite start="\[" end="\]"
color brightyellow ".*="
color brightred "=.*"
color white "="
color brightblue "\[|\]"
color brightcyan start="/|http|ftp" end=".*"
color green "#.*"

In this thread you can find rc.conf file syntax highlighting.

Offline

Board footer

Powered by FluxBB