[fpc-pascal] Underscores in numerical literals - grouping

Marco van de Voort marcov at stack.nl
Tue Nov 22 09:31:45 CET 2016


In our previous episode, Graeme Geldenhuys said:
> > other editors.
> 
> Elastic Tabstops (ET) only does rendering of the text - based on two
> user defined preferences. The underling file doesn't change because of
> user preference changes. The underlying file is just a TAB(U+0009)
> indented file - like most programming language style defaults (Object
> Pascal for some reason being the exception - but it doesn't need to be).

Yeah, that's what I mean. One of the reasons why hardtabs are such pain is
because you need settings to view a file properly.

I've worked with quite some C/C++ and Java IDEs, but can't really remember
any defaulting to hardtabs (some did default to LF-only files though,
another PITA)

> Anyway, again, my discussion wasn't meant to be about ET specifically,
> but simply that text editors could become more intelligent by
> automatically adjusting the spacing of long numerical literals (without
> affecting the underlying file - like ET capable editors achieve).

If you can do it in IDE, do it in IDE, indeed. A popup with some separators
inserted and/or multiple number systems would be the way to go in this case
I guess.



More information about the fpc-pascal mailing list