简体   繁体   中英

How auto justify codes with google code prettify?

I use code-prettify and work like a charm How can I justify codes?

I add this code:

<?php
    echo 1;
        echo 1;
    ?>

But I want print this:

<?php
    echo 1;
    echo 1; //--> remove extra space
?> //--> remove extra space

Google code-prettify is a syntax highlighter, not a code beautifier. Code indentation is usually part of code beautifier.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM