C# to HTML convertor

  • Thread starter Thread starter Chad Z. Hower aka Kudzu
  • Start date Start date
C

Chad Z. Hower aka Kudzu

I need to take some C# files and format them into HTML for display on the
web. I need to do this in an automated fashion as the files change often.

I googled and found:
http://dotnet.jku.at/applications/Cs2Html/cs2html.aspx

But the source does not appear to be readily available, at least not as a
easy to use extractable routine.

Anyone know of others?
 
Chad Z. Hower aka Kudzu said:
http://www.manoli.net/csharpformat/

Just had to loook a wee bit harder..

Hi Chad,

I've recently made something similar, with a major difference being
that languages can be "defined" in an XML file which the application
reads on load, and syntax highlighting can be specified in the
application configuration file.

I was considering releasing it as open source. It's more or less
complete now, but I might still add a few features like line numbering
in the output HTML, etc.

If you're still interested, let me know and I'll send you the VS.NET
2003 project or source files.
 
C# Learner said:
I've recently made something similar, with a major difference being
that languages can be "defined" in an XML file which the application
reads on load, and syntax highlighting can be specified in the
application configuration file.

Sounds cool! Would be nice to add HTML, PHP, SQL, Delphi, etc. ;)
I was considering releasing it as open source. It's more or less
complete now, but I might still add a few features like line numbering
in the output HTML, etc.

If you're still interested, let me know and I'll send you the VS.NET
2003 project or source files.

Sure - Id love to take a look!

I just need to turn it into a console app to process the files from a build
process. Later I'd like to make a custom control from it too to be used live.
 
Chad Z. Hower aka Kudzu said:
Sounds cool! Would be nice to add HTML, PHP, SQL, Delphi, etc. ;)

So far I've more or less implemented the language "definitions" for C,
C++, C# and Delphi. I've started on Visual Basic, but there's still a
way to go on that one, since I can't remember all the keywords =)

I've tested the app with various C++, C# and Delphi code so far, and
it appears to work fine. It's slow on large files, but it uses a
background thread to do the main work, so it doesn't lag the GUI.
Sure - Id love to take a look!

I just need to turn it into a console app to process the files from a build
process. Later I'd like to make a custom control from it too to be used live.

At the moment it uses a form for the UI, but it could easily be
changed to use a console window instead, since it's rather modulated.

I haven't uploaded it anywhere yet, so is it okay to send to cpub [at]
hower.org?
 
C# Learner said:
I haven't uploaded it anywhere yet, so is it okay to send to cpub [at]
hower.org?

Thats a fake address - but send a dummy message to that address and it will
respond with a real one.

Thanks!
 
Chad Z. Hower aka Kudzu said:
C# Learner said:
I haven't uploaded it anywhere yet, so is it okay to send to cpub [at]
hower.org?

Thats a fake address - but send a dummy message to that address and it will
respond with a real one.

Thanks!

Nice idea =)

I tried e-mailing that address earlier, but still haven't received a
response. I've just tried again, though, so I'll wait and see...
 
C# Learner said:
I tried e-mailing that address earlier, but still haven't received a
response. I've just tried again, though, so I'll wait and see...

Hmmm.... something seems to be up with it..

I hate to be too much trouble, but those friggin spammers.....

Use this and Ill reply back:
http://www.hower.org/kudzu/Mail.html
 
C# Learner said:
Hi Chad,

I've recently made something similar, with a major difference being
that languages can be "defined" in an XML file which the application
reads on load, and syntax highlighting can be specified in the
application configuration file.

I was considering releasing it as open source. It's more or less
complete now, but I might still add a few features like line numbering
in the output HTML, etc.

If you're still interested, let me know and I'll send you the VS.NET
2003 project or source files.

I'm interested. Would you send it to me? I would really like to take a
look.

Thanks
 
John said:
I'm interested. Would you send it to me? I would really like to take a
look.

Thanks

Hi John,

I'm just fixing a small "issue" with the code at the moment. It
shouldn't take long to fix. Once fixed, I'll see about uploading the
project to a website, or, should I have any problem with getting a
host, I'll send it straight to you.

Thanks for your interest :-)
 
John said:
I'm interested. Would you send it to me? I would really like to take a
look.

Thanks

Sorry about the delay; I've been rather busy.

I've set up a site: http://www.sourcetohtml.tk/

Credit to the people at http://my.dot.tk/ for providing cost-free,
ad-free URL redirection!

Note that there's an awful bug in the program :( I've only seen it
affect Delphi code though. I'll look further into it when I have the
time.
 
Back
Top