Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

There couldn't possibly be any use in current behaviour of stripping all tags and displaying non-tag text as one big block.

Any way to get it to display useful content? It would be amazing if it would have highlighting etc., but just displaying it as plain text should be good enough.

share|improve this question
add comment

3 Answers

Any way to get it to display useful content? It would be amazing if it would have highlighting etc., but just displaying it as plain text should be good enough.

Without a test case I can't duplicate this behaviour. It shows a parse-tree by default in the test case I set up.

There couldn't possibly be any use in current behaviour of stripping all tags and displaying non-tag text as one big block.

There's would be plenty of justification. text/xml is a valid format for things that Fx can render - not simply deliver. So, as a result, it renders them - it doesn't treat them as text. In fact, by stating the document is text/xml, you are explicitly telling Fx NOT to treat them as plain text.

share|improve this answer
    
Unless xml has associated stylesheet, or some mime type more generic than text/xml or application/xml, how can it be formatted? I found that I can use Force Content-Type extension to map all application/xml to text/plain on certain url regexp - it's an adequate workaround. –  taw Oct 8 '10 at 7:52
    
However Fx wants to handle it. A text file can be turned into an image or maybe even 3D shaders if the renderer wants, it doesn't make it any less correct to ajudge it as also being text/plain. Consider MathML or even SVG. Mime-types are semantics, they can be ignored. A document might have a million different ways of being displayed depending on its contents but only one mime-type. –  Rushyo Nov 17 '10 at 23:43
    
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. –  smc Jul 8 at 10:12
add comment

I'm on Ubuntu with Firefox 3.6.10 and xml files appear properly formatted (tagged, highlighted and indented). Sounds like your mime-type properties aren't being recognized properly (ie not Firefox's fault).

share|improve this answer
add comment

The View Source command will do exactly what you want.

It can be found from the right click context menu inside of Firefox (image found from Google search):

View Page Source

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.