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
- Forum
- JCE Editor
- Adding code-markup to jce editor
Support is currently Online
Official support hours:
Monday To Friday
From 09:00 To 17:00 Europe/London (BST)
From 09:00 To 17:00 Europe/London (BST)
How can you add a code option to your editor to allow you to add blocks of code that are visible to the reader? Like you have here in this forum editor.
So I can display the code like this
regards
David
So I can display the code like this
<img src=“/images/myimage.jpg”/>
regards
David
ok I have managed to do this with RokCandy. Not as easy as I would have liked.
After installing RokCandy you get the option to add RokCandy script via a button at the bottom of your browser.
You need to use html entity names for brackets.
So to display code to look like this
you need to edit between the rokcandy square brakets and change the greater or less than brackets to their entity equivelant.
After installing RokCandy you get the option to add RokCandy script via a button at the bottom of your browser.
You need to use html entity names for brackets.
So to display code to look like this
<img src=“/images/myimage.jpg”/>
you need to edit between the rokcandy square brakets and change the greater or less than brackets to their entity equivelant.
Please try this JCE plugin - https://github.com/widgetfactory/jce-editor-codesample - which you can download here - https://github.com/widgetfactory/jce-editor-codesample/releases/tag/1.0.3
This will allow you to insert various types of code into the editor, which will be highlighted and styled using the Prism library - https://prismjs.com/
You will probably need to install this library so your code can be styled in the front-end. A plugin is available for this too - https://github.com/widgetfactory/wf-prism
This will allow you to insert various types of code into the editor, which will be highlighted and styled using the Prism library - https://prismjs.com/
You will probably need to install this library so your code can be styled in the front-end. A plugin is available for this too - https://github.com/widgetfactory/wf-prism
Just because you're not paranoid doesn't mean everybody isn't out to get you.
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!