takuhii
Member
Posted 4 months ago #
Hi,
Does anyone know of a decent plugin that allows you to insert snippets of code into a blog post while in Visual mode, I'm fed up of having to edit everything in code view, becuase the minute I switch to Visual mode it wipes my code out, despite being wrapped in tags.
Hi Takuhii
I had much the same problem, especially with maintaining code indenting, so I wrote 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
takuhii
Member
Posted 3 months ago #
Thanks guys, am back to using WP-Syntax, but I found a WP-Syntax BUTTON plugin that adds a handy little button to TinyMCE...