I like how nano not only shows you unnecessary whitespaces, it throws them in your face and and screams "YOU SEE THAT? WHAT IS THIS SHIT? DELETE THIS DISGRACE TO CLEAN INDENTED CODE!"

  • 23
    Clean the monitor.. please
  • 4
    I personally find white space helps code readability. Nobody wants to read code that is all crammed together.
  • 3
    @MaccaMc what you are referring to are empty lines, what is highlighted is whitespaces in empty line aka spaces and tabs ending with \n .
  • 1
    @MaccaMc the empty line isn't what's highlighted, it's extra spaces in that line. If those spaces are deleted then the empty line will still be there and not highlighted.
  • 0
    Ohh. My bad :p
  • 0
    Jetbrains IDE removes them automatically for you (or it's an option). Which is even better imo.
  • 0
    @kerrermanisNL I know... But I think it would run quiet slow on my raspi ;)
  • 2
    @Elandor coding directly on a RasPi? I use JetBrains on my main computer and deploy the code to my RasPi when I want to change code ;)
  • 1
    @NathanDoesDev. Tbh, I really like the "retro" feel :D
  • 0
    @Elandor haha fair enough! :)
  • 1
    vim does the same thing, more configurable actually:

    " Show all tabs:
    " Show trailing whitespace:
    " Show trailing whitespace only after some text (ignores blank lines):
    " Show spaces before a tab:
    / \+\ze\t

    From vim.wikia
  • 1
    Dat print screen, btw
  • 0
    Is that PHP?
  • 0
  • 0
    @Elandor oh interesting. It's been so long since I last touched C that I didn't remember it having arrow "->" operators or "0b" binary notation.
Add Comment