=== Ank Prism For WP === Tags: syntax highlighter, prism, light weight, simple, ank, free Requires at least: 3.8.0 Tested up to: 4.3.1 Stable tag: 1.6.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Contributors: ank91 Prism syntax highlighter controller plugin for WordPress. == Description == Prism is a lightweight, extensible syntax highlighter, built with modern web standards in mind. This plugin lets you control and use this awesome library in to your WordPress site. ** Comes with 6 Official themes ** = Available Languages at this time = * HTML * CSS * C-Like * Java Script * PHP * SQL = Comes with 7 Official Plugins = * AutoLinker * FileHighlight * Line Highlight * Line Numbers * Show Invisibles * Show Language * WebPlatform Docs = Additional Features = * Tiny MCE (editor) Assistant Button to quick insert code to posts. * Load (enqueue) Prism files (css+js) to post pages only > Notice -
> This plugin is no longer maintained. Sorry about that.
> I have no time to update/sync this plugin with original Prism [repo](https://github.com/PrismJS/prism). == Installation == 0. Remove existing syntax highlighter or disable them. 1. Search for 'ank prism for wp' in WordPress Plugin Directory and Download the .zip file & extract it. 2. Upload the folder `ank-prism-for-wp` to the `/wp-content/plugins/` directory 3. Activate the plugin through the 'Plugins List' page in WordPress Admin Area. 4. Configure this plugin via Settings-->Ank Prism For WP 5. Enjoy the awesomeness. == Frequently Asked Questions == = Why did you create this plugin ? = I could not found a better plugin to use Prism in WP. This is my small contribution to the Open Source Community. = What is the difference between this and other plugins ? = I have downloaded and tried 3 most downloaded plugins for Prism. One of them force you to use short-code. One of theme says that files will be loaded whenever required. One of them force you to use custom fields. None of them tried to give same interface like Prismjs.com. My plugin have tried to give same interface like Prismjs.com. So basically this plugin is just a just a controller. That will allow to select from available languages, theme, plugins. Then pack CSS and JS files. Lastly enqueue them to front end. It does not force you to use short-code at all. Just follow the instruction from Prismjs.com and you are ready to go. = What this plugin actually do ? = This plugin allow you to select from available themes, languages and plugins. Then create (pack) JS and CSS files, store them on disk and enqueue them to front end. Everything will be served from local server. = Where can i find a working demo ? = Just ahead to http://prismjs.com for demos and instructions. = Who is the original developer of Prism Library ? = * This js library is developed by : [Lea Verou](http://lea.verou.me/) * With the many other Contributors : [Listed here](https://github.com/LeaVerou/prism/contributors) * Hosted at : [Prismjs.com](http://www.prismjs.com) = Syntax highlighter not working in my browser :( = You must have a modern browser to see syntax highlighter working. = Changes does not reflect after saving settings ? = Are you using some Cache/Performance plugin (eg:WP Super Cache/W3 Total Cache/BWP Minify) ? Then flush your WP cache and refresh target page. = Where does it store settings and options ? = WP Database->wp-options->ank_prism_for_wp. Uses a Single Row, stored in array for faster access. = What if i uninstall/remove this plugin? = No worry! It will remove its traces from database upon uninstall. = This Plugin is unable to write js/css files . = Each time you save new settings , this plugin write processed js and css code to two separate files. There may be some chance that plugin unable to create/write these files. These files are essential to front end. Possible reason are -> * Not enough permission to write a file. * Plugin malfunction (my fault). * You hosting provider has disabled File Handling Function via php.ini (rare). How to resolve -> * Login to your website via your FTP client software. (eg: FileZilla) and change file permission of this plugin folder. = I don't want this plugin to minify output css file = Ok, please add this code to your wp-config.php ` define('APFW_MINIFY_CSS', 0);` = Did you test it with old version of WordPress ? = No, tested with v4.0+ (latest as of now) only. So i recommend you to upgrade to latest WordPress today. = Have u changed anything in Prism source files = Not yet, each and every file is in its original state. = Future Plans ? = * I18n for Option Page. * More languages. * More options. == Upgrade Notice == No big changes yet in this plugin, i may add more languages or themes in future. == Screenshots == 1. Plugin Option Page Screen 2. Tiny MCE Pop-up box 3. Final output on front-end == Changelog == = 1.6.2 = * Tested upto WordPress 4.3.1 * Updated notes - No longer maintained = 1.6.1 = * Minor bug fixes * Improved form handling = 1.6 = * Security and speed improvements * Assistant Button is available for Custom Post types as well = 1.5 = * Updated modules from original site = 1.4 = * Option to disable Tiny MCE button. * Option to load Prism files only to Post (Single) Pages. * Plugin Code optimization and cleanup = 1.3 = * Add assistant button to Tiny MCE (editor) that will lets user quickly insert code without any tutorial. * Released to WordPress = 1.2 = * Improved docs and site links. * Language selection on Option Page has been improved. Take care of dependencies. * Minify CSS before writing to file. = 1.1 = * Quick Bug fix: Rename prism-php.php to prism-php.js = 1.0 = * First public release on GitHub * Submitted to WordPress == Arbitrary section == Nothing in this section, Read FAQ.