Vim is a cool editor for Linux. I will now show you how to create a html documentation of your source code using vim.
The following tip has been suggested in ILUGC mailing list.
1. Open the source code file using vim. I am using a tcl script file named sample.tcl
$ vim sample.tcl
2. In command mode type the following
A new buffer will be opened with the html source
Just save and quit
3. You will find a new html file with the same name of the source code file in the directory where you the latter (in this case it is sample.html)
This is the documented code.
Have a look at it!
To add salt to the delicacy try out the following procedure before you try out the above tip…
Before performing the above conversion, running the following commands in command mode would produce an html file with a black background and lines numbered.
Here is how it looks!!
This font installation procedure was tested successful in Fedora. As a matter of fact it works fine in all otherLinux distros too 😉
After an unsuccessful desperate attempt to install Microsoft fonts in Fedora i started to think over easier ways of installing other fonts.
I found one well known solution and applied the same to the Windows fonts (and yes
i am running a dual boot of Win7 and Fedora11).
The trick is as follows:
First, Copy the purchased Windows fonts from your Windows disk onto Fedora. If you choose to install the fonts only for the current user then move the fonts to .fonts directory in the user directory.
Else if you want the fonts to be available to all the users you must move the downloaded fonts to /usr/share/fonts
Moving the fonts to /usr/share/fonts
1. Open Terminal
2. cd <location where you have placed the font>
example. $ cd Desktop/
3. mv <fontname> /usr/share/fonts/
example. $ mv fertigo.TTF /usr/share/fonts/
4. Log out and then login , open any editor and see the fonts in action.
- Have a look at my favourite list of professional fonts <here>
- Also note that if you plan to install the fonts only for the current user then move the fonts to .fonts directory in the home folder(View menu —> show hidden files).
If that directory does not exist then create one yourself.
- If you have installed the xfs fontserver (it is not installed by default in Fedora 11), then run the following code to reload it:
su -c ‘/sbin/service xfs reload’
su -c ‘/etc/init.d/xfs reload’