Snippet Plugin for Havalite

HavaLite CMS

A new liteweight Content Management System (CMS)

Snippet Plugin for Havalite

The jQuery Snippet plugin for highlightning source code

$test = "Test the new Plugin for Havalite";
if($test == true){
   echo $test;
}


 

Installation

  1. Download the zip file
  2. save the content of the zip file in the plugin folder of havalite
  3. go to administration => plugins and activate the plugin
  4. Click on the image of the plugin to see supported programming languages

Usage:

to view your code with the snippet plugin, you need to set it between a PRE tag and give it a CLASS attribute with the programming language name

Example:
<pre class="php">The code goes here</pre>
or
<pre class="html">The code goes here</pre>

To make it always available, you can add a style to you CKEditor in the Settings => Editor Configurations as follow:

{name:'Pre_Php',element:'pre',attributes:{class:'php'}},
{name:'Pre_JS',element:'pre',attributes:{class:'js'}},

 

Download Plugin: download_counter.zip

comments powered by Disqus

0 Comments

    Leave a Reply

    Contact Info

    Phone: +49 941 26175

    Address: Ayman Teryaki,
    Prüfeninger Str. 48,
    93047 Regensburg, Germany

    Want more info - go to our contact page or visit Google+

    Social

    Stay up to date. Subscribe via RSS, Facebook, Twitter or Email

    Recent Comments