wordpress | Twise Random https://twiserandom.com A site about computer science . Tue, 23 Feb 2021 07:23:33 +0000 en-US hourly 1 https://wordpress.org/?v=5.8.1 https://twiserandom.com/wp-content/uploads/2019/08/cropped-abstract-color-32x32.jpg wordpress | Twise Random https://twiserandom.com 32 32 How to install nginx , php , mysql , and WordPress on macOS ? https://twiserandom.com/macos/how-to-install-nginx-php-mysql-and-wordpress-on-macos/ Tue, 17 Nov 2020 08:44:46 +0000 https://twiserandom.com/?p=4281 Install Macports

To be able to install MacPorts , you must have Xcode first installed using the App Store , and you must also install the Xcode command line developer tools :

$ sudo xcode-select --install
# To install Xcode 

Read More

The post How to install nginx , php , mysql , and WordPress on macOS ? first appeared on Twise Random.]]>
Install Macports

To be able to install MacPorts , you must have Xcode first installed using the App Store , and you must also install the Xcode command line developer tools :

$ sudo xcode-select --install
# To install Xcode 
Read More The post How to install nginx , php , mysql , and WordPress on macOS ? first appeared on Twise Random.]]>
How to fix content not being shown when using wordpress plugin : Prettify GC Syntax Highlighter ? https://twiserandom.com/wordpress/how-to-fix-content-not-being-shown-when-using-wordpress-plugin-prettify-gc-syntax-highlighter/ Sat, 26 Sep 2020 14:19:06 +0000 https://twiserandom.com/?p=2822 To fix the content now being shown when using the wordpress plugin : Prettify GC Syntax Highlighter , edit prettify-gc-syntax-highlighter.php and replace :

return preg_replace(
    "/<pre\\s*class\\s*=\\s*([\"'])\\s*prettyprint\\s*([^]*?)\\s*(.*?)<\/pre/ise", 
    "'<pre class='.stripslashes('$1').'prettyprint '.stripslashes('$2').''.htmlentities(stripslashes('$3')).'</pre'", 
    $text);

with

return preg_replace_callback(
    "/<pre\\s*class\\s*=\\s*([\"'])\\s*prettyprint\\s*([^]*?)\\s*

Read More

The post How to fix content not being shown when using wordpress plugin : Prettify GC Syntax Highlighter ? first appeared on Twise Random.]]>
To fix the content now being shown when using the wordpress plugin : Prettify GC Syntax Highlighter , edit prettify-gc-syntax-highlighter.php and replace :

return preg_replace(
    "/<pre\\s*class\\s*=\\s*([\"'])\\s*prettyprint\\s*([^]*?)\\s*(.*?)<\/pre/ise", 
    "'<pre class='.stripslashes('$1').'prettyprint '.stripslashes('$2').''.htmlentities(stripslashes('$3')).'</pre'", 
    $text);

with

return preg_replace_callback(
    "/<pre\\s*class\\s*=\\s*([\"'])\\s*prettyprint\\s*([^]*?)\\s*
Read More The post How to fix content not being shown when using wordpress plugin : Prettify GC Syntax Highlighter ? first appeared on Twise Random.]]>