Skip to content

Commit a571838

Browse files
committed
prepared release v4.3.0
1 parent 748c6bc commit a571838

14 files changed

+62
-96
lines changed

.wp-skeleton.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"slug": "enlighter",
33
"name": "Enlighter",
44
"namespace": "Enlighter",
5-
"version": "4.3.0-BETA1",
5+
"version": "4.3.0",
66
"license": "GPL-2.0",
77
"licenseFile": "LICENSE.txt",
88
"constants": {},

CHANGES.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,17 @@
33
### 4.3.0 ###
44

55
* Added: EnlighterJS `v3.4.0`
6-
6+
* Added: EnlighterJS Theme-Customizer `v2.3.0`
77
* Added: compatibility for `async/defer` script loading (configuration code is merged with the library) (optional)- feature requested [on WordPress.org Forums](https://wordpress.org/support/topic/enlighterjs-resources-not-loaded-yet/)
88
* Added: javascript based dynamic-resource-invocation to load the EnlighterJS assets dynamically when needed (client side)
99
* Added: dri compatibility for bbpress and dynamic content (jquery load, jetpack infinity scroll)
10+
* Added: keyword `k11` for annotations
11+
* Added: keyword `x16` for css element selectors
12+
* Added: contextual keywords to csharp - thanks to [mabako on GitHub](https://github.com/EnlighterJS/EnlighterJS/pull/112)
13+
* Added: kotlin string template support
14+
* Added: `r` language support (covered by generic ruleset)
15+
* Added: MikroTik `RouterOS` language support (ros/mikrotik/switchos/routeros/mt)
16+
* Added: pound style comment support to `php`
1017
* Changed: renamed the "raw code" language label to "Plain text"
1118
* Changed: EnlighterJS library (js) is loaded via cache file `cache/enlighterjs.min.js`
1219
* Changed: js/css cache file generation is bound to `enqueue` hook (performance)
@@ -15,15 +22,6 @@
1522
* Changed: full semantic versioning tag is used to display the plugin version (may used by additional tools) - thanks to [roy-bongers on GitHub](https://github.com/EnlighterJS/Plugin.WordPress/issues/262)
1623
* Changed: theme cache is only reloaded on Enlighter settings pages (performance) - thanks to [gdragon on Wordpress forums](https://wordpress.org/support/topic/problem-with-_transient_enlighter_userthemes-option/)
1724
* Changed: EnlighterJS::getConfig has been changed to multidimension object to allow additional payloads (this also affects the initialization code)
18-
* Removed: `EnlighterJS::dequeue` function (deprecated due to new DRI implementation)
19-
20-
* Added: keyword `k11` for annotations
21-
* Added: keyword `x16` for css element selectors
22-
* Added: contextual keywords to csharp - thanks to [mabako on GitHub](https://github.com/EnlighterJS/EnlighterJS/pull/112)
23-
* Added: kotlin string template support
24-
* Added: `r` language support (covered by generic ruleset)
25-
* Added: MikroTik `RouterOS` language support (ros/mikrotik/switchos/routeros/mt)
26-
* Added: pound style comment support to `php`
2725
* Changed: css selector fragment highlighting is limited to the selector itself
2826
* Changed: enhanced css unit parsing
2927
* Changed: `java`, `scala`, `cpp` annotation token changed to `k11`
@@ -32,12 +30,14 @@
3230
* Changed: `ampersandCleanup` is performed after html escape sequences to eliminate issues related to double unquoting #109
3331
* Changed: toggle raw code label to "Plain text"
3432
* Changed: allowed utf8 characters in `php` variable and function names (side effect of the php parser)
33+
* Removed: `EnlighterJS::dequeue` function (deprecated due to new DRI implementation)
3534
* Bugfix: vhdl single bit highlighting collided with attribute syntax - thanks to [tyriun on GitHub](https://github.com/EnlighterJS/EnlighterJS/issues/106)
3635
* Bugfix: css classnames/ids with hyphens were not recognized
3736
* Bugfix: XML mixins of single/double quotes in attributes failed #108
3837
* Bugfix: dot char within XML attribute names not recognized
3938
* Bugfix: kotlin raw string where not correctly parsed (wrong rule priority)
4039
* Bugfix: highlighting color of `classic` theme not applied due to invalid selectors - thanks to [woolseyj on GitHub](https://github.com/EnlighterJS/EnlighterJS/issues/117)
40+
* Bugfix: EnlighterJS codeblock css selectors cannot contain quotes due to initialization code sanitizing (replace with serialized object)
4141

4242

4343
### 4.2.0 ###

Enlighter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: Enlighter - Customizable Syntax Highlighter
44
Plugin URI: https://enlighterjs.org
55
Description: all-in-one syntax highlighting solution
6-
Version: 4.3.0-BETA1
6+
Version: 4.3.0
77
Author: Andi Dittrich
88
Author URI: https://andidittrich.com
99
License: GPL-2.0
@@ -16,7 +16,7 @@
1616
// Plugin Bootstrap Operation
1717
// AUTO GENERATED CODE - DO NOT EDIT !!!
1818
define('ENLIGHTER_INIT', true);
19-
define('ENLIGHTER_VERSION', '4.3.0-BETA1');
19+
define('ENLIGHTER_VERSION', '4.3.0');
2020
define('ENLIGHTER_WPSKLTN_VERSION', '0.24.0');
2121
define('ENLIGHTER_PHP_VERSION', '5.6');
2222
define('ENLIGHTER_PLUGIN_TITLE', 'Enlighter - Customizable Syntax Highlighter');

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: Andi Dittrich, aenondynamics
33
Tags: syntax highlighting, syntax highlighter, highlighter, highlighting, classic editor, gutenberg, javascript, code, coding, sourcecode,customizable, visual editor, tinymce, themes, css, html, php, js, xml, c, cpp, c#, ruby, shell, java, python, sql, rust, matlab, json, ini, config, cython, lua, assembly, asm
44
Donate link: https://enlighterjs.org
55
Requires at least: 5.0
6-
Tested up to: 5.4
6+
Tested up to: 5.5
77
Stable tag: 4.3.0
88
License: GPL-2.0
99
License URI: https://opensource.org/licenses/gpl-2.0.php

modules/skltn/Plugin.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public function showUpgradeAvailabilityNotification($currentPluginMetadata, $new
271271
public function showUpgradeMessage(){
272272
// styling
273273
echo '<div class="notice notice-success is-dismissible"><p>';
274-
echo '<strong>Enlighter Plugin Upgrade:</strong> The Plugin has been upgraded to <strong>4.3.0-BETA1</strong>';
274+
echo '<strong>Enlighter Plugin Upgrade:</strong> The Plugin has been upgraded to <strong>4.3.0</strong>';
275275
echo '</p></div>';
276276
}
277277

@@ -300,14 +300,14 @@ public static function run($pluginName){
300300
// plugin installed ?
301301
if ($version == '0.0.0'){
302302
// store new version
303-
update_option('enlighter-version', '4.3.0-BETA1');
303+
update_option('enlighter-version', '4.3.0');
304304

305305
// plugin upgraded ?
306-
}else if (version_compare('4.3.0-BETA1', $version, '>')){
306+
}else if (version_compare('4.3.0', $version, '>')){
307307
// run upgrade hook
308308
if ($i->_wp_plugin_upgrade($version)){
309309
// store new version
310-
update_option('enlighter-version', '4.3.0-BETA1');
310+
update_option('enlighter-version', '4.3.0');
311311

312312
// set flag (string!)
313313
update_option('enlighter-upgrade', 'true');

resources/about/bbpress_markdown.png

-21.8 KB
Binary file not shown.
-72.3 KB
Binary file not shown.

resources/about/environment_check.png

-30.7 KB
Binary file not shown.

resources/about/golang.png

-22.5 KB
Binary file not shown.

resources/about/multisite.png

-40.1 KB
Binary file not shown.

resources/about/routeros.png

22.1 KB
Loading

resources/customizer/enlighterjs.customizer.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

views/admin/about/Changelog.html

Lines changed: 36 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,38 @@
11
<ul>
2-
<li><p>Added: EnlighterJS <code>v3.4.0</code></p>
3-
</li>
4-
<li><p>Added: compatibility for <code>async/defer</code> script loading (configuration code is merged with the library) (optional)- feature requested <a href="https://wordpress.org/support/topic/enlighterjs-resources-not-loaded-yet/">on WordPress.org Forums</a></p>
5-
</li>
6-
<li><p>Added: javascript based dynamic-resource-invocation to load the EnlighterJS assets dynamically when needed (client side)</p>
7-
</li>
8-
<li><p>Added: dri compatibility for bbpress and dynamic content (jquery load, jetpack infinity scroll)</p>
9-
</li>
10-
<li><p>Changed: renamed the &quot;raw code&quot; language label to &quot;Plain text&quot;</p>
11-
</li>
12-
<li><p>Changed: EnlighterJS library (js) is loaded via cache file <code>cache/enlighterjs.min.js</code></p>
13-
</li>
14-
<li><p>Changed: js/css cache file generation is bound to <code>enqueue</code> hook (performance)</p>
15-
</li>
16-
<li><p>Changed: <code>wp-skltn</code> library updated to <strong>0.24.0</strong></p>
17-
</li>
18-
<li><p>Changed: for compatibility reasons, the language-shortcodes are disabled by default (this only affects new installations)</p>
19-
</li>
20-
<li><p>Changed: full semantic versioning tag is used to display the plugin version (may used by additional tools) - thanks to <a href="https://github.com/EnlighterJS/Plugin.WordPress/issues/262">roy-bongers on GitHub</a></p>
21-
</li>
22-
<li><p>Changed: theme cache is only reloaded on Enlighter settings pages (performance) - thanks to <a href="https://wordpress.org/support/topic/problem-with-_transient_enlighter_userthemes-option/">gdragon on Wordpress forums</a></p>
23-
</li>
24-
<li><p>Changed: EnlighterJS::getConfig has been changed to multidimension object to allow additional payloads (this also affects the initialization code)</p>
25-
</li>
26-
<li><p>Removed: <code>EnlighterJS::dequeue</code> function (deprecated due to new DRI implementation)</p>
27-
</li>
28-
<li><p>Added: keyword <code>k11</code> for annotations</p>
29-
</li>
30-
<li><p>Added: keyword <code>x16</code> for css element selectors</p>
31-
</li>
32-
<li><p>Added: contextual keywords to csharp - thanks to <a href="https://github.com/EnlighterJS/EnlighterJS/pull/112">mabako on GitHub</a></p>
33-
</li>
34-
<li><p>Added: kotlin string template support</p>
35-
</li>
36-
<li><p>Added: <code>r</code> language support (covered by generic ruleset)</p>
37-
</li>
38-
<li><p>Added: MikroTik <code>RouterOS</code> language support (ros/mikrotik/switchos/routeros/mt)</p>
39-
</li>
40-
<li><p>Added: pound style comment support to <code>php</code></p>
41-
</li>
42-
<li><p>Changed: css selector fragment highlighting is limited to the selector itself</p>
43-
</li>
44-
<li><p>Changed: enhanced css unit parsing</p>
45-
</li>
46-
<li><p>Changed: <code>java</code>, <code>scala</code>, <code>cpp</code> annotation token changed to <code>k11</code></p>
47-
</li>
48-
<li><p>Changed: added token <code>k11</code> to themes</p>
49-
</li>
50-
<li><p>Changed: moved generic highlighting rules to <code>lang/rulesets/generic</code></p>
51-
</li>
52-
<li><p>Changed: <code>ampersandCleanup</code> is performed after html escape sequences to eliminate issues related to double unquoting #109</p>
53-
</li>
54-
<li><p>Changed: toggle raw code label to &quot;Plain text&quot;</p>
55-
</li>
56-
<li><p>Changed: allowed utf8 characters in <code>php</code> variable and function names (side effect of the php parser)</p>
57-
</li>
58-
<li><p>Bugfix: vhdl single bit highlighting collided with attribute syntax - thanks to <a href="https://github.com/EnlighterJS/EnlighterJS/issues/106">tyriun on GitHub</a></p>
59-
</li>
60-
<li><p>Bugfix: css classnames/ids with hyphens were not recognized</p>
61-
</li>
62-
<li><p>Bugfix: XML mixins of single/double quotes in attributes failed #108</p>
63-
</li>
64-
<li><p>Bugfix: dot char within XML attribute names not recognized</p>
65-
</li>
66-
<li><p>Bugfix: kotlin raw string where not correctly parsed (wrong rule priority)</p>
67-
</li>
68-
<li><p>Bugfix: highlighting color of <code>classic</code> theme not applied due to invalid selectors - thanks to <a href="https://github.com/EnlighterJS/EnlighterJS/issues/117">woolseyj on GitHub</a></p>
69-
</li>
2+
<li>Added: EnlighterJS <code>v3.4.0</code></li>
3+
<li>Added: EnlighterJS Theme-Customizer <code>v2.3.0</code></li>
4+
<li>Added: compatibility for <code>async/defer</code> script loading (configuration code is merged with the library) (optional)- feature requested <a href="https://wordpress.org/support/topic/enlighterjs-resources-not-loaded-yet/">on WordPress.org Forums</a></li>
5+
<li>Added: javascript based dynamic-resource-invocation to load the EnlighterJS assets dynamically when needed (client side)</li>
6+
<li>Added: dri compatibility for bbpress and dynamic content (jquery load, jetpack infinity scroll)</li>
7+
<li>Added: keyword <code>k11</code> for annotations</li>
8+
<li>Added: keyword <code>x16</code> for css element selectors</li>
9+
<li>Added: contextual keywords to csharp - thanks to <a href="https://github.com/EnlighterJS/EnlighterJS/pull/112">mabako on GitHub</a></li>
10+
<li>Added: kotlin string template support</li>
11+
<li>Added: <code>r</code> language support (covered by generic ruleset)</li>
12+
<li>Added: MikroTik <code>RouterOS</code> language support (ros/mikrotik/switchos/routeros/mt)</li>
13+
<li>Added: pound style comment support to <code>php</code></li>
14+
<li>Changed: renamed the &quot;raw code&quot; language label to &quot;Plain text&quot;</li>
15+
<li>Changed: EnlighterJS library (js) is loaded via cache file <code>cache/enlighterjs.min.js</code></li>
16+
<li>Changed: js/css cache file generation is bound to <code>enqueue</code> hook (performance)</li>
17+
<li>Changed: <code>wp-skltn</code> library updated to <strong>0.24.0</strong></li>
18+
<li>Changed: for compatibility reasons, the language-shortcodes are disabled by default (this only affects new installations)</li>
19+
<li>Changed: full semantic versioning tag is used to display the plugin version (may used by additional tools) - thanks to <a href="https://github.com/EnlighterJS/Plugin.WordPress/issues/262">roy-bongers on GitHub</a></li>
20+
<li>Changed: theme cache is only reloaded on Enlighter settings pages (performance) - thanks to <a href="https://wordpress.org/support/topic/problem-with-_transient_enlighter_userthemes-option/">gdragon on Wordpress forums</a></li>
21+
<li>Changed: EnlighterJS::getConfig has been changed to multidimension object to allow additional payloads (this also affects the initialization code)</li>
22+
<li>Changed: css selector fragment highlighting is limited to the selector itself</li>
23+
<li>Changed: enhanced css unit parsing</li>
24+
<li>Changed: <code>java</code>, <code>scala</code>, <code>cpp</code> annotation token changed to <code>k11</code></li>
25+
<li>Changed: added token <code>k11</code> to themes</li>
26+
<li>Changed: moved generic highlighting rules to <code>lang/rulesets/generic</code></li>
27+
<li>Changed: <code>ampersandCleanup</code> is performed after html escape sequences to eliminate issues related to double unquoting #109</li>
28+
<li>Changed: toggle raw code label to &quot;Plain text&quot;</li>
29+
<li>Changed: allowed utf8 characters in <code>php</code> variable and function names (side effect of the php parser)</li>
30+
<li>Removed: <code>EnlighterJS::dequeue</code> function (deprecated due to new DRI implementation)</li>
31+
<li>Bugfix: vhdl single bit highlighting collided with attribute syntax - thanks to <a href="https://github.com/EnlighterJS/EnlighterJS/issues/106">tyriun on GitHub</a></li>
32+
<li>Bugfix: css classnames/ids with hyphens were not recognized</li>
33+
<li>Bugfix: XML mixins of single/double quotes in attributes failed #108</li>
34+
<li>Bugfix: dot char within XML attribute names not recognized</li>
35+
<li>Bugfix: kotlin raw string where not correctly parsed (wrong rule priority)</li>
36+
<li>Bugfix: highlighting color of <code>classic</code> theme not applied due to invalid selectors - thanks to <a href="https://github.com/EnlighterJS/EnlighterJS/issues/117">woolseyj on GitHub</a></li>
37+
<li>Bugfix: EnlighterJS codeblock css selectors cannot contain quotes due to initialization code sanitizing (replace with serialized object)</li>
7038
</ul>

views/admin/about/News.phtml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55

66
<p class="introduction"></p>
77

8-
<p>Everything has changed. <strong>This release is not backward compatible!</strong><br />
9-
Custom themes and custom changes cannot be converted.</p>
8+
<p>Everything has changed. <strong>This release is not backward compatible to v3!</strong></p>
109

1110
<p style="color:#68a800"><strong>Codeblocks within post/pages/comments are fully compatible - everything will work as expected.</strong></p>
1211
</div>
@@ -21,29 +20,28 @@
2120

2221
<div class="news-image">
2322
<img
24-
src="<?php echo \Enlighter\skltn\ResourceManager::getResourceUrl('about/golang.png'); ?>"
23+
src="<?php echo \Enlighter\skltn\ResourceManager::getResourceUrl('about/routeros.png'); ?>"
2524
alt="golang example">
2625
</div>
2726

28-
<p>GO, RUST, Scala, YAML, VHDL, Kotlin, TypeScript, Groovy, LESS, SASS, SCSS, Dockerfile, Powershell, VB, Swift, QML, Prolog, ABAP, Verilog, Purebasic. <br />
29-
<strong>ALL language support file have been re-created from scratch!</strong></p>
27+
<p>Support for R and MikroTik RouterOS/SwitchOS has been added</p>
3028

3129
</div>
3230

3331
</div>
3432

3533
<div class="col-md-2">
3634
<div class="news-section">
37-
<h4>New themes</h4>
35+
<h4>Dynamic-Resource-Invocation Re-Implemented</h4>
3836

3937
<div class="news-image">
4038
<img
4139
src="<?php echo \Enlighter\skltn\ResourceManager::getResourceUrl('about/bootstrap4.png'); ?>"
4240
alt="bootstrap4">
4341
</div>
4442

45-
<p>Dracula, Monokai and Bootstrap4 are added. <br />
46-
<strong>ALL themes have been re-created from scratch!</strong></p>
43+
<p>DRI compatibility for bbpress and dynamic content (jquery load, jetpack infinity scroll). <br />
44+
<strong>Javascript based dynamic-resource-invocation to load the EnlighterJS assets dynamically when needed (client side)</strong></p>
4745

4846
</div>
4947

0 commit comments

Comments
 (0)