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
- How to fill in code as text ?
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)
Also, you will need to install JCE Pro 2.7.14 Beta 4 - https://www.joomlacontenteditor.net/downloads/editor/pro/development
Just because you're not paranoid doesn't mean everybody isn't out to get you.
I have made a Joomla plugin for the highlightjs library - https://github.com/widgetfactory/wf-highlight - and a JCE plugin for adding the code highlighting in the editor - https://github.com/widgetfactory/editor-highlight
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Hi Ryan,
thanks for the links to the plugins, but I still have probs.
I want to showup something like this.
But the div's are always rendered. -> see here
I have this in the code-view tab:
The '<?php' statement is only rendered but not executed by the php-processor.
thanks for the links to the plugins, but I still have probs.
I want to showup something like this.
<?php /*HGH*/ ?> <div class="control-group">
<?php /*HGH*/ ?> <div class="control-label">
<?php /*HGH*/ ?> <?php echo $this--->form->getLabel('custom_data'); ?>
<?php /*HGH*/ ?> </div>
<?php /*HGH*/ ?> <div class="controls">
<?php /*HGH*/ ?> <?php echo $this--->form->getInput('custom_data'); ?>
<?php /*HGH*/ ?> </div>
<?php /*HGH*/ ?> </div>
But the div's are always rendered. -> see here
I have this in the code-view tab:
<pre><code class="html">
<?php /*HGH*/ ?> <div class="control-group">
<?php /*HGH*/ ?> <div class="control-label">
<?php /*HGH*/ ?> <?php echo $this--->form->getLabel('custom_data'); ?>
<?php /*HGH*/ ?> </div>
<?php /*HGH*/ ?> <div class="controls">
<?php /*HGH*/ ?> <?php echo $this--->form->getInput('custom_data'); ?>
<?php /*HGH*/ ?> </div>
<?php /*HGH*/ ?> </div>
</code></pre>
The '<?php' statement is only rendered but not executed by the php-processor.
regards ... HGH
Ok, here is a different set of plugins, using the Prism library - https://prismjs.com/
First, install and enable the wf_prism Joomla plugin - https://github.com/widgetfactory/wf-prism - then the JCE CodeSample plugin - https://github.com/widgetfactory/jce-editor-codesample
Assign the CodeSample icon the editor toolbar.
In the editor, click on the CodeSample button to open the dialog, then paste your code into the textarea. Select the language type and click Insert.
To edit the code, click to select the code box, then click on the CodeSample button again.
To delete the code, click to select the code box and press the Delete key.
First, install and enable the wf_prism Joomla plugin - https://github.com/widgetfactory/wf-prism - then the JCE CodeSample plugin - https://github.com/widgetfactory/jce-editor-codesample
Assign the CodeSample icon the editor toolbar.
In the editor, click on the CodeSample button to open the dialog, then paste your code into the textarea. Select the language type and click Insert.
To edit the code, click to select the code box, then click on the CodeSample button again.
To delete the code, click to select the code box and press the Delete key.
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Also, you will need to install JCE Pro 2.7.14 Beta 4 - https://www.joomlacontenteditor.net/downloads/editor/pro/development
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!