codeSnips

codeSnips Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 2,775 downloads
codeSnips Icon

Try plugin: codeSnips

We'll create fresh WordPress site with codeSnips installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About codeSnips

Quickly create and embed individual code snippet posts. Access the snippet post directly, view raw, or show all snippets in an archive list.

3


0


0


0


1

updated: 7 years ago
since: 9 years ago
author: Pat O'Brien

Description

Own your snippets! No longer require the use of a cloud service to host your snippets for you when you can host them right on your own WordPress site! codeSnips allows you to quickly add and embed code snippets to your website with syntax highlighting available for 124 languages! codeSnips uses custom post types where you create a new snippet post, select the programming language, enter the code snippet and publish the post. You then can either access the snippet post directly for sharing, or embed it into another post using the shortcode.

View all of your snippets in an archived list, or even on the snippet page itself – without embedding into a new post. You can access all your snippets using a customizable pretty URL permalink. For example: http://yoursite.com/snippets

You can also view the raw plain text snippet directly, which is ideal for copy & pasting.

Features:

  • Quickly add new snippets with syntax highlighting available in 124 programming languages.
  • Plain text snippets are supported.
  • Syntax highlighting changes dynamically if you select a new code language from the dropdown while editing.
  • Embed the snippets using a shortcode that has many options.
  • You can embed multiple snippets per post.
  • Access a snippet post directly via URL.
  • Access a plain text raw view of the snippet directly via URL. Ideal for copying snippets.
  • Set a description for the snippet post that will display right on the snippet post page.
  • Change the URL slug for the list of snippets to suit your site.
  • Work with a particular code language a lot? Select a default snippet code language.
  • Each snippet also has a filename field that you can use as a reference for that snippet.
  • Uninstalling the plugin will clean up all data it has stored in the WordPress database.

The default list of snippets will display as a post archive list using your theme. You can customize the way this list looks by simply adding a file in your theme called “archive-snippets.php”. Likewise, if you add a theme file called “single-snippets.php” it allows you to customize the way the direct snippet pageis rendered. There are examples located included with the plugin under the “templates” folder.