All Projects → intraxia → Wp Gistpen

intraxia / Wp Gistpen

Licence: gpl-2.0
A self-hosted alternative to putting your code snippets on Gist.

Projects that are alternatives of or similar to Wp Gistpen

User Feedback
Collect user feedback directly from your WordPress site
Stars: ✭ 49 (-26.87%)
Mutual labels:  wordpress, wordpress-plugin
Wordpress Progressive Web Apps
WordPress Mobile Plugin including a Progressive Web App implemented with React
Stars: ✭ 64 (-4.48%)
Mutual labels:  wordpress, wordpress-plugin
Bitcoin Wordpress Plugin
GoUrl Official Bitcoin Payment Gateway for Wordpress 3.5+ (or higher). Sell Products, Files, Digital Downloads, Membership on your website. Accept Bitcoin, Litecoin, Dogecoin, Darkcoin, Reddcoin, etc Payments Online. Use Pay-Per-Download, Pay-Per-Product, Pay-Per-Membership, Pay-Per-Page/Video-Access on your website. It is Easy!
Stars: ✭ 49 (-26.87%)
Mutual labels:  wordpress, wordpress-plugin
Wordpress Base Plugin
A starter template for WordPress plugins, with autoloading, namespaces and object caching (where available).
Stars: ✭ 65 (-2.99%)
Mutual labels:  wordpress, wordpress-plugin
Wordpress Zero Spam
The WordPress Zero Spam plugin makes blocking spam a cinch without all the bloated options. Just install, activate, and say goodbye to spam.
Stars: ✭ 56 (-16.42%)
Mutual labels:  wordpress, wordpress-plugin
Preferred Languages
Choose languages for displaying WordPress in, in order of preference.
Stars: ✭ 48 (-28.36%)
Mutual labels:  wordpress, wordpress-plugin
Images Via Imgix
imgix WordPress plugin
Stars: ✭ 51 (-23.88%)
Mutual labels:  wordpress, wordpress-plugin
Performance Improvements For Woocommerce
Performance tweaks for the front-end and back-end of a store.
Stars: ✭ 46 (-31.34%)
Mutual labels:  wordpress, wordpress-plugin
Better Rest Endpoints
A WordPress plugin that serves up slimmer WP Rest API endpoints.
Stars: ✭ 56 (-16.42%)
Mutual labels:  wordpress, wordpress-plugin
Wl Bootstrap
Integrating Laravel into WordPress
Stars: ✭ 54 (-19.4%)
Mutual labels:  wordpress, wordpress-plugin
Woosidebars
Replace registered sidebars in your WordPress themes using different conditions such as a specific page, a category or even an individual blog post.
Stars: ✭ 47 (-29.85%)
Mutual labels:  wordpress, wordpress-plugin
Theme My Login
Home of the Theme My Login plugin for WordPress.
Stars: ✭ 60 (-10.45%)
Mutual labels:  wordpress, wordpress-plugin
Meta Box
The best plugin for WordPress custom fields and custom meta boxes
Stars: ✭ 1,039 (+1450.75%)
Mutual labels:  wordpress, wordpress-plugin
Object Sync For Salesforce
WordPress plugin that maps and syncs data between Salesforce objects and WordPress objects.
Stars: ✭ 48 (-28.36%)
Mutual labels:  wordpress, wordpress-plugin
Elasticpress
A fast and flexible search and query engine for WordPress.
Stars: ✭ 1,037 (+1447.76%)
Mutual labels:  wordpress, wordpress-plugin
Wordpress Pubsubhubbub
WebSub/PubSubHubbub for WordPress
Stars: ✭ 49 (-26.87%)
Mutual labels:  wordpress, wordpress-plugin
Wp Phpmailer
Provides a clean and simple way to configure the WordPress-bundled PHPMailer library, allowing you to quickly get started sending mail through a local or cloud based service of your choice
Stars: ✭ 46 (-31.34%)
Mutual labels:  wordpress, wordpress-plugin
Osen Wc Mpesa
WordPress Plugin that extends WordPress and WooCommerce functionality to integrate MPESA for making payments, remittances, checking account balance transaction status and reversals.
Stars: ✭ 45 (-32.84%)
Mutual labels:  wordpress, wordpress-plugin
Wordpress Cloud Media Offloader Plugin
A simple plugin that allows you to serve your WordPress Media Library files from the Backblaze B2 cloud storage service.
Stars: ✭ 52 (-22.39%)
Mutual labels:  wordpress, wordpress-plugin
Wp Rest Api Log
WordPress plugin for logging REST API requests and responses
Stars: ✭ 58 (-13.43%)
Mutual labels:  wordpress, wordpress-plugin

WP-Gistpen

Contributors: JamesDiGioia
Donate link: http://jamesdigioia.com/
Tags: gist, code snippets, codepen
Requires at least: 5.2
Requires PHP: 5.6
Tested up to: 5.2
Stable tag: 2.0.0-beta.0
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Description

A self-hosted alternative to putting your code snippets on Gist.

Build Status Maintainability

You use WordPress because you want control over your writing. Why give Gist or Codepen your code snippets? WP-Gistpen is a self-hosted replacement for your WordPress blog.

Features include:

  • Revision saving
  • Gist import & export
  • PrismJS syntax highlighting
  • Prism-based text editor
  • oEmbed snippet embedding

Installation

Using the WordPress Dashboard

  1. Navigate to the 'Add New' in the plugins dashboard
  2. Search for 'wp-gistpen'
  3. Click 'Install Now'
  4. Activate the plugin on the Plugin dashboard

Uploading in WordPress Dashboard

  1. Download wp-gistpen.zip from the WordPress plugins repository.
  2. Navigate to the 'Add New' in the plugins dashboard
  3. Navigate to the 'Upload' area
  4. Select wp-gistpen.zip from your computer
  5. Click 'Install Now'
  6. Activate the plugin in the Plugin dashboard

Using FTP

  1. Download wp-gistpen.zip
  2. Extract the wp-gistpen directory to your computer
  3. Upload the wp-gistpen directory to the /wp-content/plugins/ directory
  4. Activate the plugin in the Plugin dashboard

Frequently Asked Questions

What are the plugin's requirements?

Your PHP version should be 5.4+, and you must be running WordPress v4.7+. This is because WP-Gistpen relies on the WP-API infrastructure.

How do I create an archive page for my Gistpens?

Go to the "Pages" screen and create a new, blank page with the name "Gistpens" and click publish. That URL will now display all of your Gistpens. You can link to this page in the menu to direct users to your Gistpens archive page. You can change the name of the page; just make sure the slug of the page is "gistpens".

How do I create a Gistpen and insert it into the post?

To add a new Gistpen, go to Gistpens -> Add New, and add your code. You can enable or disable Gist syncing on a a per-Gistpen basis.

You can also create and insert a Gistpen directly into your post/page from the visual editor by clicking the code button. From the pop-up, search for your gistpen, select it, and click insert. Your shortcode will be inserted into the editor.

How do I highlight specific lines in my Gistpen?

To highlight a specific line, add highlight=^^, where ^^ is a line number or range of numbers you want highlighted, like this (via PrismJS documentation):

  • A single number refers to the line with that number
  • Ranges are denoted by two numbers, separated with a hyphen (-)
  • Multiple line numbers or ranges are separated by commas.
  • Whitespace is allowed anywhere and will be stripped off.

Examples:

  • highlight="5": The 5th line
  • highlight="1-5": Lines 1 through 5
  • highlight="1,4": Line 1 and line 4
  • highlight="1-2,5,9-20": Lines 1 through 2, line 5, lines 9 through 20

How do I link to a specific line?

You can link to a specific line in your Gistpen by linking to #gistpen-{gistpen-slug}.{lines}. The lines don't need to be highlighted in advance for the link to work, and they will be highlighted when the link is clicked. The {lines} should match the same format as above.

How do I get my Gist token from GitHub?

  1. Login to GitHub.
  2. Go to Settings -> Applications.
  3. Under "Personal access tokens", click "Generate New Token."
  4. Give it a name, click create
    • The default settings work, but make you sure you at least include the gist and user scopes.
  5. Copy the generated token.
  6. Paste it into the settings page.
  7. ???
  8. Profit!

How do I sync my Gistpens to Gist?

Gistpens can be exported en masse. All Gistpens will be synced, only if the Gistpen hasn't been synced yet, but regardless of whether syncing for the Gistpen is enabled. Syncing will then be enabled on the exported Gistpens.

If you do not want this, you can enable/disable Gistpen syncing on a per-Gistpen basis. Just click the checkbox on the Gistpen edit page, and any changes will be reflected on the corresponding Gist on update. If you uncheck that box, future changes will not be reflected on Gist.

To go this, go to the Gistpens settings page and click "Jobs". Next to the the "Export Job", click "Dispatch Job". After the Job is done, check out the log messages to ensure everything exported correctly.

How do I import my Gistpens from Gist?

Go to the Gistpents settings page and click "Jobs". Next to the "Import Job", click "Dispatch Job", then check out the log messages to ensure everything was imported correctly.

Screenshots

The Insert Gistpen dialog after you click the pen in the visual editor.

Default theme - How your code will appear in your post.

Twilight theme with line numbers enabled. Check out all the themes at PrismJS.com.

The current options page – first page.

The current options page – second page.

The current options page – third page.

PrismJS-based text editor.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].