Export Your Source code in HTML format

View previous topic View next topic Go down

Export Your Source code in HTML format

Post by BIT0122-Amit on Wed Nov 17, 2010 12:11 pm

Why do you need this?:

You need this because if you export your source code to html, it will automatically insert all the color codes, and you can use the html code in any web page. The source will be automatically coloured!


In ubuntu, I am going to show you the terminal way Very Happy

1. code2html:

Just install this package:
Code:
sudo apt-get install code2html


now, go to the directory of your source code, and execute this command in terminal:

Code:
code2html <source_code_file> <output_file>.html


and you are done!


2. TOhtml in Vim:

(if you do not understand these instructions, you probably don't know how to use vim! learn using that first.)

Vim is one of the most popular editors of linux/unix. It offers many features.
just open your source code in vim, and go to command mode.
now just type :TOhtml
and Surprise! it prepared the html file for you instantly!!

_________________________________________________________________
Adminship / Moderatorship is not about power, it is about Responsibility.

|About me|My Blog|

BIT0122-Amit
Founder
Founder

Course(s):
  • BIT

Blood Group: O+
Posts: 4187
Points: 6601

View user profile http://iitdu.forumsmotion.com

Back to top Go down

Re: Export Your Source code in HTML format

Post by angel on Wed Jan 12, 2011 6:43 pm

Nice............

angel
Pre-Alpha Release
Pre-Alpha Release

Course(s):
  • N/A

Blood Group: NULL
Posts: 6
Points: 6

View user profile

Back to top Go down

View previous topic View next topic Back to top


Permissions in this forum:
You cannot reply to topics in this forum