Version Description
Download this release
Release Info
| Developer | renathoc |
| Plugin | |
| Version | 3.5.4 |
| Comparing to | |
| See all releases | |
Code changes from version 3.5.3 to 3.5.4
- readme.txt +5 -1
- syntaxhighlighter.php +2 -2
- syntaxhighlighter3/scripts/shBrushYaml.js +50 -0
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: https://alex.blog/2019/03/13/in-memory-of-alex-donation-link-update
|
|
| 4 |
Tags: code, sourcecode, block, php, xhtml, html, css, WordPress.com
|
| 5 |
Requires at least: 4.2.3
|
| 6 |
Tested up to: 5.4
|
| 7 |
-
Stable tag: 3.5.
|
| 8 |
|
| 9 |
Easily post syntax-highlighted code to your site without having to modify the code at all. As seen on WordPress.com.
|
| 10 |
|
|
@@ -40,6 +40,10 @@ Try excluding this plugin's Javascript from any performance optimizations your s
|
|
| 40 |
|
| 41 |
== ChangeLog ==
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
= Version 3.5.3 =
|
| 44 |
|
| 45 |
* Add "edit mode on double click" option to settings, shortcode parameters and block editor. #126
|
| 4 |
Tags: code, sourcecode, block, php, xhtml, html, css, WordPress.com
|
| 5 |
Requires at least: 4.2.3
|
| 6 |
Tested up to: 5.4
|
| 7 |
+
Stable tag: 3.5.4
|
| 8 |
|
| 9 |
Easily post syntax-highlighted code to your site without having to modify the code at all. As seen on WordPress.com.
|
| 10 |
|
| 40 |
|
| 41 |
== ChangeLog ==
|
| 42 |
|
| 43 |
+
= Version 3.5.4 =
|
| 44 |
+
|
| 45 |
+
* Add missing shBrushYaml file.
|
| 46 |
+
|
| 47 |
= Version 3.5.3 =
|
| 48 |
|
| 49 |
* Add "edit mode on double click" option to settings, shortcode parameters and block editor. #126
|
syntaxhighlighter.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
|
| 5 |
Plugin Name: SyntaxHighlighter Evolved
|
| 6 |
Plugin URI: https://alex.blog/wordpress-plugins/syntaxhighlighter/
|
| 7 |
-
Version: 3.5.
|
| 8 |
Description: Easily post syntax-highlighted code to your site without having to modify the code at all. Uses Alex Gorbatchev's <a href="http://alexgorbatchev.com/SyntaxHighlighter/">SyntaxHighlighter</a>. Includes a new editor block.
|
| 9 |
Author: Alex Mills (Viper007Bond)
|
| 10 |
Author URI: https://alex.blog/
|
|
@@ -16,7 +16,7 @@ License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
|
| 16 |
|
| 17 |
class SyntaxHighlighter {
|
| 18 |
// All of these variables are private. Filters are provided for things that can be modified.
|
| 19 |
-
var $pluginver = '3.5.
|
| 20 |
var $agshver = false; // Alex Gorbatchev's SyntaxHighlighter version (dynamically set below due to v2 vs v3)
|
| 21 |
var $shfolder = false; // Controls what subfolder to load SyntaxHighlighter from (v2 or v3)
|
| 22 |
var $settings = array(); // Contains the user's settings
|
| 4 |
|
| 5 |
Plugin Name: SyntaxHighlighter Evolved
|
| 6 |
Plugin URI: https://alex.blog/wordpress-plugins/syntaxhighlighter/
|
| 7 |
+
Version: 3.5.4
|
| 8 |
Description: Easily post syntax-highlighted code to your site without having to modify the code at all. Uses Alex Gorbatchev's <a href="http://alexgorbatchev.com/SyntaxHighlighter/">SyntaxHighlighter</a>. Includes a new editor block.
|
| 9 |
Author: Alex Mills (Viper007Bond)
|
| 10 |
Author URI: https://alex.blog/
|
| 16 |
|
| 17 |
class SyntaxHighlighter {
|
| 18 |
// All of these variables are private. Filters are provided for things that can be modified.
|
| 19 |
+
var $pluginver = '3.5.4'; // Plugin version
|
| 20 |
var $agshver = false; // Alex Gorbatchev's SyntaxHighlighter version (dynamically set below due to v2 vs v3)
|
| 21 |
var $shfolder = false; // Controls what subfolder to load SyntaxHighlighter from (v2 or v3)
|
| 22 |
var $settings = array(); // Contains the user's settings
|
syntaxhighlighter3/scripts/shBrushYaml.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* SyntaxHighlighter
|
| 3 |
+
* http://alexgorbatchev.com/SyntaxHighlighter
|
| 4 |
+
*
|
| 5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
| 6 |
+
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
| 7 |
+
*
|
| 8 |
+
* @copyright
|
| 9 |
+
* Copyright (C) 2019 Craig Andrews.
|
| 10 |
+
* Copyright (C) 2016 Erik Wegner.
|
| 11 |
+
*
|
| 12 |
+
* @license
|
| 13 |
+
* Dual licensed under the MIT and GPL licenses.
|
| 14 |
+
*/
|
| 15 |
+
;(function()
|
| 16 |
+
{
|
| 17 |
+
// CommonJS
|
| 18 |
+
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
|
| 19 |
+
|
| 20 |
+
function Brush()
|
| 21 |
+
{
|
| 22 |
+
|
| 23 |
+
// Yaml Brush
|
| 24 |
+
|
| 25 |
+
var constants = '~ true false on off';
|
| 26 |
+
|
| 27 |
+
this.regexList = [
|
| 28 |
+
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // comment
|
| 29 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted string
|
| 30 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted string
|
| 31 |
+
{ regex: /^\s*([a-z0-9\._-])+\s*:/gmi, css: 'variable' }, // key
|
| 32 |
+
{ regex: /\s?(\.)([a-z0-9\._-])+\s?:/gmi, css: 'comments' }, // section
|
| 33 |
+
{ regex: /\s(@|:)([a-z0-9\._-])+\s*$/gmi, css: 'variable bold' }, // variable, reference
|
| 34 |
+
{ regex: /\s+\d+\s?$/gm, css: 'color2 bold' }, // integers
|
| 35 |
+
{ regex: /(\{|\}|\[|\]|,|~|:)/gm, css: 'constants' }, // inline hash and array, comma, null
|
| 36 |
+
{ regex: /^\s+(-)+/gm, css: 'string bold' }, // array list entry
|
| 37 |
+
{ regex: /^---/gm, css: 'string bold' }, // category
|
| 38 |
+
{ regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' } // constants
|
| 39 |
+
];
|
| 40 |
+
|
| 41 |
+
this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
|
| 42 |
+
}
|
| 43 |
+
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
| 44 |
+
Brush.aliases = ['yaml', 'yml'];
|
| 45 |
+
|
| 46 |
+
SyntaxHighlighter.brushes.Yaml = Brush;
|
| 47 |
+
|
| 48 |
+
// CommonJS
|
| 49 |
+
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
| 50 |
+
})();
|
