codeSnips – A code snippet WordPress plugin

October 30, 2015 by Pat - Comments - 2 min read

screenshot-1

Recently I was looking for a snippets plugin for this very site. There’s a bunch out there, but none of them had everything I was looking for. So I set out to write my own.

Introducing codeSnips.

Here’s some features of codeSnips:

  • Using Custom Post Types, you can quickly create a snippet post
  • Quickly create and embed code snippets on your site using a shortcode
  • Syntax highlighting for 126 programming languages
  • An archive list of all snippets using the Custom Post Type
  • Raw view of the snippet – ideal for copying without formatting
  • Can embed multiple snippets per post

Here’s an example of a code snippet run by codeSnips.

function hello_world() { 
	// This is just a simple Hello World function
	echo "Hello World!";
}

Here’s another snippet, showing you can have more than 1 snippet embedded with more than 1 programming language.

def helloWorld():
    return "Hello World"

def main():
	status_msg = helloWorld()
	print(status_msg)

if __name__ == __main__:
	main()

If you’re looking for a code snippet syntax highlighting plugin for WordPress, I say check out codeSnips!

 

If you enjoy codeSnips, please consider a donation! Plugins take a lot of time, energy and coffee. Buying me a coffee would help maintain the plugin and continue making new plugins!


Share this post:

About Pat

I'm an I.T. systems engineer by day and in my spare time I code. I've made WordPress websites and plugins, weewx extensions and static html sites using Jekyll. I'm a technologist at heart and I enjoy tinkering on many different technology projects. Here on my site you will find some of the projects I've worked on, and other random bits of knowledge that I hope help someone along the way.

mentions