Store a library of reusable code snippets that you can add to any post. Supports 61 programming languages.
Just installed this for my latest post where I had to show off more code than usual and it works just like expected. You can create new snippets and easily reference them in your posts using the shortcode listed in the Code Snippets screen. Neat!
I only have two small nitpicks:
1. There was some CSS bleed which caused the box to be way too high. It seems as if each line is always 18px tall but the line height is not enforced. I fixed it by adding line-height: 18px; to .ace_editor.
2. Since I added the snippet through the Code Snippets editor I was first confused about how to actually reference the snippet in the post. Turns out _there is_ a way to add/insert snippets from the editor, but it's only visible in the Visual editor. Since you're inserting content in my mind it would make more sense if it was simply a button right next to the Upload Media button above the editor altogether.
I have only one comment , why you don't add shortcut in the post editor page so we can add the code direct from there ?
You must log in to submit a review. You can also log in or register using the form near the top of this page.