WordPress.org

Ready to get started?Download WordPress

Forums

code insert plugin with select all feature (2 posts)

  1. tronicscribe
    Member
    Posted 5 years ago #

    I've seen a few of the plugins that make it simple to insert code into your post, for example I'd like to post code snippets of php, js, flex, etc.. and allow the viewer to quickly select all by clicking a link or button, or even just clicking in the text area. I have seen this feature on many websites, but I don't know if there is a plugin for wordpress that has this select all feature built in. If there is, I'd really love to know. Thanks all!

  2. adamh
    Member
    Posted 5 years ago #

    Hi

    I had much the same requirement and found a syntax highlighter i liked, so I wrapped it into a plugin - External Files.

    If your code snippets are saved as a file or url, you can wrap that file or url in [external] shortcode in the editor and the file will be imported and highlighted automatically.

    Extra parameters allow you to specify which lines to import and override the syntax highlighting format.

    It's available at http://wordpress.org/extend/plugins/external-files

    I'd really appreciate any feedback - I'll try and update the plugin with any suggestions you have.

    Thanks, Adam

Topic Closed

This topic has been closed to new replies.

About this Topic