Ask HN: is there a Firefox extension for viewing C code in the browser?

https://news.ycombinator.com/item?id=856096
by idm • 17 years ago
1 0 17 years ago

Firefox doesn't nativly ship with a handler for all content types (obviously), so often times you're prompted to download a file that you know could be viewed inside the browser.

Moreover, modern web servers ship with a robust set of content types, meaning HTTP headers are pretty descriptive about what kind of data is inside a given text file.

As a specific example, I was going to take a look at the LYSP source code (a recent post on HN), but Firefox doesn't know how to handle the HTTP header

  Content-Type: text/x-csrc
As a result, I am left to save it somewhere, then view it in TextMate.

My question is: does anyone know of a Firefox addon that handles various code-related content types, and renders them inside the browser?

Related Stories

Loading related stories...

Source preview

news.ycombinator.com