Empty line breaks in code view

Last post 01-09-2012, 11:11 AM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  01-06-2012, 12:47 PM 72530

    Empty line breaks in code view

    In certain instances, I am launching CuteEditor in HTML(code) only view for things like a plain text / css file.  To do this, I am hiding the Normal and Preview modes, and setting code view to the default.
     
    For readability, we would like to add in empty lines into the file so we can separate sections.  However, when I save the file, CuteEditor is removing all of the empty lines.
     
    Is there way to configure CuteEditor to allow for this behavior?  Thanks!
  •  01-06-2012, 10:58 PM 72532 in reply to 72530

    Re: Empty line breaks in code view

    amcintire ,
     
    In the html view, if you want to add line breaks, please use <br>.
     
    For example
     
    Hello World
    <br>
     Welcome. 

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  01-08-2012, 9:14 AM 72548 in reply to 72532

    Re: Empty line breaks in code view

    Hi Adam,
     
    Sorry I don't think I explained my question correctly.  Say we have an existing css file that looks something like this:
     
    ===================
    /* globals */
    body {  ...  } 
     
    /* Headers */
    h1 { ....  }
    h2 { .... }
     
     /* Contact Form */
    #contact p { .... }
    ==================== 
     
    When I expose this content in CuteEditor where only the HTML view is used, I would like a user to come in and edit a line, save the file, and then still have those empty lines maintained between the sections for readability.  Is this possible with CuteEditor? 
  •  01-09-2012, 11:11 AM 72570 in reply to 72548

    Re: Empty line breaks in code view

    Hi amcintire,
     
    In html, there is not empty line. CuteEditor only save the html code, it does not know what is the empty line, so will not save it in to the file.
     
    Regards,
     
    Ken 
View as RSS news feed in XML