Created
October 3, 2015 21:20
-
-
Save jsz0/6573002192c8e766eaea to your computer and use it in GitHub Desktop.
grc color enhancement for sipcalc 1.1.6
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
# ipv4 addr | |
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} | |
colours=magenta | |
====== | |
# ipv6 addr | |
regexp=(\b[0-9a-fA-F]{1,4}(\:\:?[0-9a-fA-F]{1,4})+|::1) | |
colours=magenta | |
====== | |
# netmask-hex | |
regexp=\s[0-9a-fA-F]+$ | |
colours=blue | |
===== | |
# netmask-slash | |
regexp=([/][0-9][0-9]?) | |
colours=green | |
===== | |
# formatting | |
regexp=([-]|ipv4|CIDR|[[]|[]]) | |
colours=cyan | |
===== | |
# columns | |
regexp=(^Host|[(]decimal[)]|[(]hex[)]|Network|[(]bits[)]|mask|address|^Broadcast|^Cisco\swildcard|^Addresses\sin\snetwork|range|^Usable) | |
colours=yellow | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks a lot for this :)