Skip to content

Commit

Permalink
prepared release v4.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AndiDittrich committed Aug 2, 2020
1 parent 748c6bc commit a571838
Show file tree
Hide file tree
Showing 14 changed files with 62 additions and 96 deletions.
2 changes: 1 addition & 1 deletion .wp-skeleton.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"slug": "enlighter",
"name": "Enlighter",
"namespace": "Enlighter",
"version": "4.3.0-BETA1",
"version": "4.3.0",
"license": "GPL-2.0",
"licenseFile": "LICENSE.txt",
"constants": {},
Expand Down
20 changes: 10 additions & 10 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@
### 4.3.0 ###

* Added: EnlighterJS `v3.4.0`

* Added: EnlighterJS Theme-Customizer `v2.3.0`
* 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/)
* Added: javascript based dynamic-resource-invocation to load the EnlighterJS assets dynamically when needed (client side)
* Added: dri compatibility for bbpress and dynamic content (jquery load, jetpack infinity scroll)
* Added: keyword `k11` for annotations
* Added: keyword `x16` for css element selectors
* Added: contextual keywords to csharp - thanks to [mabako on GitHub](https://github.com/EnlighterJS/EnlighterJS/pull/112)
* Added: kotlin string template support
* Added: `r` language support (covered by generic ruleset)
* Added: MikroTik `RouterOS` language support (ros/mikrotik/switchos/routeros/mt)
* Added: pound style comment support to `php`
* Changed: renamed the "raw code" language label to "Plain text"
* Changed: EnlighterJS library (js) is loaded via cache file `cache/enlighterjs.min.js`
* Changed: js/css cache file generation is bound to `enqueue` hook (performance)
Expand All @@ -15,15 +22,6 @@
* 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)
* 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/)
* Changed: EnlighterJS::getConfig has been changed to multidimension object to allow additional payloads (this also affects the initialization code)
* Removed: `EnlighterJS::dequeue` function (deprecated due to new DRI implementation)

* Added: keyword `k11` for annotations
* Added: keyword `x16` for css element selectors
* Added: contextual keywords to csharp - thanks to [mabako on GitHub](https://github.com/EnlighterJS/EnlighterJS/pull/112)
* Added: kotlin string template support
* Added: `r` language support (covered by generic ruleset)
* Added: MikroTik `RouterOS` language support (ros/mikrotik/switchos/routeros/mt)
* Added: pound style comment support to `php`
* Changed: css selector fragment highlighting is limited to the selector itself
* Changed: enhanced css unit parsing
* Changed: `java`, `scala`, `cpp` annotation token changed to `k11`
Expand All @@ -32,12 +30,14 @@
* Changed: `ampersandCleanup` is performed after html escape sequences to eliminate issues related to double unquoting #109
* Changed: toggle raw code label to "Plain text"
* Changed: allowed utf8 characters in `php` variable and function names (side effect of the php parser)
* Removed: `EnlighterJS::dequeue` function (deprecated due to new DRI implementation)
* Bugfix: vhdl single bit highlighting collided with attribute syntax - thanks to [tyriun on GitHub](https://github.com/EnlighterJS/EnlighterJS/issues/106)
* Bugfix: css classnames/ids with hyphens were not recognized
* Bugfix: XML mixins of single/double quotes in attributes failed #108
* Bugfix: dot char within XML attribute names not recognized
* Bugfix: kotlin raw string where not correctly parsed (wrong rule priority)
* Bugfix: highlighting color of `classic` theme not applied due to invalid selectors - thanks to [woolseyj on GitHub](https://github.com/EnlighterJS/EnlighterJS/issues/117)
* Bugfix: EnlighterJS codeblock css selectors cannot contain quotes due to initialization code sanitizing (replace with serialized object)


### 4.2.0 ###
Expand Down
4 changes: 2 additions & 2 deletions Enlighter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Enlighter - Customizable Syntax Highlighter
Plugin URI: https://enlighterjs.org
Description: all-in-one syntax highlighting solution
Version: 4.3.0-BETA1
Version: 4.3.0
Author: Andi Dittrich
Author URI: https://andidittrich.com
License: GPL-2.0
Expand All @@ -16,7 +16,7 @@
// Plugin Bootstrap Operation
// AUTO GENERATED CODE - DO NOT EDIT !!!
define('ENLIGHTER_INIT', true);
define('ENLIGHTER_VERSION', '4.3.0-BETA1');
define('ENLIGHTER_VERSION', '4.3.0');
define('ENLIGHTER_WPSKLTN_VERSION', '0.24.0');
define('ENLIGHTER_PHP_VERSION', '5.6');
define('ENLIGHTER_PLUGIN_TITLE', 'Enlighter - Customizable Syntax Highlighter');
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: Andi Dittrich, aenondynamics
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
Donate link: https://enlighterjs.org
Requires at least: 5.0
Tested up to: 5.4
Tested up to: 5.5
Stable tag: 4.3.0
License: GPL-2.0
License URI: https://opensource.org/licenses/gpl-2.0.php
Expand Down
8 changes: 4 additions & 4 deletions modules/skltn/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public function showUpgradeAvailabilityNotification($currentPluginMetadata, $new
public function showUpgradeMessage(){
// styling
echo '<div class="notice notice-success is-dismissible"><p>';
echo '<strong>Enlighter Plugin Upgrade:</strong> The Plugin has been upgraded to <strong>4.3.0-BETA1</strong>';
echo '<strong>Enlighter Plugin Upgrade:</strong> The Plugin has been upgraded to <strong>4.3.0</strong>';
echo '</p></div>';
}

Expand Down Expand Up @@ -300,14 +300,14 @@ public static function run($pluginName){
// plugin installed ?
if ($version == '0.0.0'){
// store new version
update_option('enlighter-version', '4.3.0-BETA1');
update_option('enlighter-version', '4.3.0');

// plugin upgraded ?
}else if (version_compare('4.3.0-BETA1', $version, '>')){
}else if (version_compare('4.3.0', $version, '>')){
// run upgrade hook
if ($i->_wp_plugin_upgrade($version)){
// store new version
update_option('enlighter-version', '4.3.0-BETA1');
update_option('enlighter-version', '4.3.0');

// set flag (string!)
update_option('enlighter-upgrade', 'true');
Expand Down
Binary file removed resources/about/bbpress_markdown.png
Binary file not shown.
Binary file removed resources/about/enlighter_tabindent.gif
Binary file not shown.
Binary file removed resources/about/environment_check.png
Binary file not shown.
Binary file removed resources/about/golang.png
Binary file not shown.
Binary file removed resources/about/multisite.png
Binary file not shown.
Binary file added resources/about/routeros.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions resources/customizer/enlighterjs.customizer.min.js

Large diffs are not rendered by default.

104 changes: 36 additions & 68 deletions views/admin/about/Changelog.html
Original file line number Diff line number Diff line change
@@ -1,70 +1,38 @@
<ul>
<li><p>Added: EnlighterJS <code>v3.4.0</code></p>
</li>
<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>
</li>
<li><p>Added: javascript based dynamic-resource-invocation to load the EnlighterJS assets dynamically when needed (client side)</p>
</li>
<li><p>Added: dri compatibility for bbpress and dynamic content (jquery load, jetpack infinity scroll)</p>
</li>
<li><p>Changed: renamed the &quot;raw code&quot; language label to &quot;Plain text&quot;</p>
</li>
<li><p>Changed: EnlighterJS library (js) is loaded via cache file <code>cache/enlighterjs.min.js</code></p>
</li>
<li><p>Changed: js/css cache file generation is bound to <code>enqueue</code> hook (performance)</p>
</li>
<li><p>Changed: <code>wp-skltn</code> library updated to <strong>0.24.0</strong></p>
</li>
<li><p>Changed: for compatibility reasons, the language-shortcodes are disabled by default (this only affects new installations)</p>
</li>
<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>
</li>
<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>
</li>
<li><p>Changed: EnlighterJS::getConfig has been changed to multidimension object to allow additional payloads (this also affects the initialization code)</p>
</li>
<li><p>Removed: <code>EnlighterJS::dequeue</code> function (deprecated due to new DRI implementation)</p>
</li>
<li><p>Added: keyword <code>k11</code> for annotations</p>
</li>
<li><p>Added: keyword <code>x16</code> for css element selectors</p>
</li>
<li><p>Added: contextual keywords to csharp - thanks to <a href="https://github.com/EnlighterJS/EnlighterJS/pull/112">mabako on GitHub</a></p>
</li>
<li><p>Added: kotlin string template support</p>
</li>
<li><p>Added: <code>r</code> language support (covered by generic ruleset)</p>
</li>
<li><p>Added: MikroTik <code>RouterOS</code> language support (ros/mikrotik/switchos/routeros/mt)</p>
</li>
<li><p>Added: pound style comment support to <code>php</code></p>
</li>
<li><p>Changed: css selector fragment highlighting is limited to the selector itself</p>
</li>
<li><p>Changed: enhanced css unit parsing</p>
</li>
<li><p>Changed: <code>java</code>, <code>scala</code>, <code>cpp</code> annotation token changed to <code>k11</code></p>
</li>
<li><p>Changed: added token <code>k11</code> to themes</p>
</li>
<li><p>Changed: moved generic highlighting rules to <code>lang/rulesets/generic</code></p>
</li>
<li><p>Changed: <code>ampersandCleanup</code> is performed after html escape sequences to eliminate issues related to double unquoting #109</p>
</li>
<li><p>Changed: toggle raw code label to &quot;Plain text&quot;</p>
</li>
<li><p>Changed: allowed utf8 characters in <code>php</code> variable and function names (side effect of the php parser)</p>
</li>
<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>
</li>
<li><p>Bugfix: css classnames/ids with hyphens were not recognized</p>
</li>
<li><p>Bugfix: XML mixins of single/double quotes in attributes failed #108</p>
</li>
<li><p>Bugfix: dot char within XML attribute names not recognized</p>
</li>
<li><p>Bugfix: kotlin raw string where not correctly parsed (wrong rule priority)</p>
</li>
<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>
</li>
<li>Added: EnlighterJS <code>v3.4.0</code></li>
<li>Added: EnlighterJS Theme-Customizer <code>v2.3.0</code></li>
<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>
<li>Added: javascript based dynamic-resource-invocation to load the EnlighterJS assets dynamically when needed (client side)</li>
<li>Added: dri compatibility for bbpress and dynamic content (jquery load, jetpack infinity scroll)</li>
<li>Added: keyword <code>k11</code> for annotations</li>
<li>Added: keyword <code>x16</code> for css element selectors</li>
<li>Added: contextual keywords to csharp - thanks to <a href="https://github.com/EnlighterJS/EnlighterJS/pull/112">mabako on GitHub</a></li>
<li>Added: kotlin string template support</li>
<li>Added: <code>r</code> language support (covered by generic ruleset)</li>
<li>Added: MikroTik <code>RouterOS</code> language support (ros/mikrotik/switchos/routeros/mt)</li>
<li>Added: pound style comment support to <code>php</code></li>
<li>Changed: renamed the &quot;raw code&quot; language label to &quot;Plain text&quot;</li>
<li>Changed: EnlighterJS library (js) is loaded via cache file <code>cache/enlighterjs.min.js</code></li>
<li>Changed: js/css cache file generation is bound to <code>enqueue</code> hook (performance)</li>
<li>Changed: <code>wp-skltn</code> library updated to <strong>0.24.0</strong></li>
<li>Changed: for compatibility reasons, the language-shortcodes are disabled by default (this only affects new installations)</li>
<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>
<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>
<li>Changed: EnlighterJS::getConfig has been changed to multidimension object to allow additional payloads (this also affects the initialization code)</li>
<li>Changed: css selector fragment highlighting is limited to the selector itself</li>
<li>Changed: enhanced css unit parsing</li>
<li>Changed: <code>java</code>, <code>scala</code>, <code>cpp</code> annotation token changed to <code>k11</code></li>
<li>Changed: added token <code>k11</code> to themes</li>
<li>Changed: moved generic highlighting rules to <code>lang/rulesets/generic</code></li>
<li>Changed: <code>ampersandCleanup</code> is performed after html escape sequences to eliminate issues related to double unquoting #109</li>
<li>Changed: toggle raw code label to &quot;Plain text&quot;</li>
<li>Changed: allowed utf8 characters in <code>php</code> variable and function names (side effect of the php parser)</li>
<li>Removed: <code>EnlighterJS::dequeue</code> function (deprecated due to new DRI implementation)</li>
<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>
<li>Bugfix: css classnames/ids with hyphens were not recognized</li>
<li>Bugfix: XML mixins of single/double quotes in attributes failed #108</li>
<li>Bugfix: dot char within XML attribute names not recognized</li>
<li>Bugfix: kotlin raw string where not correctly parsed (wrong rule priority)</li>
<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>
<li>Bugfix: EnlighterJS codeblock css selectors cannot contain quotes due to initialization code sanitizing (replace with serialized object)</li>
</ul>
14 changes: 6 additions & 8 deletions views/admin/about/News.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

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

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

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

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

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

</div>

</div>

<div class="col-md-2">
<div class="news-section">
<h4>New themes</h4>
<h4>Dynamic-Resource-Invocation Re-Implemented</h4>

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

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

</div>

Expand Down

0 comments on commit a571838

Please sign in to comment.