Tab spacing copying from Notepad++ into WordPress
-
Hi,
I’m having this strange issue where I am editing a css file in NP++ and have all my indentations perfect to 2 spaces. I then copy and paste the entire code from NP++ in to WordPress via Appearance > Editor > Styles > Additional CSS field.
For some reason, the indentation of the pasted code in Additional CSS window is completely out of whack. The spacing varies from 4 to 8 and there’s no consistency at all, as if it completely randomises it. Because I sometimes edit my css directly in WordPress, it makes it awful to work with.
Does anyone know what’s up with this?
Thanks.
-
indentations perfect to 2 spaces
Does this mean that you have Notepad++ set up such that tab characters are visualized as two spaces, or that you aren’t using tab characters at all and simply have Notepad++ directly insert two spaces when you press the Tab key when your caret is in a tab-stop column?
If you are inserting tab characters in your Notepad++ document, then copying your text to another program for processing allows that other program to interpret tab characters as it sees fit (which could easily be different from “two spaces” in Wordpress’s default handling).
Possible solutions to your “problem” might be to stop using tab characters (if that’s truly what you are doing), or look into adjusting Wordpress’s settings for how to handle tab characters (if it has such settings).
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login