ElasticNotepad
ElasticNotepad copied to clipboard
Right-align numbers
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
yayaya... but it is really simple! ... conceptually