Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

readme.txt 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689
  1. === Prismatic ===
  2. Plugin Name: Prismatic
  3. Plugin URI: https://perishablepress.com/prismatic/
  4. Description: Display beautiful syntax-highlighted code snippets with Prism.js or Highlight.js
  5. Tags: code, snippets, syntax, highlight, language, snippet, pre, prettify, prism, css, fence
  6. Author: Jeff Starr
  7. Contributors: specialk
  8. Author URI: https://plugin-planet.com/
  9. Donate link: https://monzillamedia.com/donate.html
  10. Requires at least: 4.1
  11. Tested up to: 5.3
  12. Stable tag: 2.3
  13. Version: 2.3
  14. Requires PHP: 5.6.20
  15. Text Domain: prismatic
  16. Domain Path: /languages
  17. License: GPL v2 or later
  18. Display beautiful syntax-highlighted code snippets with Prism.js or Highlight.js
  19. == Description ==
  20. __The only 3-in-1 syntax highlighter!__
  21. Display beautiful code snippets with Prism.js, Highlight.js, or plain code escaping:
  22. * __Prism.js__ - Code escape + syntax highlight using [Prism.js](https://prismjs.com/)
  23. * __Highlight.js__ - Code escape + syntax highlight using [Highlight.js](https://highlightjs.org/)
  24. * __Plain Flavor__ - Code escape without syntax highlight
  25. Check out a [demo post using Highlight.js](https://dev-tricks.com/favorite-highlight-js-styles/). I also use this plugin at [WP-Mix](https://wp-mix.com/) for all code snippets.
  26. **Prism.js Features**
  27. * Supports __47__ coding languages
  28. * Choose from all __8__ available Prism themes
  29. * Provides a Gutenberg block for adding code snippets
  30. * Provides TinyMCE/Visual buttons for adding code snippets
  31. * Enable Prism plugin [Line Numbers](https://prismjs.com/plugins/line-numbers/)
  32. * Enable Prism plugin [Line Highlight](https://prismjs.com/plugins/line-highlight/)
  33. * Enable Prism plugin [Show Language](https://prismjs.com/plugins/show-language/)
  34. * Enable Prism plugin [Copy Code Button](https://prismjs.com/plugins/copy-to-clipboard/)
  35. * Highlights code in post content, excerpts, and comments
  36. * Detects `language-` and `lang-` class prefixes
  37. * Limit syntax highlighting to Posts and Pages
  38. * Highlight single-line and multi-line code
  39. * Granular control over code escaping
  40. * Smart loading of CSS & JS assets
  41. * Support for ACF on single post views
  42. **Highlight.js Features**
  43. * Supports __37__ coding languages
  44. * Choose from all __90+__ available Highlight themes
  45. * Provides a Gutenberg block for adding code snippets
  46. * Provides TinyMCE/Visual buttons for adding code snippets
  47. * Customize the Highlight.js init JavaScript
  48. * Highlights code in post content, excerpts, and comments
  49. * Limit syntax highlighting to Posts and Pages
  50. * Highlight multi-line blocks of code
  51. * Detects `language-` and `lang-` class prefixes
  52. * Enable support for no-prefix class names
  53. * Granular control over code escaping
  54. * Smart loading of CSS & JS assets
  55. **Plain Flavor Features**
  56. * Enable code escaping for post content, excerpts, and/or comments
  57. * Enable code escaping on the frontend, Admin Area, or both
  58. * Provides a Gutenberg block for adding code snippets
  59. * Provides TinyMCE/Visual buttons for adding code snippets
  60. * Escapes single-line and multi-line code snippets
  61. * Escapes `<code>` tags (based on configuration)
  62. **General Features**
  63. * Easy to set up &amp; configure
  64. * Built with the WordPress API
  65. * Squeaky clean, error-free code
  66. * Born of simplicity, no frills
  67. * Lightweight, fast and flexible
  68. * Focused on performance and security
  69. * Loads CSS/JS assets only when required
  70. * Adheres to HTML coding best practices
  71. * Works with the Gutenberg Block Editor
  72. * Regularly updated and "future proof"
  73. _Prismatic escapes only the essentials to keep your code clean._
  74. [Check out the screenshots](https://wordpress.org/plugins/prismatic/screenshots/) for more details!
  75. **Privacy**
  76. This plugin does not collect or store any user data. It does not set any cookies, and it does not connect to any third-party locations. Thus, this plugin does not affect user privacy in any way.
  77. == Screenshots ==
  78. 1. Prismatic General Settings
  79. 2. Prismatic Prism.js Settings
  80. 3. Prismatic Highlight.js Settings
  81. 4. Prismatic Plain Flavor Settings
  82. 5. Prism.js : Twilight theme (choose from 7 Prism.js themes!)
  83. 6. Highlight.js : Arduino Light theme (choose from 77 Highlight.js themes!)
  84. 7. Highlight.js : Gruvbox Dark theme (choose from 77 Highlight.js themes!)
  85. 8. Cleanly escaped code without syntax highlighting (Plain Flavor)
  86. 9. Gutenberg Prismatic block (under Formatting menu)
  87. 10. Prismatic block showing added code and language select
  88. 11. Prismatic TinyMCE/Visual button for adding code snippets
  89. 12. Prismatic TinyMCE panel showing added code and selected language
  90. == Installation ==
  91. **Installing Prismatic**
  92. 1. Make a backup of your database
  93. 2. Upload the plugin to your blog and activate
  94. 3. Visit the plugin settings to configure options
  95. _[More info on installing WP plugins](https://codex.wordpress.org/Managing_Plugins#Installing_Plugins)_
  96. **Quick Start Guide**
  97. Here is a quick guide to get started with Prismatic:
  98. 1. Activate the plugin and visit the Prismatic settings page
  99. 2. Choose Prism.js or Highlight.js for syntax highlighting
  100. 3. Optionally visit the Prism.js or Highlight.js tab to customize options
  101. You are now ready to go. To add a code snippet to any WP Post or Page:
  102. * If using Gutenberg Block Editor, click on the Prismatic block
  103. * If using Classic Editor, click on the Prismatic TinyMCE button
  104. To get a better idea, view the screenshots on the [Prismatic homepage](https://wordpress.org/plugins/prismatic/).
  105. The Prismatic block or button makes it easy to add your code snippet and choose a language. The plugin automatically will output the correct markup to display your code with syntax highlighting. No code editing required! Note: Advanced usage information provided further down on this page.
  106. **Like the plugin?**
  107. If you like Prismatic, please take a moment to [give a 5-star rating](https://wordpress.org/support/plugin/prismatic/reviews/?rate=5#new-post). It helps to keep development and support going strong. Thank you!
  108. **Uninstalling**
  109. Prismatic cleans up after itself. All plugin settings will be removed from your database when the plugin is uninstalled via the Plugins screen.
  110. **Restore Default Options**
  111. To restore default plugin options, either uninstall/reinstall the plugin or visit the Prismatic General Settings &gt; Restore default plugin options.
  112. **Usage: Syntax Highlighting**
  113. The Prismatic plugin follows the same conventions used by [Prism.js](https://prismjs.com/) and [Highlight.js](https://highlightjs.org/). Here are the basic steps:
  114. 1. Visit the Prismatic General Settings and choose your library
  115. 2. Visit the settings tab for your chosen library
  116. 3. Choose a theme and configure your options
  117. Once the settings are configured, you can enable syntax highlighting for any code snippet by doing one of the following:
  118. * Wrap multi-line code with pre &amp; code tags: &lt;pre&gt;&lt;code&gt;...&lt;/code&gt;&lt;/pre&gt;
  119. * Wrap single-line code with code tags: &lt;code&gt;...&lt;/code&gt;
  120. The plugin also provides a Prismatic Gutenberg block and TinyMCE buttons. So you can add code snippets with a few clicks easily.
  121. __Note:__ Prism.js highlights both multi-line and single-line code snippets. Highlight.js only supports multi-line code snippets.
  122. With the proper markup in place, you can indicate a specific language by adding a class of `language-abc` or `lang-abc` to the &lt;code&gt; tag (where "abc" is the language identifier). For example, to indicate PHP as the language for a single-line code snippet:
  123. <code class="language-php"><?php echo 'Hello world'; ?></code>
  124. Likewise, to indicate HTML as the language for a multi-line code snippet:
  125. <pre><code class="language-html">
  126. <table>
  127. <tr>
  128. <th>Name</th>
  129. <th>Side</th>
  130. <th>Role</th>
  131. <tr>
  132. <td>Darth</td>
  133. <td>Dark</td>
  134. <td>Sith</td>
  135. </tr>
  136. </table>
  137. </code></pre>
  138. Alternately, the language class may be placed on the &lt;pre&gt; tag, for example:
  139. <pre class="language-html"><code class="optional">
  140. <table>
  141. <tr>
  142. <th>Name</th>
  143. <th>Side</th>
  144. <th>Role</th>
  145. <tr>
  146. <td>Darth</td>
  147. <td>Dark</td>
  148. <td>Sith</td>
  149. </tr>
  150. </table>
  151. </code></pre>
  152. Note: in the previous example, ignore the `class="optional"` added to the code tag; it is used to prevent markdown from mangling the code example on this web page.
  153. Basically, the prefix of the class names (i.e., "lang-" or "language-") are the same for Prism.js and Highlight.js. The difference is the language identifier (e.g., "css" or "html") used to specify each language. Check out the following "About Prism.js" and "About Highlight.js" sections for more information.
  154. __Note:__ In addition to detecting the `language-` and `lang-` prefixes, Highlight.js also will try to auto-detect the language without it being specified. Plus as an option, you can enable the Highlight.js setting, "Support no-prefix class names" to enable use of language identifiers without any `language-` or `lang-` prefix.
  155. > Pro Tip: Language class names work when added to the &lt;pre&gt; tag for both Prism.js and Highlight.js.
  156. **Usage: Code escaping**
  157. Just like Prism.js and Highlight.js, the Prismatic plugin follows HTML coding standards. To enable code escaping:
  158. 1. Visit the Prismatic General Settings and choose your library
  159. 2. Enable "Code Escaping" via the settings tab of your chosen library
  160. 3. Do one of the following:
  161. * Wrap multi-line code with pre &amp; code tags: &lt;pre&gt;&lt;code&gt;...&lt;/code&gt;&lt;/pre&gt;
  162. * Wrap single-line code with code tags: &lt;code&gt;...&lt;/code&gt;
  163. For example, the code snippets included in either of the following markup examples would be escaped (note that the class attribute is not required for code escaping).
  164. This is a single-line example:
  165. <code class="language-php"><?php echo 'Hello world'; ?></code>
  166. This is a multi-line code example:
  167. <pre><code class="language-html">
  168. <table>
  169. <tr>
  170. <th>Name</th>
  171. <th>Side</th>
  172. <th>Role</th>
  173. <tr>
  174. <td>Darth</td>
  175. <td>Dark</td>
  176. <td>Sith</td>
  177. </tr>
  178. </table>
  179. </code></pre>
  180. So what exactly happens when the "Code Escaping" options are enabled? Here is a summary that applies to each section (post content, excerpts, and comments):
  181. * __Frontend only__ - code snippets are escaped at runtime (no changes made to content in the database)
  182. * __Admin Area only__ - code snippets are escaped when viewed via the Admin Area (changes will be saved to database if the "Update" or "Publish" button is clicked)
  183. * __Frontend &amp; Admin Area__ - both of the previous are applied
  184. * __None__ - all code escaping is disabled
  185. Note that each library &mdash; Prism.js, Highlight.js, and Plain Flavor &mdash; features its own code-escape settings. So the code-escape settings that are applied depends on the currently active library. Visit the plugin's General Settings to choose your library. Then visit that library's tab to configure its code-escape settings.
  186. When code escaping is enabled for either/both the frontend or Admin Area, the plugin makes the following changes to any code contained within &lt;code&gt;&lt;/code&gt; tags:
  187. \r removed
  188. & replaced with &amp;
  189. < replaced with &lt;
  190. > replaced with &gt;
  191. trailing whitespace removed
  192. These are the _only_ changes made to your code, no other changes are made.
  193. As mentioned, the difference between code escaping on the frontend vs. the Admin Area is that, on the frontend, the above changes are made at runtime and not saved to the database; whereas in the Admin Area, the changes are made when the code is viewed via a content editor, such that any changes made will be saved to the database when the user clicks the "Update" or "Publish" button. Please keep this in mind when choosing your code-escape settings.
  194. __Important!__ As explained, enabling code escaping in the Admin Area may result in the escaped code getting saved in the database. This is fine in most cases, but there may be situations where escaping should only happen at runtime. If that is the case, or if you are unsure, choose the "Frontend only" option for the "Code Escaping" setting. The "Frontend only" option only modifies code when displayed on the frontend and does not save any changes to the database.
  195. **Usage: Gutenberg Block Editor**
  196. To highlight a code block using Gutenberg:
  197. 1. Select the Prismatic block
  198. 2. Select a code language (via sidebar options)
  199. 3. Add your code and done.
  200. **Usage: Classic TinyMCE Editor**
  201. To highlight code using the TinyMCE/Visual/Rich-Text Editor:
  202. 1. Click the Prismatic button (looks like `<>`)
  203. 2. Choose a code language
  204. 3. Add your code and click "OK" button
  205. There also is a Prismatic Quicktag button ("pre") for those using the Plain-Text editor.
  206. **Usage: Prism.js Plugins**
  207. Currently the Prismatic plugin provides four plugins for Prism.js.
  208. * [Line Highlight](https://prismjs.com/plugins/line-highlight/) - Requires adding `data-line` attribute to the pre element
  209. * [Line Numbers](https://prismjs.com/plugins/line-numbers/) - Requires adding `line-numbers` attribute to the pre element
  210. * [Show Language](https://prismjs.com/plugins/show-language/) - No additional steps required
  211. * [Copy to Clipboard](https://prismjs.com/plugins/copy-to-clipboard/) - No additional steps required
  212. Any/all of these plugins can be enabled in the Prism.js settings. To learn more about usage and options, visit the plugin links in the above list.
  213. **About Prism.js**
  214. Prism.js version used in Prismatic plugin: __1.17.1__
  215. __Prism.js resources__
  216. * [Homepage](https://prismjs.com/)
  217. * [GitHub](https://github.com/PrismJS/prism)
  218. * [Changelog](https://github.com/PrismJS/prism/blob/gh-pages/CHANGELOG.md)
  219. __License &amp; Info__
  220. /*
  221. Prism: Lightweight, robust, elegant syntax highlighting
  222. MIT license https://www.opensource.org/licenses/mit-license.php/
  223. @author Lea Verou https://lea.verou.me
  224. */
  225. __Supported Languages__
  226. Language Class
  227. Apache = apacheconf
  228. AppleScript = applescript
  229. Arduino = arduino
  230. Bash = bash
  231. C = c
  232. C# = csharp
  233. C++ = cpp
  234. C-like = clike
  235. CoffeeScript = coffeescript
  236. CSS = css
  237. D = d
  238. Dart = dart
  239. Diff = diff
  240. Git = git
  241. Go = go
  242. GraphQL = graphql
  243. Groovy = groovy
  244. HTML/XML/Etc. = markup
  245. HTTP = http
  246. Ini = ini
  247. Java = java
  248. JavaScript = javascript
  249. JSON = json
  250. JSX = jsx
  251. Kotlin = kotlin
  252. LaTeX = latex
  253. Lua = lua
  254. Makefile = makefile
  255. Markdown = markdown
  256. Markup = markup
  257. NGINX = nginx
  258. Objective-C = objectivec
  259. Pascal = pascal
  260. Perl = perl
  261. PHP = php
  262. PowerShell = powershell
  263. Python = python
  264. Ruby = ruby
  265. SASS = sass
  266. Scala = scala
  267. SCSS = scss
  268. SQL = sql
  269. Swift = swift
  270. TSX = tsx
  271. Twig = twig
  272. TypeScript = typescript
  273. Visual Basic = visual-basic
  274. YAML = yaml
  275. So for example, to specify a code block as C++, you would write:
  276. Single line: <code class="language-cpp">...</code>
  277. Multi-line: <pre><code class="language-cpp">...</code></pre>
  278. Alternate: <pre class="language-cpp"><code class="optional">...</code></pre>
  279. Note: in the previous example, ignore the `class="optional"` added to the code tag (for the "Alternate" syntax); it is used to prevent markdown from mangling the code example on this web page.
  280. To disable Prism.js syntax highlighting for any snippet, simply omit the language class. Or, to disable syntax highlighting for a code snippet while also loading the Prism.js stylesheet, add a class of `language-none`, for example:
  281. <code class="language-none">...</code>
  282. _I'm glad to add more languages, [make a suggestion](https://perishablepress.com/contact/)_
  283. **About Highlight.js**
  284. Highlight.js version used in Prismatic plugin: __9.15.9__
  285. __Highlight.js resources__
  286. * [Homepage](https://highlightjs.org/)
  287. * [GitHub](https://github.com/isagalaev/highlight.js)
  288. * [Changelog](https://github.com/isagalaev/highlight.js/blob/master/CHANGES.md)
  289. __License &amp; Info__
  290. /*
  291. Syntax highlighting with language autodetection.
  292. Copyright (c) 2006, Ivan Sagalaev https://highlightjs.org/
  293. All rights reserved. BSD3 License @ https://git.io/hljslicense
  294. */
  295. __Supported Languages__
  296. Language Class
  297. Apache = apache, apacheconf
  298. AppleScript = applescript, osascript
  299. Arduino = arduino
  300. Bash = bash, sh, zsh
  301. C# = cs, csharp
  302. C++ = cpp, c, cc, h, c++, h++, hpp
  303. CSS = css
  304. CoffeeScript = coffeescript, coffee, cson, iced
  305. D = d
  306. Dart = dart
  307. Diff = diff, patch
  308. GML = gml
  309. Go = go, golang
  310. Groovy = groovy
  311. HTML/XML/Etc. = xml, html, xhtml, rss, atom, xjb, xsd, xsl, plist
  312. HTTP = http, https
  313. Ini = ini
  314. JSON = json
  315. Java = java, jsp
  316. JavaScript = javascript, js, jsx
  317. Kotlin = kotlin
  318. Lua = lua
  319. Makefile = makefile, mk, mak
  320. Markdown = markdown, md, mkdown, mkd
  321. Nginx = nginx, nginxconf
  322. Objective-C = objectivec, mm, objc, obj-c
  323. PHP = php, php3, php4, php5, php6
  324. Perl = perl, pl, pm
  325. PowerShell = powershell, ps
  326. Python = python, py, gyp
  327. Ruby = ruby, rb, gemspec, podspec, thor, irb
  328. Scala = scala
  329. Shell Session = shell
  330. SQL = sql
  331. Swift = swift
  332. TypeScript = typescript, ts
  333. YAML = yaml
  334. So for example, to specify a code block as C++, you would write:
  335. Single line: <code class="language-cpp">...</code>
  336. Multi-line: <pre><code class="language-cpp">...</code></pre>
  337. Alternate: <pre class="language-cpp"><code class="optional">...</code></pre>
  338. Note: in the previous example, ignore the `class="optional"` added to the code tag (for the "Alternate" syntax); it is used to prevent markdown from mangling the code example on this web page.
  339. To disable Highlight.js syntax highlighting for any code block, add a class of `nohighlight`, like so:
  340. <code class="nohighlight">...</code>
  341. Similarly, you can add a class of `plaintext` to make arbitrary text look like code, but without highlighting:
  342. <code class="plaintext">...</code>
  343. _I'm glad to add more languages, [make a suggestion](https://perishablepress.com/contact/)_
  344. == Upgrade Notice ==
  345. To upgrade Prismatic, remove the old version and replace with the new version. Or just click "Update" from the Plugins screen and let WordPress do it for you automatically.
  346. __Note:__ uninstalling the plugin from the WP Plugins screen results in the removal of all settings from the WP database.
  347. == Frequently Asked Questions ==
  348. **Can you add another language for Prism.js or Highlight.js?**
  349. Yes, feel free to [suggest a language](https://perishablepress.com/contact/)
  350. **Does this work with Gutenberg Block Editor?**
  351. Yes, the plugin provides a "Prismatic" block that makes it easy to add code snippets that will be highlighted on the front-end. Also provides "add code" buttons for the Classic TinyMCE (Visual/Text) Editor. Add code, choose a language, done!
  352. **Display syntax-highlighted code inside Block Editor?**
  353. If for some reason you want to view syntax-highlighted code inside of the Block Editor, you can do it with the Classic Block:
  354. 1. Select the Classic Block
  355. 2. Click on the Prismatic TinyMCE button
  356. 3. Enter your code and save changes
  357. The code won't be highlighted initially, but if you refresh the page after making changes, or visit the page again in the future, the code will be displayed with syntax highlighting applied.
  358. **How to syntax highlight code inside of ACF field?**
  359. As of Prismatic version 2.3, code snippets inside of ACF fields are highlighted automatically. Simply add the required class (e.g., `language-php`) just like any other code snippet, and the plugin will detect and highlight the code. To also escape the highlighted code, enable escaping for post content via the setting, Prism &gt; Code Escaping &gt; Content. Note: ACF is supported only on single post views.
  360. **How to make highlighting work with Autoptimize?**
  361. For Prismatic plugin to work with Autoptimize, a script needs to be excluded. For details, check out [this post](https://ncoughlin.com/prismatic-syntax-highlighter-compatibility-autoptimize-plugin/) by Nick Coughlin.
  362. **Got a question?**
  363. Send any questions or feedback via my [contact form](https://perishablepress.com/contact/)
  364. == Support development of this plugin ==
  365. I develop and maintain this free plugin with love for the WordPress community. To show support, you can [make a donation](https://monzillamedia.com/donate.html) or purchase one of my books:
  366. * [The Tao of WordPress](https://wp-tao.com/)
  367. * [Digging into WordPress](https://digwp.com/)
  368. * [.htaccess made easy](https://htaccessbook.com/)
  369. * [WordPress Themes In Depth](https://wp-tao.com/wordpress-themes-book/)
  370. And/or purchase one of my premium WordPress plugins:
  371. * [BBQ Pro](https://plugin-planet.com/bbq-pro/) - Super fast WordPress firewall
  372. * [Blackhole Pro](https://plugin-planet.com/blackhole-pro/) - Automatically block bad bots
  373. * [Banhammer Pro](https://plugin-planet.com/banhammer-pro/) - Monitor traffic and ban the bad guys
  374. * [GA Google Analytics Pro](https://plugin-planet.com/ga-google-analytics-pro/) - Connect your WordPress to Google Analytics
  375. * [USP Pro](https://plugin-planet.com/usp-pro/) - Unlimited front-end forms
  376. Links, tweets and likes also appreciated. Thank you! :)
  377. == Changelog ==
  378. Thank you to everyone providing feedback! If you like Prismatic, please take a moment to [give a 5-star rating](https://wordpress.org/support/plugin/prismatic/reviews/?rate=5#new-post). It helps to keep development and support going strong. Thank you!
  379. **2.3 (2019/10/27)**
  380. * Updates styles for plugin settings page
  381. * Fixes bug with older versions of WordPress
  382. * Adds "copy code to clipboard" button for Prism.js
  383. * Adds support for Prism.js highlighting in ACF fields
  384. * Adds support for `language-none` for Prism.js
  385. * Generates new default translation template
  386. * Updates documentation with further infos
  387. * Tests on WordPress 5.3
  388. **2.2 (2019/08/16)**
  389. * Resolves several warnings in PHP 7+
  390. * Adds `prismatic_get_default_options()`
  391. * Adds Quicktag button for plain-text editor
  392. * Adds TinyMCE buttons for Prism.js and Highlight.js
  393. * Adds Blocks for Prism.js, Highlight.js, and Plain Flavor
  394. * Changes priority of content filter in `prismatic_add_filters()`
  395. * Updates Highlight.js core to version 9.15.9
  396. * Adds YAML language for Highlight.js
  397. * Updates Prism.js core to version 1.17.1
  398. * Adds TSX language for Prism.js
  399. * Updates some links to https
  400. * Generates new default translation template
  401. * Tests on WordPress 5.3 (alpha)
  402. **2.1 (2019/04/28)**
  403. * Bumps [minimum PHP version](https://codex.wordpress.org/Template:Server_requirements) to 5.6.20
  404. * Adds Arduino language for Prism.js
  405. * Updates Prism.js to latest version 1.16.0
  406. * Updates Prism.js script for Java langauge
  407. * Updates Prism.js themes and plugins
  408. * Adds Arduino language for Highlight.js
  409. * Adds GML language for Highlight.js
  410. * Updates all Highlight.js stylesheets
  411. * Updates default translation template
  412. * Tests on WordPress 5.2
  413. **2.0 (2019/03/06)**
  414. * Updates Highlight.js to latest version 9.15.6
  415. * Adds Highlight.js languages: D, Dart, Scala
  416. * Adds 10 new Highlight.js themes
  417. * Updates Prism.js to latest version 1.15.0
  418. * Adds Prism.js languages: D, JSX, Dart, Scala
  419. * Adds check for admin user for settings shortcut link
  420. * Tweaks plugin settings screen UI
  421. * Generates new default translation template
  422. * Tests on WordPress 5.1 and 5.2 (alpha)
  423. **1.9 (2019/02/02)**
  424. * Just a version bump for compat with WP 5.1
  425. * Full update coming soon :)
  426. **1.8 (2018/11/14)**
  427. * Fixes bug: Invalid argument foreach() resources-enqueue.php line 267
  428. * Adds homepage link to Plugins screen
  429. * Updates default translation template
  430. * Tests on WordPress 5.0 (beta)
  431. **1.7 (2018/08/17)**
  432. * Adds `rel="noopener noreferrer"` to all [blank-target links](https://perishablepress.com/wordpress-blank-target-vulnerability/)
  433. * Updates GDPR blurb and donate link
  434. * Tweaks appearance of plugin settings page
  435. * Generates new default translation template
  436. * Further tests on WP versions 4.9 and 5.0 (alpha)
  437. **1.6/1.6.1 (2018/05/07)**
  438. * Updates Prism.js from 1.11 to 1.14
  439. * Adds new Prism theme: "Tomorrow Night"
  440. * Adds Prism language support for Go `go`, VBA `visual-basic`, Pascal `pascal`
  441. * Adds Highlight language support for Go `go`
  442. * Improves support for Gutenberg Editor
  443. * Removes unused font file, `FontAwesome.otf`
  444. * Tests on WordPress 5.0 (alpha)
  445. **1.5 (2017/10/22)**
  446. * Adds "Requires PHP" to plugin file headers
  447. * Tests on WordPress 4.9
  448. **1.4 (2017/07/31)**
  449. * Fixes several PHP Warnings
  450. * Updates Highlight.js to version 9.12.0
  451. * Adds new languages for Highlight.js and Prism.js
  452. * Adds GPL license text file
  453. * Tests on WordPress 4.9 (alpha)
  454. **1.3 (2017/03/24)**
  455. * Updates some URLs to HTTPS
  456. * Updates Prism.js to version 1.6
  457. * Updates Highlight.js to version 9.11.0
  458. * Adds new languages for Highlight.js and Prism.js
  459. * Tweaks plugin settings styles
  460. * Replaces global `$wp_version` with `get_bloginfo('version')`
  461. * Tests on WordPress version 4.8
  462. **1.2 (2016/11/16)**
  463. * Adds support for AppleScript in Highlight.js
  464. * Updates plugin URL in core files and readme.txt
  465. * Changes stable tag from trunk to latest version
  466. * Adds `&raquo;` to rate this link on Plugins screen
  467. * Adds strong tags to admin notices on settings page
  468. * Refines styles for popup dialog on settings page
  469. * Tests on WordPress version 4.7 (beta)
  470. **1.1 (2016/10/24)**
  471. * Updates/adds some links
  472. * Updates default language file
  473. * Tests on WordPress version 4.7 (alpha)
  474. **1.0 (2016/10/21)**
  475. * Initial release