[fpc-pascal] Underscores in numerical literals - grouping

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Tue Nov 22 11:05:43 CET 2016

On 2016-11-22 04:41, Flávio Etrusco wrote:
> The editor can just switch to a monospaced font when the
> vertical/column selecion-mode is toggled, this is what Eclipse does.

Exactly, and if you are prefixing something or inserting something in
multiple lines that all have the same text, even in proportional fonts
(and the way ET aligns them), it will work just fine.

I'm fully aware than the idea of using proportional fonts for coding or
most text editor work sounds alien - simply because that is how it was
done for decades. But times have changed, some editors have advanced,
some editors have implemented more intelligent ways of working with text
and fonts - opening up more possibilities to use better looking fonts.
Eclipse and IntelliJ IDEA (surprisingly both implemented in Java -
coincidence or not) has raised the bar considerably when it comes to
intelligent text (source code) management. Both Eclipse and MS Visual
Studio support Elastic Tabstop plugins too.

Anyway, time permitting, I'll play with my experimental text editor and
see if I can implement a more intelligent way of displaying long
numerical literals with group spacing (visual rendering only - no
changes to the underlying file).


fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

My public PGP key:  http://tinyurl.com/graeme-pgp

More information about the fpc-pascal mailing list