CedPrettify offer simple, free and lightweight syntax highlighting of source code snippets using Google Code Prettify JavaScript library for Joomla!. You don't need to add additional markup to source code and neither to specify the language of source code snippets since prettify will guess. Code prettify extension for Joomla! is compatible with WYSIWYG editors and includes several themes to customize the colors and styles of source code snippets. Google Code Prettify JavaScript library supports all C-like (Java, PHP, C#, etc), Bash-like, and XML-like languages without need to specify the language and has customizable styles via CSS. Widely used with good cross-browser support.

CedPrettify supports 29 languages, once again with strong bias toward programming languages and less support for web design languages. The single URL autoloader allows you to avoid downloading any JS or CSS files and load everything via CDN, which is certainly a quick and easy approach. Being able to skip specifying languages, instead just applying the class prettyprint to pre elements, can also be a time saver. CedHighlight.js has the largest number of supported languages and themes, by a pretty significant margin, and a great process for downloading a custom build with just the languages you need. Automatic language detection is another very strong feature. With such a massive selection of languages and themes it seems this highlighter would be a fit for just about any use case. Highlight.js includes a huge number of styles (themes), with all 54 bundled in the download, and some of them matching popular IDE themes like Monokai and Railscasts. Given the number of CSS files included you may wish to copy just the themes you’ll be using into your project. The list of languages supported is also massive with over 118 available at present!

Joomla! 3.0 up to latest version

Out of the box, Code prettify module for Joomla comes configured to automatically perform syntax highlighting of source code snippets in <pre> or <code> tags on your Joomla pages. Automatic syntax highlighting mode is pretty simple, but powerful at the same time. Several settings can be configured at: Administration - Plugin - CedPrettify In TyinyMCe or any other editor, you MUST add the code using the source code editor

The prettyprinter looks for <pre>, <code>, or <xmp> elements with the prettyprint class:

<pre class="prettyprint">source code here</pre>

You may also use the HTML 5 convention of embedding a code element inside the PRE and using language-java style classes. E.g.

<pre class="prettyprint"><code class="language-java">...</code></pre>

Prettify makes a best effort to guess the language but works best with C-like and HTML-like languages. For others, there are special language handlers that are chosen based on language hints.

<pre class="prettyprint lang-scm">(friends 'of '(parentheses))</pre>

Add the linenums class, e.g

<pre class="prettyprint linenums"> Many lines of code </pre> You can use the linenums class to turn on line numbering. If your code doesn't start at line number 1, you can add a colon and a line number to the end of that class as in linenums:4.

`<pre class="prettyprint linenums:4"

// This is line 4. foo(); bar(); baz(); boo(); far(); faz(); `

Add the class linenums and select the option in plugin settings "Line number every line" <pre class="prettyprint linenums"> Many lines of code </pre>

see https://github.com/google/code-prettify

31 skins are supported with preview in administrator settings of CedPrettify.

Support is provided only to subscribers. If you already have an active subscription which gives you access to the support. You can request support for it through our site. You will need to log in to our site and go to Support and click on the New Ticket button. If you can't see the button please use the Contact Us page to let us know of the ticket system problem and remember to tell us your username. If you want to report a bug, please use the Contact Us page of our site. You don't need to be a subscriber to report a bug. Please note that unsolicited support requests sent through the Contact Us page will not be addressed. If you believe you are reporting a bug please indicate so in the contact form.

Support cannot be provided over Twitter, Facebook, email, Skype, telephone, the official Joomla! forum or any other method except the Support section on our site. We also cannot take bug reports over any other medium except our Contact Us page and the Support section on our site. Support is not provided to non-subscribers; if you are using the Core version you can request support from other users in Galaxiis forum , the official Joomla! forum or any other Joomla!-related forum in your country/region. We have to impose those restrictions in support to ensure a high level of service and quality. Thank you for your understanding.