Skip to content

ianizaguirre/wp-prism-syntax-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Prism Syntax Highlighter Plugin For WordPress

Original library developed by - Lea Verou

Original Plugin developed by - ankurk91

Description

Prism is a lightweight, extensible syntax highlighter, built with modern web standards in mind. This WP plugin lets you control and use this awesome library in to your WordPress site.


Original WP Plugin link the latest working copy


Changes Made

Color Scheme - Added Cobalt2

  • I added my own theme based on WesBos Cobalt2 Color Scheme

How it was done

(1) File Path: lib / themes

  • Now drag and drop a new CSS theme.

(2) File Path: inc / class-util.php

  • Around line 23, you should see $list = array

  • Now create a new array item, for example:

7 => array('name' => 'Cobalt2WesBos', 'url' => $baseUrl . 'prism-cobalt2wesbos', 'file' => 'prism-cobalt2wesbos'),

Save your changes, and thats it. Your new color scheme should now appear as a Plugin setting option.


Updated a few Plugin CSS files

I Changed these CSS files to better match the new Cobalt2 Color Scheme

Path 1

Path: plugins / prism-show-language.css

Path 2

Path: plugins / prism-copy-to-clipboard.css


Added New Plugin

The current version of this WordPress plugin lacks some newly added features/plugins that the non-WordPress Prism Git Repository has added recently.

Added - Unescaped Markup Plugin

Date: 2-8-18

I added the Unescaped markup plugin

(1) Path: lib / plugins

(2) Path: inc / class-util.php

  • Around line 42, you should see $list = array

  • After list item "16", add:

17 => array('name' => 'Unescaped Markup', 'url' => $baseUrl . 'unescaped-markup/', 'file' => 'prism-unescaped-markup', 'need_css' => 1),

Save your changes, and thats it. The Unescaped markup plugin should now appear as a Plugin option, under the "Select plugins" section.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published