• Please review our updated Terms and Rules here

Indentation is no longer preserved when pasting from external file

carlos12

Experienced Member
Joined
May 10, 2020
Messages
183
Location
Madrid, Spain
Before the forum software update, when code was pasted from an external source (i.e. an editor such as Notepad++, VS Code or the like), the indentation was preserved. The new forum's text editor just removes all tabs and indentations.

Regards!
 
text
indent with 1 tab
indent with 2 tabs
text



indented text
more indented
indented text

text
indent with spaces
indent with more spaces
text

text
indent with 1 tab
indent with 2 tabs
text



indented text
more indented
indented text

text
indent with spaces
indent with more spaces
text

Code:
text
indent with 1 tab
indent with 2 tabs
text



indented text
more indented
indented text

text
indent with spaces
indent with more spaces
text

The editor strips leading tabs and spaces for me when pasting also. Maybe it's browser related? For this post I used Edge (and pasted from Windows 10 Notepad)
 
Back
Top