11/17/2011

How to Display Some HTML Code on Your Web Site ?

Tips Joy - computing, housework, health, gardening.

Display Some HTML Code on Your Web Site Using Free Download Source Code Editor (Notepad ++)

Problems: I tried to display some HTML code on my web site, but it did not display anything. Then I tried to display it as an image, but it couldn’t be used to “cut and paste the code” by readers. 



 Display HTML Code Tips: It can be easily resolved by replacing "<" with "&lt;" and replacing ">" with "&gt;" in your HTML code.


Here is one example how to display some HTML code on your web site using free download source code editor (Notepad ++). The HTML code will show on your web page, but it is not executed there.

Go to Notepad ++
        Download it free if you do not have it. Free Source Code Editor Software (Notepad++)


Open your HTML source code file


Click the location just before the HTML source code area (which you want to display)


Click “Search” then click “Replace…”



















Type ">" in the “Find what” box and type "&gt;" in the “Replace with” box
















Click “Find Next” box and click “Replace” box if it is the right one you want to replace


Continue to replace "<" with "&lt;" until the whole HTML source code area (which you want to display) is completed.




Related Topics:
How to Add a Google Calendar on Your Own Website?
How to Add a Google Search Box to Search Your Own Website?
How to Find IP Address and Lookup its Location?
Easy YouTube Videos Download
Run Windows System Restore to solve computer problem

No comments:

Post a Comment