plugincomponent
Utilities

Easy Code Highlighter

Code Highlighter Plugin for Joomla

J4 J5 J6
5.03.4K+ downloads v1.7
Easy Code Highlighter
DemoHighlighting PHP Code

<?php 
echo "Welcome to PHP";
?>
<p>Hello</p>
<?php 
/***********************************
** Multiline block comments
 **********************************/
$stringWithUrl = "http://alexgorbatchev.com";
$stringWithUrl = 'http://alexgorbatchev.com';
  
ob_start("parseOutputBuffer");      // Start Code Buffering
session_start();
  
function parseOutputBuffer(\$buf) {
 global $portal_small_code, $portal_gzcompress;
 global $PHP_SELF, $HTTP_ACCEPT_ENCODING;
  
 // cleaning out the code.
 if($portal_small_code && !\$portal_gzcompress) {
 $buf = str_replace("    ", "", $buf);
 $buf = str_replace("\n", "", $buf);
 $buf = str_replace(chr(13), "", $buf);
 }
 }
?>
DemoHighlighting CSS Code

 .sample_div{
border-radius: 5px 5px 5px 5px;
border: 2px solid #FF0;
font-weight: bold !important;
}

Shortcode

{code}
.sample_div{
border-radius: 5px 5px 5px 5px;
border: 2px solid #FF0;
font-weight: bold !important;
}
{lang}css{highlight}3{end-code}
<?php
function update() {
$counter = 0;
echo $counter;
echo "
";
$counter++;
}
update();
update();
update();
?>

Mobile Menu

×

Login to your account

Don't have an account? Register Now

Login

Don't have an account yet? Register now!