Giter Club home page Giter Club logo

prism-toolbar's Introduction

prism-toolbar

A toolbar for prism syntax highlighter which adds an option to copy and view source of the code
This is just a clone of prism toolbar which is located at this blog
. With this plugin you can add the functionality of copying the code with one-click and can view source of the code.
Works with every browser
. The copying functionality is based on the Zeroclipboard.

Requirements

This plugin requires prism syntax highlighter.Just include the above css and js to make the plugin work

Installing the Plugin

Installing the plugin is very easy.Follow the below steps
  • Download the zeroclipboard.swf
  • Download the source folder
  • upload the files prism-toolbar.css , prism-toolbar.js, zeroclipboard.min.js and zeroclipboard.swf in your website hosting account(Upload both ZeroClipboard.js and ZeroClipboard.swf in the same folder else the plugin won't work)
  • Use the script tags to include the prismtoolbar.js and zeroclipboard.min.js above the </body> and style tags to include prism-toolbar.css above </head> as follows
    <link href='/prism-toolbar.css' type='text/css' rel='stylesheet' />
    <script src='/prism-toolbar.js' type='text/javascript'/>
    <script src='/zeroclipboard.min.js' type='text/javascript'/>
That's all, you can now copy easily your code with one click

All the credits to it's owner.I am just providing source code to easily install this plugin Credits to the author.
Notes

  1. While uploading the scripts and style include zeroclipboard.min.js,prism-toolbar.js and zeroclipboard.swf in same folder other wise the plugin wont work
  2. If you dont have space to host you can use the following scripts which are hosted on google drive http://googledrive.com/host/0Bzpv595vATc9b3RLbUtzM0YzUGM/prism-toolbar.css
    https://googledrive.com/host/0Bzpv595vATc9b3RLbUtzM0YzUGM/prism-toolbar.js
    https://cdnjs.cloudflare.com/ajax/libs/zeroclipboard/1.1.7/ZeroClipboard.min.js

prism-toolbar's People

Contributors

santo007 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

danmindru

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.