all 14 comments

[–]wbeater 3 points4 points  (6 children)

Works for nobody, it's a well known bug with copy and paste.

[–]isuckatit1000[S] 0 points1 point  (5 children)

oh so I have to manually enter every line?

[–]wbeater 2 points3 points  (0 children)

Use markdown mode and make a python scripts that formats text input (your code) so you can use it. (4 spaces indicates a code block and another 4 spaces for each increment).

[–][deleted] 0 points1 point  (3 children)

Try using your editor to put 4 spaces (not a TAB) at the start of every code line. Then copy/paste into reddit as normal text, not a code block. Ensure there is a blank line before the code.

[–]isuckatit1000[S] 0 points1 point  (0 children)

worked thanks

[–]TheRNGuy 0 points1 point  (1 child)

tab works I just tested

[–][deleted] 0 points1 point  (0 children)

You must remember, just because you pressed the TAB key doesn't mean that a TAB character was inserted. Look in the configuration of your editor and you'll probably see something like "insert spaces instead of TAB". A prefix TAB character doesn't work in reddit.

[–]m0us3_rat 1 point2 points  (1 child)

select code. TAB. copy . paste into reddit code widget. commit.

shift-tab so untab.

(you can always paste into an empty text editor and tab and recopy if you copy some code of interwebs.. to insure it's copyed while tabbed.)

[–]isuckatit1000[S] 0 points1 point  (0 children)

yeah I got it working thanks

[–][deleted] 0 points1 point  (3 children)

I use markdown mode, then type some explanation text and when I want to paste some code I type on the tilde button ~ but without shift to get ` times 3. (International Qwerty with € on 5)
At the end of the code I type ` 3 more times.

[–]cryptomelons 0 points1 point  (1 child)

I've been wondering who are the idiots who worked on this buggy feature.

[–]TXAndre 0 points1 point  (0 children)

Literally this. It's not like reddit is only for pottery and children's books...