We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21471
    • 42 Posts
    Hello,

    Je suis pas fan de l’édition WYSIWYG et donc je me voyais bien mixer Textile/Geshi, qu’en pensez-vous ?

    Est-ce qu’on peut imaginer faire par ex :

    <textile>[*content*]</textile>.


    avec dans content les <pre language="xxx"> qui seraient correctement interprétée ?

    Ou bien faut-il envisager le cas :

    <textile>mon contenu</textile>
    <pre language="xxx">mon code</pre>
    <textile>mon contenu fin</textile>


    En tous cas FCK Editor ne le gère pas, à moins d’éditer la source pour rajouter le ’langage="xxx"’ ce qui est assez fastidieux... :-/

    Sinon quelle serait la bonne alternative au full html ?
      • 6726
      • 7,075 Posts
      Amusant que tu parles de mixer Textile et Geshi... et oui NiCoS car il existe un plugin appelé Computer Scientist’s PowerPack qui fait justement ça grin

      Enfin, un peu mieux puisque c’est Textile Plus smiley et qu’en plus tu as mimeTex.
      Il y a aussi la possibilité d’installer GeSHi seul ou mimeTex seul.


      # The GeSHi plugin, to highlight source code in your document;
      # The mimeTeX plugin, to insert and render LaTeX code;
      # The Textile Plus plugin, to prepare easily the page content.


        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l&#39;outil id
        • 21471
        • 42 Posts
        J’ai vu en effet ce plugin (tu l’avais signalé sur le Hub y a qqs temps), mais j’ai l’impression que ce plugin n’est en fait que la somme de 3 plugins indépendants et non un tout unifié.

        Du coup, j’ai l’impression que mon problème sur l’utilisation des balises textile n’est pas traité... ou alors j’ai raté un truc...
          • 5683
          • 96 Posts
          Hi, sorry for writing in English here smiley

          The CS PowerPack is not just the sum of different plugins. It adds some code to integrate them, and to let you use anything inside textile.

          In fact a special tag <textsafe> is defined. Anything inside the <textsafe>...</textsafe> tags is temporarily removed before the invocation of the textile parser, and re-introduced immediately after. The consequence is that you can prevent from parsing anything you wish.

          But it is not necessary to wrap <pre> tags into <textsafe>: the plugin will detect and wrap them for you.
            • 21471
            • 42 Posts
            No problem for writing in english, any help is welcome whatever the language is (as long as I understand it wink )

            thanks for your answer, I just need now to find the textile code for <pre> tag as @ is for <code> wink

            I will take a look at the plugin soon, once my bathroom is finished :-P
              • 5683
              • 96 Posts
              No need to find the textile code for <pre>.
              Just write <pre>thisIsMyCode blah blah blah</pre> inside <textile>.
              The plugin will recognize the <pre> tag, prevent textile from messing up the code, and invoke GeSHi to format it wink
                • 21471
                • 42 Posts
                Ok, thanks a lot for your answer, I thought it was not possible to mix html tags with textile one wink