cancel
Showing results for 
Search instead for 
Did you mean: 

Can Magento display Code in WYSIWYG?

Can Magento display Code in WYSIWYG?

Hello,

 

First of all, I have Magento 1.9.0.1 Installed.

 

I've been looking for a while for a way to display code in the text, and let it be copied. Do I need a plugin/extension/widget that allows me to display code like this? Or can Magento do it? But the code looks good, with colors, such as the following image:

 

CODE

 

I noticed this is a syntax highlighting plugin developed for MooTools. Is there anything for Magento? 

5 REPLIES

Re: Can Magento display Code in WYSIWYG?

Hi there, I'm not aware of an existing extension that allows you to do that. It might be easiest to implement it yourself via a lightweight plugin and a CMS page or block.

---
I'm a Magento Developer living in Melbourne, Australia with 4 x Magento certifications Smiley Happy

Re: Can Magento display Code in WYSIWYG?

Thank you for your reply Francis Kim!

 

What do you mean with a lightweight plugin? Do you know of any?

 

Re: Can Magento display Code in WYSIWYG?

I found this plugin, although I don't know if I must install any files in a certain place of my magento files. https://highlightjs.org/usage/

 

Can anyone help?

Re: Can Magento display Code in WYSIWYG?

Anyone?

Re: Can Magento display Code in WYSIWYG?

I've never seen a WYSIWYG editor in Magento that formats the code.

 

It could be done, yes, however someone would have to build a extension to get those code libraries to work with Magento.

 

Are you trying to display code examples on Product Pages or are you attempting to blog on your Magento store?

-Kris
4x Certified, Blogger @ xgento.com