1

i have to display some html content which should be in formatted way. actually i compare two html file & now i want to display these two file content in my page with differences on page but the problem is that the content i display it's not in formatted way. so is there any third party control or something like that for doing these?

Bins
  • 322
  • 5
  • 13
  • Are you trying to display html code as plain text on a html page? But formatted in "pretty" way? – Jon Taylor Jul 10 '12 at 10:41
  • @JonTaylor yes i trying to display html code in formatted way... – Bins Jul 10 '12 at 10:42
  • you could always use `
    ` tags
    – Jon Taylor Jul 10 '12 at 10:43
  • @JonTaylor I tried that but it doesn't show tags... – Bins Jul 10 '12 at 10:47
  • can you post some sample code you are using? – Jon Taylor Jul 10 '12 at 10:47
  • Test

    It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing

    – Bins Jul 10 '12 at 10:49
  • @JonTaylor It display plain text no
    or

    tag display & it's not in formatted.... like hirechy...

    – Bins Jul 10 '12 at 10:51
  • let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/13660/discussion-between-bins-and-jon-taylor) – Bins Jul 10 '12 at 10:56

1 Answers1

1

Try these:

How to format/tidy/beautify in JavaScript

HTML Formatter in Javascript

Community
  • 1
  • 1
Stefan
  • 4,166
  • 3
  • 33
  • 47