PDA

View Full Version : Syntaxhighlighter / code for the ckeditor



Andreas_M
February 9, 2013, 11:41 PM
Hi,


I did not found any way to display code in a page. The ckeditor has no syntaxhighlighter at admin panel.
I would like to create a page with my banners and with the associated code, so that everybody could easily copy the banner code to clipboard.
Like here: http://winfuture.de/werbung.html

Could you please help me, the code tag also did not work here.


Best regards
Andreas

Andreas_M
February 26, 2013, 10:16 PM
Any news for my question?

If it would be possible as custom mod, please let me know.

Thanks a lot.

Chris Brown
February 26, 2013, 10:38 PM
Theres a textarea button/option you can use, then place your code inside that, like on my page http://motoradsuk.co.uk/link-to-us.html

........that reminds me i need to update all my banners to have the new logo :D

Viktor
February 27, 2013, 11:47 AM
Hello Andreas,

I have found 1 solution for you :) it's easy.

create new block with Type = Smarty and insert your html code between <textareat>html code should be here</textarea> tags.

for example:

<textarea><a href="http://flynax.com"><img alt="Flynax - classified software" border="0" width="177" height="68" src="http://www.flynax.com/templates/flynax_new/img/logo.png" /></a></textarea>

Morgan Bohman
February 27, 2013, 01:40 PM
Don't forget to set Read-Only! Like this:
<div id="banner_1_code">
<form id="form1" name="form1" method="post" action="" >
<label for="banner_1_code_copy"></label>
<textarea name="banner_1_code_copy" id="banner_1_code_copy" cols="45" rows="2" readonly="readonly"><a href="http://www.fyndklippet.se" target="_blank"><img src="http://www.fyndklippet.se/images/fk_468x60.jpg" alt="Gratis annonsering" width="468" height="60" border="0"></a> </textarea>
</form>
</div>

Viktor
February 28, 2013, 03:37 AM
Exactly, you are right Morgan. I forgot about it :)

Andreas_M
February 28, 2013, 07:38 PM
Thank you all, I will check it at the weekend.