Web Hosting Talk







View Full Version : Display code as Text


revuelta
11-29-2006, 09:32 AM
I want to display part of an HTML page as code without executing it. Imagine the code

<font>Yesterday</font>

I want to see displayed on the browser not only the content

Yesterday

but the whole code:

<font>Yesterday</font>

Is there any way to use a CSS in order to do so?

I want to create a CSS that allows me to view only selected parts of the code in a HTML page.

Thanks in advance for your help.

zoid
11-29-2006, 09:38 AM
&lt;font&gt;Yesterday&lt;/font&gt;

revuelta
11-29-2006, 09:58 AM
I want to modify preexistent HTML pages from other people. The example

<font>Yesterday</font>

belongs to a page I cannot modify, let's say it is somewhere on the internet.

I want to access those pages and modify them through CSS automatically without replacing any character. Is it possible?

Thanks.

zoid
11-29-2006, 10:06 AM
I do not think this is possible via CSS, but wouldnt call me expert in this however :)