num3-mode
- Description
- highlight groups of digits in long numbers
- Latest
- num3-mode-1.5.0.20221221.81242.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.5.0.20220826.163343.tar.lz | 2022-Aug-26 | 5.23 KiB |
num3-mode-1.4.0.20220805.202359.tar.lz | 2022-Aug-06 | 4.42 KiB |
num3-mode-1.4.0.20220805.104051.tar.lz | 2022-Aug-05 | 4.48 KiB |
num3-mode-1.4.0.20220804.195543.tar.lz | 2022-Aug-04 | 4.07 KiB |
num3-mode-1.3.0.20201128.235916.tar.lz | 2020-Dec-14 | 2.68 KiB |
num3-mode-1.3.0.20201128.185916.tar.lz | 2021-Oct-09 | 2.69 KiB |