Export Your Source code in HTML format
IITDU Forum :: TechTalks :: Ubuntu
Page 1 of 1 • Share •
Export Your Source code in HTML format
- 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

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

- Course(s):
- BIT
Blood Group: O+
Posts: 4187
Points: 6601

Re: Export Your Source code in HTML format
Nice............
angel- Pre-Alpha Release

- Course(s):
- N/A
Blood Group: NULL
Posts: 6
Points: 6
IITDU Forum :: TechTalks :: Ubuntu
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Active Topics!

» Understanding Timestamp Based Protocol
» Hi from Newbie
» Compare an image from a list of images in the sql database....tell which image is matching
» Sending email without email ID
» teach yourself c by herbert schildt pdf
» .NET MVC3: Unable to find the requested .Net Framework Data Provider. It may not be installed.
» SAD Slides: 4.1, 4.2
» QA topic Presentation - Urgent Notice