GNU ELPA - num3-mode

num3-mode

Description
highlight groups of digits in long numbers
Latest
num3-mode-1.5.tar (.sig), 2024-Mar-31, 30.0 KiB
Maintainer
Michal Nazarewicz <mina86@mina86.com>
Atom feed
num3-mode.xml
Website
https://elpa.gnu.org/packages/num3-mode.html
Browse repository
CGit or Gitweb
Badge

To install this package from Emacs, use package-install or list-packages.

Full description

Num3 is a minor mode that makes long numbers and other numeric data
more readable by highlighting groups of digits in a string when
font-lock is on.

For example, an integer ‘28318530’ would be split into 3-digit-long
groups as ‘(28)(318)(530)’ and then each group highlighted using
alternating face.  This improves readability of the number by clearly
denoting millions, thousands and ones.  Besides integers and real
numbers, the mode also supports dates in ‘20151021T0728’ format.

The mode supports:
- decimal numbers, e.g. 1234567 or 6.2831853,
- hexadecimal integers, e.g. 0x1921FB5, #x1921FB5 or unprefixed 1921FB5,
- octal integers, e.g. 0o1444176 or #o1444176,
- binary integers, e.g. 0b1100100100 or #b1100100100,
- hexadecimal floating point numbers, e.g. 0x1.921FB54p+2,
- timestamps, e.g. 20151021T0728

Decimal and octal numbers are split into 3-digit-long groups (the
length is customisable); hexadecimal and binary numbers are split
into 4-digit-long groups; timestamps are split based on the part of
the date or time.

Old versions

num3-mode-1.4.tar.lz2022-Aug-044.05 KiB
num3-mode-1.3.el.lz2018-Mar-303.24 KiB
num3-mode-1.2.el.lz2014-Feb-242.58 KiB
num3-mode-1.1.el.lz2012-Nov-292.37 KiB