PDA

View Full Version : [ubuntu] viewing sourse code



wlraider70
March 25th, 2009, 11:48 PM
I don't have a specific program, but what program do you use to view/edit the source code.

I just want to get a look at the code for a program. Will it matter what language it is written in?

kanikilu
March 25th, 2009, 11:55 PM
Source code is just text, so you can open source files in any editor. The built-in GUI editor, gedit, will work. I also tend to find myself using scite a lot (another general purpose editor, but a little more geared to code). You can also use the old stand-by's, nano, vi(m), (x)emacs, etc.

mhgsys
March 26th, 2009, 12:04 AM
I'm very fund of vim.
(vi improved)
Specially the syntax on function ,
which makes it easier to detect errors, cause the code is written in various colors.

If you make an error/ forget a ; or a " etc. , you'll see that the color of the code doesn't match the rest.

Iowan
March 26th, 2009, 12:35 AM
I'm probably stating the obvious, but "Viewing the source code" assumes you have the source code... You can't easily view the source code of a compiled program (de-compile it).