Why do I have this spaces? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
22nd Feb 2019, 8:50 AM
Oma Falk
Oma Falk - avatar
8 Answers
+ 5
if you are talking about the red lines on the right. those spaces are for indentation. it's a coding style. it makes your code easier to read.
22nd Feb 2019, 9:23 AM
Bahhaⵣ
Bahhaⵣ - avatar
+ 6
how can i get rid of it bahha
22nd Feb 2019, 9:30 AM
Oma Falk
Oma Falk - avatar
+ 6
Gordon yes please
23rd Feb 2019, 7:16 AM
Oma Falk
Oma Falk - avatar
+ 5
didnt mean spaces but the underlines _. i want spaces instead of
22nd Feb 2019, 6:22 PM
Oma Falk
Oma Falk - avatar
+ 3
Arushi has asked same questions and Calvin told her to use html formatter (a website) to remove the non text contents when she copied some codes from text editors to code editors. If you need, I can try to dig that Q&A out.
23rd Feb 2019, 2:28 AM
Gordon
Gordon - avatar
+ 2
it's not a good idea to remove them. because they make the code more readable. and they define where each block starts and where it ends. that being said you can just delete them like any other character. click at the end of every space or tabs and delete. are you editing the code in a text editor?
22nd Feb 2019, 9:36 AM
Bahhaⵣ
Bahhaⵣ - avatar
+ 2
I can't find the Q&A, seems it's gone. But you can visit html formatter .com and format your html code to remove the invisible characters.
23rd Feb 2019, 8:16 AM
Gordon
Gordon - avatar
+ 1
It's https://htmlformatter.com Just paste the code and get the proper formatted output.
23rd Feb 2019, 10:40 AM
Calviղ
Calviղ - avatar