Ticket #533 (assigned new feature)

Opened 8 months ago

Last modified 4 months ago

plugin syntax highlighting

Reported by: Lipki Assigned to: Lipki (accepted)
Priority: low Milestone:
Component: jelix:plugins Version: 1.0.2
Severity: normal Keywords:
Cc: Php version:
Review: Hosting Provider:
Documentation needed: 0 Blocking:

Description

Voici la première version du plugin de coloration syntaxique.

Ce plugin est basé sur un développement personnelle, légèrement inspiré par GeSHi.

Utilisation :

{sh 'jtpl'}
<div class="corps">
    <p>
        contenu
        {image 'toupie.png', array('width'=>100)}
    </p>
</div>
{/sh}

Un exemple du rendu a cette adresse http://jelix.toopi.info/page/cadre

Attachments

html.zip (3.1 kB) - added by Lipki on 04/03/08 17:57:21.

Change History

04/03/08 17:54:44 changed by Lipki

  • priority changed from normal to low.
  • status changed from new to assigned.
  • component changed from jelix to jelix:plugins.
  • type changed from bug to new feature.
  • owner set to Lipki.

Here is the first plug-in syntax highlighting.

This plugin is based on a personal development, slightly inspired by GeSHi.

Use:

{sh 'jtpl'}
<div class="corps">
    <p>
        contenu
        {image 'toupie.png', array('width'=>100)}
    </p>
</div>
{/sh}

An example of this address was delivered http://jelix.toopi.info/page/cadre

The colouring that fact with a php files, one for each language. There are at the moment two file, 'sh.xml.php' and 'sh.jtpl.php'

You can add a css files incidentally.

04/03/08 17:57:21 changed by Lipki

  • attachment html.zip added.

04/03/08 17:58:23 changed by Lipki

Le nom du plugin est provisoire. le peut de commentaire également.

07/02/08 11:05:42 changed by bballizlife

Why coding a plugin from scratch and not trying to integrate directly geshi as a plugin ?

07/21/08 11:24:01 changed by Lipki

I try, but I think geshi much too big et ça m'énerve d'intégrer des trucs que je ne comprend pas bien.

07/21/08 11:25:38 changed by Lipki

And this plugin based on a concept that I have in mind for a very long time.

Download in other formats: Comma-delimited Text Tab-delimited Text RSS Feed