Skip to content

Instantly share code, notes, and snippets.

@jsz0
Created October 3, 2015 21:20
Show Gist options
  • Save jsz0/6573002192c8e766eaea to your computer and use it in GitHub Desktop.
Save jsz0/6573002192c8e766eaea to your computer and use it in GitHub Desktop.
grc color enhancement for sipcalc 1.1.6
# 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
@wxcafe
Copy link

wxcafe commented Apr 3, 2018

Thanks a lot for this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment