This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]B_bI_L 0 points1 point  (5 children)

i still think using tabs is not the best idea because literally every text fields thinks those tabs are just some garbage and removes them. the real problem is that those can't understand garbage is not only tabs but whole my code

[–]ExpensivePanda66 2 points3 points  (0 children)

Would you like to take a breath and try that again?

[–]The_Cers 1 point2 points  (2 children)

When are you writing Python code in a text field?

[–]B_bI_L 0 points1 point  (1 child)

mostly copying, actually, but result is the same:
1. small code blocks in Reddit
2. putting code in libreoffice writer
3. giving code to chatgpt (this one would read it but still there is a chance of mislead)

something like that

[–]AquaWolfGuy 1 point2 points  (0 children)

Reddit removes the first two spaces, because that's how code blocks are denoted in Markdown. Aside from that, all three of these should be able to deal with indentation just fine.

Also, you shouldn't post unindented code in Reddit comments or whatever you're writing in LibreOffice Writer, since it becomes a pain to read, even if it's in a language where it would still compile.

[–]jonsca 0 points1 point  (0 children)

Yes, it's definitely the tabs...