Forums » Customize

Display HTML code in Frontend

Grimbalo
NORWAY
2010-03-11 10:10:58
Permalink Post
 

Here´s hoping someone can help

I´d been struggling with some layout problems, some html tags i wanted to use were working but others like the paragraph tag and the break tag weren´t.

Ok...no problem, read through the forums and the answer seemed to be to switch off html processing. This mean´t i had full control over the html...great!

But i wanted to be able to display some code snippets to the site visitors, previously i´ve always used the code tag but it won´t work, works fine when HTML processing is switched on, but doesn´t do anything when it´s switched off.

Then i thought i´d write my code using replacement charachters.

This worked fine, until i exited the page and then came back, all the relacement charachters had been deleted!

Anyone else encountered this, have i got a duff installation?

Thanks in advance

Vaska A
I WROTE THIS
2010-03-11 10:41:15
Permalink Post
 

Replacement characters?

Grimbalo
NORWAY
2010-03-11 10:50:15
Permalink Post
 

Sorry tried to write an example but the editor converted them. I mean´t:

< = "Amphisand"lt;
> = "Amphisand"gt;

Vaska A
I WROTE THIS
2010-03-11 10:55:19
Permalink Post
 

Why can't you simply use the real thing? Straight html has always worked just fine for me in the textarea...never had a problem with it and I've done some very complicated things.

Grimbalo
NORWAY
2010-03-11 11:01:18
Permalink Post
 

For me as well... Maybe i´m being stupid!

Want i want to do is to display HTML code in the frontend so that site visitors can see examples of HTML. Obviously if i just write for example a bold tag, the browser thinks that i want to use a bold tag and displays the text in bold. I want to be able to display the bold tag.

Previously i´ve simple wrapped the tag i want to display in the code tag and that´s worked fine, but when i turn off html processing to allow me control over the paragraph and break tags the code tag doesn´t work!

Vaska A
I WROTE THIS
2010-03-11 11:02:27
Permalink Post
 

Oh...code. You are using code tags?

Could be a bug in the way the text is handled...if so...don't have an immediate solution for you on this one.

Grimbalo
NORWAY
2010-03-11 11:04:23
Permalink Post
 

Exactly!

<code>.....</code>

Grimbalo
NORWAY
2010-03-11 11:06:12
Permalink Post
 

It seems a little strange that it works when HTML processing is on, but not when it is turned off

I was wondering whether this is a problem for everyone, or whether i´ve tinkered to much with my installation and messed something up?

Thanks for the quick responses by the way!

Grimbalo
NORWAY
2010-03-11 12:32:18
Permalink Post
 

Anyone else had a similar problem with any HTML tag that doesn´t work when HTML processing is switched off?

ivo_valadares
SPAIN
2010-03-11 12:41:34
Permalink Post
 

I'm not sure what you're talking about nevertheless

in the text are if I type
, next thing they just disappear, and sometimes aldo the result of the reason why.

Grimbalo
NORWAY
2010-03-11 13:35:18
Permalink Post
 

Well i guess there are two problems that i´m struggling with:

The first is that the HTML <code> tag doesn´t seem to function when HTML processing is turned off (which i need to do in order to adjust my page layouts correctly)

The second is that if i try and use HTML code entities (eg."amphisand"lt;strong"ampisand"gt; = < ) in order to display code the text editor converts these back to HTML if i log out of the page and then log back in.

I´m going round and round in circles here, maybe someone knows of another way to do this.

arsondpi A
GREECE
2010-03-11 13:47:34
Permalink Post
 

- not sure... One thing to check is not to leave any empty line breaks or paragraph returns in between the code tags... And always have Proccess html set to Off

Grimbalo
NORWAY
2010-03-11 14:02:16
Permalink Post
 

I´ve been trying to fix this for a few days now and my eyes are starting to go funny from stareing at code...but i´m pretty damn sure everything is correct. No spaces, noe breaks and process html is off.

Any chance you could try (arsondpi) and see if you get it to work?

(as mentioned previously...the strange thing is that it works perfectly when HTML processing is turned on!)

Showing 1 - 13 of 13 posts in Forum > Customize > Display HTML code in Frontend
 

You need to be logged in to post.