You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#106520 Ligne de code dans l'éditeur de texte

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Thursday, 28 January 2021 10:59 GMT

dupinsan
Bonjour,

Je pense que ma question a déjà été posée, mais je ne trouve pas la réponse 🙁
J'ai JCE Pro 2.9.1 et je cherche à mettre des lignes de code dans l'éditeur de texte (voir exemple) comme avec TinyMCE.
Comment faire ?
Merci d'avance pour votre aide.
Frédéric

Attachments

Ryan
You can use the Code or Preformatted options in the Format list for displaying code items.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

dupinsan
Thank you for your reply.
But I'm not just looking for the font to write code, but how to write the code without the code executing.
For example, I want to be able to write (see screenshot). If I copy this normally in the editor, the code applies.
In TinyMCE there is a special tool for this {;} (Insert / Edit Code).

Attachments

Ryan
First, selected Preformatted from the Format list, then paste the script code using CTRL + V.

Select the script code you have pasted, and then select Code from the Format list.

https://cdn.joomlacontenteditor.net/tmp/106520-ligne-de-code-dans-l-editeur-de-texte.gif

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.