WordPress.org

Ready to get started?Download WordPress

Forums

Developer Formatter
[resolved] Add expand/collapse for code display (4 posts)

  1. jsherk
    Member
    Posted 2 years ago #

    Great plugin! This is the only code formatter I could find that has a button already on the editor tool bar, and that has a box for you to drop the code in! Thanks!

    All the other ones I tried want you to drop your code in the WP editor window first, then select it and put tags around it, but WP kept wiping out the < php ? tags! So way to go on that one!

    The only feature I would like to see implemented is the ability to expand/collapse the display window size if it's bigger than say 20 lines of code. Then if somebody is reading, they don't have to scroll past several hundred lines of code to keep reading.

    Thanks again!

    http://wordpress.org/extend/plugins/devformatter/

  2. GSaraiva
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you man.

    I do use of it too, so I always keep on the mind what it has to do to me and that make it easy to about all others developers or programing enthusiasts.

    About your suggestion I'll see what can be done. I've had implemented the possibility of use style attribute, but something is not working right when the Ajax Parse is active.

    Without the option "Use AJAX DevFormatter System" you can use the height limitation like this example below:
    <code lang="css" style="height: 140px">
    Is not too friendly I know, but its a start. Btw, I'll check a better solution to your suggestion.

    Cheers

  3. jsherk
    Member
    Posted 2 years ago #

    I also tried changing the Custom CSS (adding height: 140px;) to both .devcodeblock and to .devcodeoverflow but it did not work either.

    Thanks

  4. GSaraiva
    Member
    Plugin Author

    Posted 2 years ago #

    Add the style attr to code tag on the post/page editor.

    Cheers

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic