Re: Display C in HTML




"Adam" <news@xxxxxxxxxxxxxxxx> wrote in message news:1183214081.655376.215590@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 30 Jun, 13:09, "Army1987" <please....@xxxxxx> wrote:
"Adam" <n...@xxxxxxxxxxxxxxxx> ha scritto nel messaggionews:1183201733.217334.68820@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

> Does anyone know of an online C-to-HTML converter to display code
> nicely formatted in a browser?
That's not a question about C.
I guess you're right, sorry.

<ot>
Have you tried the <pre> tag? You'll still need to escape characters such as <, &, etc...
</ot>

Yes, but I was looking for something which does nice colouring/
formatting etc. Thanks to a private email I've been pointed at c2HTML
which looks perfect.

That's a perfectly topical subject, if somewhat unusual. Showing C code to other programmers is an important part of what we do.
--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

.



Relevant Pages

  • Re: OT: HTML (WAS: MF having issues?)
    ... Right, the example above, with the tag, comes from web developers inapporpriately depending on undocumented features. ... But let's say I don't actually read the standards, but just try out the tag to see what it does, and I notice that on my particular browser, the tag displays the text in italics. ... So now my HTML page may be broken, for example, if it contained text like this: ...
    (comp.lang.cobol)
  • Re: Refresh of photo upload page in Browser too quick
    ... Images are served separately from the main html file, based on the tag. ... Rather, I suspect you're building the code based on the old file and placing the old filename in it. ... And instead of fetching the image, the browser is looking in its cache and just using that image. ... Then, after a refresh, your code generates a new tag with the new filename, so the browser gets the updated image (or, in the case of a deleted image, the code generates no tag). ...
    (comp.lang.php)
  • Re: OT: HTML (WAS: MF having issues?)
    ... But let's say I don't actually read the standards, but just try out the tag to see what it does, and I notice that on my particular browser, the tag displays the text in italics. ... So now my HTML page may be broken, for example, if it contained text like this: ... The idea is that browsers who do not recognize the <applet> tag will simply ignore that tag, and display the text without any special formatting. ...
    (comp.lang.cobol)
  • Re: ordered lists vs unordered lists
    ... It is a specialist tag that authors should use to ... practice the browser did not generate either the numbers or some other ... make use of the ol tag to convey the idea of the meaning. ... It is good practice. ...
    (alt.html)
  • Re: New URL spoofing bug in Microsoft Internet Explorer
    ... When a browser encounters invalid code, ... the first opening a tag upon encountering the opening table tag going on a ...
    (NT-Bugtraq)