Easy Code Highlighter

Easy Code Highlighter

Code Highlighter Plugin for Joomla
Plugin Joomla 3.x.xJoomla 4.x.x
Easy Code Highlighter Features
Latest Extension Version1.4
Last Updated 25 October 2021

Easy to use system plugin for highlighting code snippets in Joomla. This plugin has 8 theme styles to define and supports 18 programming languages.

  • Very easy to setup and install
  • Compatible with all browsers [Firefox 3.0 and more, Google Chrome, Internet Explorer 7 and above, Safari and Opera ]
  • Option to define the programming language that you are using.
  • Works on all browsers.
  • Works on iPhone and iPad.
  • Can be added to Custom Module or any Joomla Article.

PLUGIN FEATURES

  • Option to choose theme for the code highlighter. [8 themes available]
  • Option to highlight line number.
  • Option to define the language you are using.
  • Supports 18 different programming language
Browser Supported
Responsive Extension
What's New?

Version 1.4 - 125 October 2021

  • Supports Joomla 4

Version 1.3 -19 June 2021

  • Backend jQuery Issue Fixed
  • Modifications to Plugin Backend

Version 1.2 - 23 May 2019

  • Joomla Update Integrated

Highlighting PHP Code

<?php 
echo "Welcome to PHP";
?>
<p>Hello</p>
<?php 
/***********************************
** Multiline block comments
 **********************************/
$stringWithUrl = "https://alexgorbatchev.com";
$stringWithUrl = 'https://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);
 }
 }
?>

Shortcode

{code}<?php 
echo "Welcome to PHP";
?>
<p>Hello</p>
<?php
/***********************************
** Multiline block comments
**********************************/
$stringWithUrl = "https://alexgorbatchev.com";
$stringWithUrl = 'https://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);
}
}
?>{lang}php{highlight}4,7{end-code}

Highlighting 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();
?>