1) pasted in source mode (Which should be default when you open an editor)
3) then toggled to WYSIWYG mode
However if you first toggle to WYWIWYG mode (if thats what you want) then paste code, it doesnt affect it. Only when you toggle between them.
def list_count_4(nums): count = 0 for num in nums: if num == 4: count = count + 1 return count2) is correctly formated
3) then toggled to WYSIWYG mode
def list_count_4(nums): count = 0 for num in nums: if num == 4: count = count + 1 return count5) now loses indentation, and you cant get it back by toggling
However if you first toggle to WYWIWYG mode (if thats what you want) then paste code, it doesnt affect it. Only when you toggle between them.
def list_count_4(nums): count = 0 for num in nums: if num == 4: count = count + 1 return countSo yeah i guess if you toggle the modes when code is already on the post, it just removes the indentation altogether. Ill add that in the help docs
Recommended Tutorials: