locked
How to Split below code in multiple lines RRS feed

  • Question

  • User1979860870 posted

    Hi

    string textBody = " <table border="+1+" cellpadding="+0+" cellspacing="+0+" width = "+400+"><tr bgcolor='#4da6ff'><td><b>Column 1</b></td> <td> <b> Column 2</b> </td></tr>"; 

    Thanks

    Wednesday, December 30, 2020 6:35 AM

All replies

  • User1535942433 posted

    Hi jagjit saini,

    Accroding to your description,I'm guessing that you want wrap the code.

    1.You could click "Enter" key.

    2.You could use "+" between two lines.

    Just like this:

     string textBody = " <table border=" + 1 + " cellpadding=" + 0 + " cellspacing=" + 0 + " width = " + 400 + ">" +
                    "<tr bgcolor='#4da6ff'>" +
                    "<td><b>Column 1</b></td> " +
                    "<td> <b> Column 2</b> </td></tr>";

    Best regards,

    Yijing Sun

    Thursday, December 31, 2020 5:16 AM