
Jeffrey P. answered 02/02/21
Html Tutoring.
Hi,
I would need some examples of what you are trying to do in order to fully answer your questions. However I will attempt to address the issue with using the pre tag. You can style the pre tag so that it will auto wrap your code.
For instance you can apply the follow style and it will cause your css to wrap:
Another way to represent xml is to use the textarea tag. The pro is that you don't have to convert your xml to entity code and it will wrap automatically and maintain the structure. Then you can style the textarea. The con is that you are not able to color code your syntax that way.