Page 1 of 1

html converter besides MS word?

Posted: Wed Apr 14, 2010 6:22 pm
by chopficaro
ive got a resume web site and i want to let my viewers click on a link to a particular code sample of mine to read. ive got .as files, .cpp files, .h files, .js files, ,php files, u name it, but they're all just text. now i tried just linking the user to the unaltered file and that was buggy, and i also tried pasting the code into MS word and saving it as an html file, but that was buggy too, they couldn't get the indents right. is there some software out there that converts text files into readable html with all the indenting done correctly?

Re: html converter besides MS word?

Posted: Wed Apr 14, 2010 11:03 pm
by omniuni
I use Kate's export-as-html. The result is like this: http://ssite.tk/~group10/test/problem4-d.html

(Kate is a Linux text editor)

Re: html converter besides MS word?

Posted: Wed Apr 14, 2010 11:50 pm
by chopficaro
thanks ill give it a shot

Re: html converter besides MS word?

Posted: Thu Apr 15, 2010 1:01 am
by omniuni
Also, you could try using php to pull in the file and format it. Just pass the file name as an argument to the script, and let it stick it in some <pre> tags.