developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 11 years ago

Closed 7 years ago

#533 closed new feature (wontfix)

plugin syntax highlighting

Reported by: Lipki Owned by: obs
Priority: low Milestone:
Component: jelix:plugins:tpl Version: 1.0.2
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

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 (1)

html.zip (3.1 KB) - added by Lipki 11 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 11 years ago by Lipki

  • Component changed from jelix to jelix:plugins
  • Owner set to Lipki
  • Priority changed from normal to low
  • Status changed from new to assigned
  • Type changed from bug to new feature

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.

Changed 11 years ago by Lipki

comment:2 Changed 11 years ago by Lipki

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

comment:3 Changed 10 years ago by bballizlife

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

comment:4 Changed 10 years ago 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.

comment:5 Changed 10 years ago by Lipki

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

comment:6 Changed 9 years ago by laurentj

  • Component changed from jelix:plugins to jelix:plugins:tpl

comment:7 Changed 8 years ago by obs

  • Cc bernardes.claudio@… added

comment:8 Changed 8 years ago by obs

  • Cc bernardes.claudio@… removed
  • Owner changed from Lipki to obs
  • Status changed from assigned to new

Geshi n'a pas l'air d'être dur à intégrer. Je vais regarder, si je peux le faire. Ca pourra peut être aider pour rarangi...

comment:9 Changed 7 years ago by laurentj

  • Resolution set to wontfix
  • Status changed from new to closed

Si ce projet abouti, le mettre à disposition quelques parts (un site perso, un depot github/bitbucket ou autre) et le déclarer sur booster.jelix.org

Note: See TracTickets for help on using tickets.