notepad++ user defined regions with folding

后端 未结 7 886
梦谈多话
梦谈多话 2020-11-28 23:00

I can\'t figure out how to configure notepad++ to display regions for user defined keywords.

I have a big trace file which shows the start and the end of a procedure

相关标签:
7条回答
  • 2020-11-28 23:29

    !! Disclaimer: Total noob at PHP !!

    Assuming that you are wrapping your PHP in some HTML, you can define custom sections using <?php and?>.

    Ex:

    <html>
    <head></head>
    <body>
    <?php 
    $cities[1] = "Phoenix";$cities[2] = "Tucson";$cities[3] = "Flagstaff";  
    $capitals['CA'] = "Sacramento";$capitals['TX'] = "Austin";$capitals['OR'] = "Salem";    
    $cities[] = "Phoenix";$cities[] = "Tucson";$cities[] = "Flagstaff"; 
    echo "Here are cities: $cities[1]";echo nl2br("\n");
    ?>
    </br>
    <?php
    $cities = array( "Phoenix","Tucson","Flagstaff");   
    $capitals = array( "CA" => "Sacramento","TX" => "Austin","OR" => "Salem",);
    echo $capitals['TX'];echo nl2br("\n");  
    ?>
    <body>
    </html>
    

    Notepad++ will then allow you to collapse the sections arbitrarily and you can label the sections with "#". Just learning PHP, so my code might not be awesome; It's still an ongoing process.

    0 讨论(0)
提交回复
热议问题