is there a way put put "code [html/php and others]" as text into an joomla-article?
Just like doing something with tags like "</>" here.
Background: I'm writing a tutorial an want to put code as text into it, so the user can easily copy the code.
A content editor for Joomla!®
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
Please create a new Ticket and we will get back to you as soon as we can.
Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Latest post by HGH on Tuesday, 14 May 2019 20:59 BST
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
<?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. Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Your post is being submitted…