I have some HTML like this:
<script type="text/javascript" language="JavaScript"> <!-- Copyright 2001 William Bontrager // You may use this JavaScript code so long as the copyright line, the more info link, and // the instructions remain with the code. For additional form creation and script // customizing information, see the article "JavaScript Quiz Program" linked from // http://willmaster.com/possibilities/archives/ // On the next line, specify the number of answer choices at each question: NumChoices = 4; // Leave next five lines as is. function CalculateScore() { var score = 0; for (i = 0; i < NumChoices; i++) { ..... } <morehtml>html</morehtml>
So here is my problem: if we remove all "\n" chars from the above code, it breaks. How can I prevent FCK from putting all html on 1 line (removing \n chars)?
Re: keep newlines in HTML
Re: keep newlines in HTML
When I hit "submit" I get 1 long line.
When I hit source (after first pasting src and editing), I do see it doesn't change the script (before submitting) - BUT this is still a problem because of bad coding on my html pages (that I didn't code...).
Re: keep newlines in HTML
With tomorrows nightly you won't even have to check the source as it will be shown in white-space:pre (to check online use the php samples)
Re: keep newlines in HTML