html converter besides MS word?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
chopficaro
Forum Commoner
Posts: 68
Joined: Fri Jan 01, 2010 12:56 am

html converter besides MS word?

Post 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?
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: html converter besides MS word?

Post 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)
chopficaro
Forum Commoner
Posts: 68
Joined: Fri Jan 01, 2010 12:56 am

Re: html converter besides MS word?

Post by chopficaro »

thanks ill give it a shot
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: html converter besides MS word?

Post 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.
Post Reply