Menu

Overview:

If you want to use TinyMCE in Joomla! and its builtin "Insert/Edit code" feature, you need this plugin to have syntax highlighting on your site. SyntaxHighlighting is based on PRISM, but the necessary JScript and CSS files are not loaded after you close TinyMCE.

This plugin adds the necessary JScript and CSS files to your site.

Features:

  • Use of Joomla!-Updater
  • possibilty to select various "Styles"
  • possibilty to use the autoloader feature to support more languages, than offered by TinyMCE
  • possibilty to use line-numbers (you have to add "line-numbers" to the css-class of the <pre>-Element)
  • uses own and local CSS/JS storage, no loading of external ressources, syntaxhighlighting will not stop after removal of TinyMCE

Examples:

Markup (HTML, XML...):

<h1>Heading1</h1>
<p>text</p>

CSS:

.myclass {
   color: red;
}

PHP (with line-numbers):

<?php
   phpinfo();>
?>

How to install:

  1. Download and install
  2. Enable the plugin
  3. optional: configure the plugin

How to use:

Just add code to your content with TinyMCE and its "Insert/Edit code sample" feature

To have linenumbers, you have to manually edit your code and add "line-numbers" to the css-class of the <pre>-Element:

<pre class="line-numbers language-php">

Download:

Download PRISM (prismjs.com) SyntaxHighlighter for Joomla! here.

License:

This Plugin "PRISM (prismjs.com) SyntaxHighlighter for Joomla" is released under the GPLv3 License, this plugin contains code from prismjs.com, released under the MIT-License.

Todos/Known Problems:

  • Fix Translation Files and Description

Changelog:

  • 12.01.2017 Version 0.93
    Fixed: Does not load if joomla is installed in a subfolder
    Added: Plugin is only loaded when it is needed, not on sites without Code
  • 11.01.2017 Version 0.8
    Added: License
  • 11.01.2017 Version 0.7
    Added: Joomla Updater
  • 08.01.2017 Version 06
    Initial Upload

Andrehotzler.de is not affiliated with or endorsed by the Joomla Project or Open Source Matters. The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries

Andre Hotzler EDV-Dienstleistungen
Bajuwarenstraße 56 - 81825 München

Telefon: 089 4555 4943
Web: www.andrehotzler.de - E-Mail: Diese E-Mail-Adresse ist vor Spambots geschützt! Zur Anzeige muss JavaScript eingeschaltet sein!