Questions about ubb transcoding

Source: Internet
Author: User
We are currently working on a php ubb transcoding task. The code highlighting plug-in is used.
 

If I use nl2br, each line will contain
, Pre also exists, resulting in
It is typed out.
If it is not added, multiple lines of text are displayed in one line. If you want to add [br] or leave two blank lines to indicate a br, the user experience will be greatly affected.
Therefore, I would like to ask you how to add a br to the place where the br is added. for example, if a common multi-line text is added, it will not be added to the places where the text is not added, such/
/
  • And so on


    Reply to discussion (solution)

    You did not clarify your problem
    The pre tag will treat the carriage return linefeed as the actual carriage return linefeed. that is to say, if there is a carriage return linefeed in the string, the actual result will be a real yellow line.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.