Make level the printed symbols in the ouput

118 views Asked by At

Consider this Ruby code:

puts "*****"
puts "    *"
puts "     "
puts "*****"
puts "       *"

My Output is like this:

*****  
  *

*****
    *

Why the heck a whitespace doesn't fill the same space as * character in Scite? I've tried it in Eclypse with Java and it works just fine.

2

There are 2 answers

1
Dave Newton On BEST ANSWER

Proportional fonts have characters of varying widths, ruining space-based alignment.

Switch to a monospace font (e.g., Courier) so all characters are the same size and it'll work.

0
user815693 On

In order to make it work in Scite You should add style.errorlist.32=$(font.monospace) in SciteUser.properties file