Here’s a simple lightweight code snippet plugin for anyone who wants to post code on their site. It’s what I’ve used on Zeaks.org for a while, and it’s based off of Danny Van Kooten’s – Simple Quote Code Snippets plugin. It’s lightweight, uses no JavaScript and very easy to use.
I got tired of always re-styling the code snippets to match my site, so I’ve added a style switcher to the plugin with 4 styles, one you can edit yourself.
Wrap code in [ code ] Your Code [/ code ] (minus the spaces)
Here’s an example of the output using my own style.
|
1 2 3 4 5 6 7 |
.one-column #branding #searchform {top: 2.8em;} #branding #searchform { position: absolute; right: 7.6%; text-align: right; top: 2.8em; } |
Download Here
Kosmetikfirma
Thanx for this Code Snipet
Akiba Howard
I am trying to get an answer about this plugin that I am using. I posted here yesterday but had my post removed with no reply. I’ll try again with no link this time.
I am using the plugin and it is adding TAGS to my code when the pages are uploaded to the site (CSV IMPORTER). There are tags placed around the ‘code’ tags which renders the code inserted useless.
Is this something global with the plugin?
Akiba
Zeaks
Post authorWhat tags are being added around the code tags?
Akiba Howard
Hey…THANKS for the plugin by the way! It is the best I have found so far.
I am getting ” wrapped around the CODE tags. Kinda disables the code I am using the plugin for.
Thanks again for your attention and for the awesome plugin!
Zeaks
Post authorCould you show me an example? It sounds like another plugin might be adding the extra code.
Most of the code is from another plugin, I really just added the themes to it and made a few small changes. http://wordpress.org/extend/plugins/qoate-simple-code-snippets/ is the plugin it’s based of of, I still use it on this site but it’s been modified quite a bit.
Akiba Howard
Hey man I fixed the problem…THANK YOU AGAIN FOR YOUR HELP!