ElasticNotepad icon indicating copy to clipboard operation
ElasticNotepad copied to clipboard

Right-align numbers

Open geroldmeisinger opened this issue 1 year ago • 2 comments

What you think about this:

public→int→myint→=→123
protected→float→myfloat→=→0.5
private→string→mystr→=→"abc"

checks if the subsequent (non-space) character is a number and right-aligns them

public↔    int↔    myint↔   =↔ 123
protected↔ float↔  myfloat↔ =↔   0.5
private↔   string↔ mystr↔   =↔ "abc"

in most programming languages numbers can be defined as:

integer        123
float           +3.14
floatshort        .5
exponential     -5e6
hex         0xCAFE
octal        0o755 (ignore old notation: o755)
binary      0b1010

Keep it simple, stupid!

yayaya... but it is really simple! ... conceptually

geroldmeisinger avatar Nov 13 '24 11:11 geroldmeisinger