CC's HTML code publisher.

User 187934 Photo


Senior Advisor
20,266 posts
Online Now

If your website designer and want to share HTML by publishing it into an actual HTML page, you have to use special characters to keep the actual html page from reading the code as part of the pages own HTML code. CC has a tool for accomplishing this built into SCCP.
Open SCCP and add a category or product if you wish then paste the HTML code that you want to share into the page without using the HTML tool. Now navigate away from the page you just pasted the code into by clicking on Product List. Now navigate back to the page with the code and presto changeo SCCP has magically transformed your code into HTML that can be shown on a HTML page with no ill affects.:cool:
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 271657 Photo


Ambassador
3,816 posts

Here's another way:

pre.code {
font-family: monospace;
font-size: _;
margin: _;
padding: _;
white-space: pre-wrap;
}

<pre class="code">put some example code here</pre>


:P Newbie Alert! I found this in a template I'm using and looked it up to see what it was for. :lol:
Tried it on my site (using the CC Editor) and it displayed a code snippet without running the code.
This is within an HTML5/CSS3 template, so I don't know if this is common to any version of HTML/CSS or not.





I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 122279 Photo


Senior Advisor
14,621 posts
Online Now

The pre code is older than html5/css3. Don't know how old, though, but it has been around for a while.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.