Giter Club home page Giter Club logo

jdoodle-for-wp's Introduction

JDoodle for WordPress

This plugin helps users to execute their code snippets online in various languages directly within Wordpress sites. This plugin uses following softwares/services,

  1. WordPress
  2. Enlighter plugin - for syntax highlighting
  3. https://www.jdoodle.com - to run the code online.

Plugin dependencies

JDoodle for WordPress uses Enlighter WordPress plugin for syntax hightlighting.

Installation

  1. Install the Enlighter plugin and activate it.
  2. Download the ZIP package of the JDoodle for WordPress plugin.
  3. Upload the JDoodle for WordPress ZIP package at the plugin installation page of your WordPress site.
  4. Activate the uploaded plugin.

Remark: If you are not familiar with WordPress plugin installation, please have a look at this video tutorial.

Setting up the plugins

Setup the Enlighter plugin to use the Legacy shortcode system. you can set this up using below steps.

  1. Go to your WordPress site administration.
  2. In the menu on the left, click Enlighter. This will open the settings page of the Enlighter plugin.
  3. Click on the Editing tab.
  4. Scroll down to the Shortcodes panel.
  5. In the Processor dropdown box, select the option Legacy (WordPress based).
  6. save changes.

Usage

  1. To start with, you need an account with https://www.jdoodle.com. It is free, you can login with your google account or register with JDoodle by clicking the SignIn button at the top right corner.
  2. Then you can add your code snippet in https://www.jdoodle.com by visiting the relavent language page, save it and don't forget to mark it as shared.
  3. Then go back to your WP site editor, press the button called "JDoodle".
  4. Copy the Shared URL, NOT THE Embed URL.
  5. Enter a caption for the popup window (Optional).
  6. Click OK and the shortcode will be generated for you.

If your preference is writing shortcodes directly, write them as follows:

[jdoodle url="your code snippet SHARED URL"  caption="your caption"]

Note: The parameter caption is optional.

Supported languages

  • Java
  • C++
  • Javascript in NodeJS
  • C#
  • PHP

jdoodle-for-wp's People

Contributors

evonox avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.