Showing posts with label code. Show all posts
Showing posts with label code. Show all posts

Saturday, November 15, 2008

Source code editor - kscope

If you are not customized the emacs editor style, maybe the kscope editor is a good choice to edit source code.
KScope is a source code editor, implementing Cscope, on KDE environment.


Let's doing a simple editing steps:

Open project:


















Add the related source code on the list (select tree button):


















Open the target source code file:


















Search the definition position of function:


















Use relational chart to display target function and other functions,


















To install kscope:

Fedora Core 9:

# yum install kscope

Ubuntu 8.10:

# apt-get install kscope

Source code editor - emacs + ecb

To browse, search, and edit the source code of linux kernel, the general editors is not a good tool. One of the best way is using emacs + ECB(Emacs Code Browse)

To use ECB, it supports following functional windows:
  • Directory tree window
  • Source code file list window
  • Display current opened file's functions, classes, method, and ....etc.
  • The history opened files window
  • Some convenient editing functions

To start the editing mode, after run emacs, presses {Alt+X} keys, keying ecb-activate{Enter}, now, you are preparing to edit source code file, the display window is as the showing picture.


To install emacs and ecb:

Fedora Core 9:

# yum install emacs ecb

Ubuntu 8.10:

# apt-get install emacs ecb
or
# apt-get install emacs22 ecb

If you want to install emacs for MS Windows, go to emacs,s web site. Then read some configuration from ecb web site.