A couple of ideas: Habrafold and tag modernization

    Habrafold HTML tag


    collapses long sections of listings to improve article readability.
    This feature has long been implemented in many editors and IDEs and enjoys undoubted popularity.
    I suggest doing the same for the Habr, so that you can hide long pieces of code:

    
    #include 
    ...
    
    int main( int argc, char* argv[] ) {
    ....
    }
    

    You can display it, for example, as in NetBeans.

    Modernization


    I propose to do:
    1. button for displaying line numbers;
    2. button to copy the contents of the tag to the clipboard;
    3. and the ability to hide the entire tag as a hubfold.
    Buttons can be made visible only when you hover over the tag area, show them in the upper right corner, translucent. In this case, the innovation will not spoil the existing aesthetic appearance.

    And for the third item, you can add the desc attribute for the source tag, the contents of which would be displayed when the tag is collapsed. Also a default value attribute.

    +      Разверни меня

    Of course, I understand that we are not at www.codeproject.com , but these changes would be very pleasant little things.

    Also popular now: