How to make code's new line isn't a interval line using "Posting Source Code" ?
-
Hello,
I took justjennifer and ravichahar’s advice (https://en.forums.wordpress.com/topic/which-theme-my-idol-have-used-on-his-wordpress-blog/) last week.
Now, I change my code using “Posting Source Code” and find that there has always a new interval line on it. How to make code’s new line isn’t a interval line using “Posting Source Code” ?
Please see my 2 snapshots as follows,
(1) https://snag.gy/sIKb82.jpg
(2) https://snag.gy/Lux4SX.jpg
Best Regards
Quanwen ZhaoThe blog I need help with is: (visible only to logged in users)
-
Hey Quanwen,
It’s happening because there is no space in between the SQL queries. As you can see after “set” the line is consistent with no space which means it can’t be broken.
It acts as one word and you can’t a work into characters when publishing. WordPress.com handles the code according to the proper coding standards and that’s how it should be written.
And if you’re talking about the line space after every SQL query, it’s may be happening because you have copied it from somewhere and pasted to the post editor.
If you did that, try deleting that line space manually.
Otherwise, everything is fine.
-
Hello, ravichahar
I just input my code manually on WordPress’ Editor interface and maybe it’s no related to using “Posting Source Code”.
I’ve found my problem is due to using “Paragraph” rather than “Preformatted” on WordPress editor’s format setting. If so, it has produced a new line. Afterwards, I use the setting of “Preformatted” and “Posting Source Code” and it shows perfectly.
Thank you very much.
Best Regards
Quanwen Zhao -
- The topic ‘How to make code's new line isn't a interval line using "Posting Source Code" ?’ is closed to new replies.