Changeset 1913083
- Timestamp:
- 07/22/2018 05:29:15 PM (8 years ago)
- Location:
- code-editor-and-compiler/trunk
- Files:
-
- 5 edited
-
admin/compilebin-admin.php (modified) (2 diffs)
-
compilebin.php (modified) (1 diff)
-
public/compilebin-public.php (modified) (1 diff)
-
public/js/editor-handler-public.js (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
code-editor-and-compiler/trunk/admin/compilebin-admin.php
r1912961 r1913083 7 7 public function __construct() { 8 8 $this->plugin_name = "code-editor-and-compiler"; 9 $this->plugin_version = "1.3. 9";9 $this->plugin_version = "1.3.10"; 10 10 add_action('admin_notices', array($this, 'plugin_activation')); 11 11 add_action('deactivated_plugin', array($this, 'plugin_deactivation')); … … 49 49 deactivate_plugins('wp-syntaxhighlighter/wp-syntaxhighlighter.php'); 50 50 echo $html; 51 } 52 if (is_plugin_active('syntaxhighlighter/syntaxhighlighter.php')) { 53 $html = '<div class="updated notice is-dismissible"> 54 <p>Existing code snippets which are using <i>Syntax Highlighter Evolved</i> plugin will now be syntax highlighted using <i>Compilebin</i>. Please do <b>NOT</b> deactivate <i>Syntax Highlighter Evolved</i> plugin.</p> 55 </div>'; 56 //echo $html; 51 57 } 52 58 } -
code-editor-and-compiler/trunk/compilebin.php
r1912961 r1913083 10 10 * Plugin URI: https://www.compilebin.com 11 11 * Description: Syntax highlighter and code compiler. 12 * Version: 1.3. 912 * Version: 1.3.10 13 13 * Author: Compilebin 14 14 * Author URI: https://www.compilebin.com -
code-editor-and-compiler/trunk/public/compilebin-public.php
r1912961 r1913083 7 7 public function __construct() { 8 8 $this->plugin_name = "code-editor-and-compiler"; 9 $this->plugin_version = "1.3. 9";9 $this->plugin_version = "1.3.10"; 10 10 add_action('wp_enqueue_scripts', array(&$this, 'enqueueScripts')); 11 11 add_action('wp_enqueue_scripts', array(&$this, 'enqueueStyles')); -
code-editor-and-compiler/trunk/public/js/editor-handler-public.js
r1912961 r1913083 22 22 } 23 23 return false; 24 }; 25 26 var cdbx_isCompilebinPresent = function (elem) { 27 if (elem.className == 'prettyprint' || elem.className == 'cdbxweb prettyprint') { 28 return true; 29 } 30 return false; 24 31 }; 25 32 … … 55 62 for (var i = 0; i < cdbx_preElems.length; i++) { 56 63 cdbx_lineHighlight(cdbx_preElems[i]); 57 if (cdbx_isCrayonHighlighterPresent(cdbx_preElems[i]) || cdbx_isWPSyntaxHighlighterPresent(cdbx_preElems[i])) { 58 cdbx_preElems[i].classList.add('prettyprint'); 64 //if (cdbx_isCrayonHighlighterPresent(cdbx_preElems[i]) || cdbx_isWPSyntaxHighlighterPresent(cdbx_preElems[i])) { 65 if (!cdbx_isCompilebinPresent(cdbx_preElems[i])) { 66 //cdbx_preElems[i].classList.add('prettyprint'); 67 cdbx_preElems[i].className = 'prettyprint'; 59 68 cdbx_preElems[i].setAttribute("style", "padding: 10px; border: 1px solid rgba(231, 231, 230, 1); border-radius: 10px; background-color: #ffffff; font-family: courier, sans-serif; font-size: 13px;"); 60 69 } -
code-editor-and-compiler/trunk/readme.txt
r1912961 r1913083 1 1 === Compilebin === 2 2 Contributors: rahburma 3 Tags: online compiler, code editor, syntax highlighter, compiler plugin, embed code snippets, code, highlight, syntax, compiler, snippet3 Tags: online compiler, code editor, syntax highlighter, syntax highlight, compiler plugin, embed code snippets, code, highlight, syntax, compiler, snippet 4 4 Plugin URI: https://www.compilebin.com 5 5 Requires at least: 3.1 6 6 Tested up to: 4.9.4 7 Stable tag: 1.3. 97 Stable tag: 1.3.10 8 8 Requires PHP: 5.2.4 9 9 License: GPLv2 or later … … 35 35 36 36 == Changelog == 37 1.3. 937 1.3.10 38 38 Support for highlighting selected portion of web design code in public view. 39 39 UI improvement
Note: See TracChangeset
for help on using the changeset viewer.