html converter besides MS word?
Moderator: General Moderators
-
chopficaro
- Forum Commoner
- Posts: 68
- Joined: Fri Jan 01, 2010 12:56 am
html converter besides MS word?
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?
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)
(Kate is a Linux text editor)
-
chopficaro
- Forum Commoner
- Posts: 68
- Joined: Fri Jan 01, 2010 12:56 am
Re: html converter besides MS word?
thanks ill give it a shot
Re: html converter besides MS word?
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.