WordPress.org

Ready to get started?Download WordPress

Forums

Code Snippets
[resolved] Ideas / Feature Requests (4 posts)

  1. Clifford Paulick
    Member
    Posted 1 year ago #

    Thanks so much for this plugin. I was looking to create something like this myself and share it with the world, but yours is so good, no more need to do that. Great job!

    Here are some ideas / feature requests (in addition to import/export):

    - syntax highlighting

    - a button to click that checks for duplicate functions (option to check just active, just inactive, or all) -- maybe a better word than duplicate is "core parents". For example:

    /* from http://wpsnipp.com/index.php/functions-php/add-horizontal-rule-button-to-editor/ */
    function enable_more_buttons($buttons) {
      $buttons[] = 'hr';
     return $buttons;
    }
    add_filter("mce_buttons", "enable_more_buttons");

    If more than one function ties into "mce_buttons" -- you could display all those functions. Then the user can manually check if they are actually true duplicate/conflicting functions -- because I don't know how you could check true duplicate functionality programmatically.

    Maybe someone else will piggyback this thread and add some other ideas.

    Thanks again for this plugin! :-)

    http://wordpress.org/extend/plugins/code-snippets/

  2. Shea Bunge
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,
    Thanks for the great ideas. I hadn't really thought of them before.
    I will be implementing syntax highlighting in the next release (1.2) using the EditArea software.

    As for the second one, I'm not really sure if there's a way to check duplicate functionality.
    I suppose that when you save the snippet Code Snippets could grab all of the other snippets from the database and scan through them for duplicate action and filter hooks; but that would not include other plugins or themes that also have those hooks.
    In short, I recommend that you label and describe what your snippets do and keep them organized. If you (or anyone else) have an idea of how that functionality would be implemented, then feel free to let me know.

  3. Shea Bunge
    Member
    Plugin Author

    Posted 1 year ago #

    Also, if everything goes to plan then import/export will be in version 1.3 and multisite support (network activation) will be in version 1.4.

  4. Clifford Paulick
    Member
    Posted 1 year ago #

    Looking forward to the update(s). Thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.